LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-24-2011, 10:57 AM   #1
SilversleevesX
Member
 
Registered: May 2009
Posts: 181
Blog Entries: 9

Rep: Reputation: 15
Copy just the file name in Nautilus?


I don't want paths along with the file name with trailing lines after them as in Marius' script (googlecode.com); I don't want the name in hex or some other strange and invidious form that is useless in a text editor or a terminal emulator; I just want the file name of the file I've clicked on on the Desktop or in some Nautilus window, regardless of what view mode I happen to be "in."

Is this even possible? And why in the world should I have to ask for this capability? Maybe the folks who work on Nautilus need to be reminded that it also takes an add-on or two to do this in Windows, something that's only been necessary since some jack-arse came up with the idea that Edit>Copy in a file navigator absolutely and definitely, without exception, meant the file and not just its name.

And while I know no one is going to pay attention to the next thing I'm going to write, I'll write it anyway.

I am aware that I can copy a file name by right-clicking on it and selecting Rename. (That's my other persistent annoyance with Nautilus. It seems to be the last and only GUI file navigator where this is even necessary when one wants to rename a file.)

So I ask again: Is it possible to copy just a file name in Nautilus, or should I go looking for another file navigator? I already have GNOME Desktop running on top of a Kubuntu install, because in my opinion Plasma is a mural gallery and not a desktop. If I must, I'll run something else on top of Nautilus just to have the ability to choose whether or not to copy a file's name or its contents along with the name.

Maybe I'm too much the optimist, but I'm hoping I won't have to.

Any suggestions?

BZT

Last edited by SilversleevesX; 12-24-2011 at 10:59 AM. Reason: Decided to be polite towards the end.
 
Old 12-25-2011, 05:44 AM   #2
Dave Lerner
Member
 
Registered: May 2005
Location: Florida, USA
Distribution: Pop_OS, Xubuntu
Posts: 152

Rep: Reputation: 44
Are you asking for a feature such as right-click >> Copy Filename (to clipboard)?

If so, that could probably be done with a Nautilus extension written in Python.
 
1 members found this post helpful.
Old 12-25-2011, 10:10 AM   #3
CrashDummy
LQ Newbie
 
Registered: Dec 2011
Posts: 14

Rep: Reputation: Disabled
So. nobody is going to bother reading and answering your question? Optimist? Maybe I shouldn't then, but I will. I do know the answer.

It's very simple to copy the filename. Right-click on the file in Nautilus. From the list that appears choose "properties". From the window that appears, you will see the filename and on another line the path, both as text. Copy whatever parts of the text you want. This is so simple and fast. You need to calm down, stop flaming, ask polite questions, and learn. Then you can advance a step closer to the intelligence level of the Linux developers. I say it's ignorance to spend time writing a script or a program to do this. Hopefully two simple, fast steps are not too much trouble.

Learn all about that properties window. You can do a lot of things there easily with files- even change what app opens the file, and the file permissions.

Nobody in Linux and Ubuntu owes you anything- they all work for free and should be appreciated.

Nobody connected with Linux needs to be reminded of a thing such as this. You can't even do this that easily in Windjunk. You need to learn the ropes in Linux just like for other operating systems. There is a manual for Ubuntu on the internet, and you can ask questions here or in the Ubuntu forum.

Your second complaint- Windjunk is no easier, and right-click/rename is also in Windjunk. Also in Nautilus, when you first paste a file into a folder it will be highlighted to be renamed by just typing a name over the highlight.
 
1 members found this post helpful.
Old 12-25-2011, 09:07 PM   #4
SilversleevesX
Member
 
Registered: May 2009
Posts: 181

Original Poster
Blog Entries: 9

Rep: Reputation: 15
Quote:
Originally Posted by Dave Lerner View Post
Are you asking for a feature such as right-click >> Copy Filename (to clipboard)?

If so, that could probably be done with a Nautilus extension written in Python.
I thought so.

And thanks, too, for satisfying my curiosity: I had the impression a lot of GNOME parts & pieces were still "done up," if you'll allow, in Python, but I wasn't sure. Then again, with Nautilus being one of the older and more common of its elements, I probably should have gone ahead and assumed it still was.

Too bad I don't know how to script in Python. Is it one of those languages for which folks accept commissions to take on projects? Or is that class of thing more with C and COBOL and the like?

BZT

Last edited by SilversleevesX; 12-25-2011 at 09:08 PM. Reason: Tangential questions added.
 
Old 12-25-2011, 09:15 PM   #5
lwasserm
Member
 
Registered: Mar 2008
Location: Baltimore Md
Distribution: ubuntu
Posts: 184

Rep: Reputation: 41
Quote:
Originally Posted by CrashDummy View Post
...

It's very simple to copy the filename. Right-click on the file in Nautilus. From the list that appears choose "properties". From the window that appears, you will see the filename and on another line the path, both as text. Copy whatever parts of the text you want. This is so simple and fast...
It would be great if that actually worked... (tested with Nautilus 2.30 and it does not)
 
Old 12-25-2011, 09:28 PM   #6
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
f2
Ctrl+c

relax.
 
2 members found this post helpful.
Old 12-26-2011, 06:12 AM   #7
lwasserm
Member
 
Registered: Mar 2008
Location: Baltimore Md
Distribution: ubuntu
Posts: 184

Rep: Reputation: 41
accidental post, please disregard

Last edited by lwasserm; 12-26-2011 at 06:14 AM.
 
Old 12-26-2011, 02:13 PM   #8
SilversleevesX
Member
 
Registered: May 2009
Posts: 181

Original Poster
Blog Entries: 9

Rep: Reputation: 15
Quote:
Originally Posted by snowpine View Post
f2
Ctrl+c

relax.
I'll have to make a sticky of that one.

Added with tongue firmly in cheek:
No sense in removing it from the stack either, as I'll probably find myself jotting down more of them as I re-orient myself with Ubuntu, GNOME, etc.

BZT
 
Old 12-26-2011, 05:08 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
R-click and select "properties "
then highlight and r-click "copy" on the name in the window
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] md5sum sha1sum are different after copy file/s by cp command, krusader or nautilus masuch Linux - Newbie 22 11-30-2011 02:56 PM
LXer: Nautilus Terminal 1.0 Released With Support For Nautilus 3.x (Terminal Embedded Into Nautilus) LXer Syndicated Linux News 0 10-18-2011 08:20 AM
Searching content of the file using File Browser Nautilus susja Linux - Newbie 4 05-28-2011 06:25 PM
LXer: Nautilus Elementary Adds Much Needed Enhancements to Nautilus File Manager And Why You Should LXer Syndicated Linux News 1 10-19-2010 10:11 PM
Unable to copy some files when in LiveCD - sudo nautilus pepemoko Linux - Desktop 5 08-04-2010 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration