Keyboard shortcut to make New Dir: possible?

Forum rules
Before you post please read how to get help

Keyboard shortcut to make New Dir: possible?

Postby Bali on Mon Dec 17, 2012 3:48 am

Hello,

Is there a way to make a keyboard shortcut to create a new dir or a new file anywhere in desktop, file manager..., instead of a right mouse click?

Thank you in advane
User avatar
Bali
Level 1
Level 1
 
Posts: 45
Joined: Mon Jul 28, 2008 11:41 pm
Location: Indonesia (Java and Bali)

Linux Mint is funded by ads and donations.
 

Re: Keyboard shortcut to make New Dir: possible?

Postby viking777 on Mon Dec 17, 2012 6:48 am

Don't you have a context menu key between 'Alt Gr' and 'Rt Ctrl'? It is on every keyboard I own. (use that followed by the F key). Tested on Xfce - it works.
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am

Re: Keyboard shortcut to make New Dir: possible?

Postby Bali on Mon Dec 17, 2012 10:17 am

Hi


Yes i have it and i tried: it open a menu like if i do a rigth click. But I am not looking for this; i look for and shortcut that makes directly a new folder in the window where i am
User avatar
Bali
Level 1
Level 1
 
Posts: 45
Joined: Mon Jul 28, 2008 11:41 pm
Location: Indonesia (Java and Bali)

Re: Keyboard shortcut to make New Dir: possible?

Postby viking777 on Mon Dec 17, 2012 12:28 pm

Well you could do it this way, but it would only create a folder on your desktop, not anywhere else. Open Settings>Keyboard>Application Shortcuts and click add, for the command use:

Code: Select all
mkdir /home/yourusername/Desktop/new
(substitute your proper username of course).

Type the keyboard shortcut you want to use. That is it. The command for a file on your desktop would be:

Code: Select all
touch /home/yourusername/Desktop/new
(with a different keyboard shortcut).

File managers usually have a shortcut for creating files and folders. On Thunar the command for a new folder is Ctl/Shift/n, but it doesn't seem to have one for a new file (my file manager does have one - Ctl/Shift/f - but I guess that doesn't help you much).

Basically you can do certain things, but if you expect one shortcut to create new files and folders in all places then I don't think that exists, you will have to right click like the rest of us do.
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am

<SOLVED>Re: Keyboard shortcut to make New Dir: possible?

Postby Bali on Tue Dec 18, 2012 12:11 am

viking777 wrote:Well you could do it this way, but it would only create a folder on your desktop, not anywhere else. Open Settings>Keyboard>Application Shortcuts and click add, for the command use:

Code: Select all
mkdir /home/yourusername/Desktop/new
(substitute your proper username of course).

Type the keyboard shortcut you want to use. That is it. The command for a file on your desktop would be:

Code: Select all
touch /home/yourusername/Desktop/new
(with a different keyboard shortcut).

File managers usually have a shortcut for creating files and folders. On Thunar the command for a new folder is Ctl/Shift/n, but it doesn't seem to have one for a new file (my file manager does have one - Ctl/Shift/f - but I guess that doesn't help you much).

Basically you can do certain things, but if you expect one shortcut to create new files and folders in all places then I don't think that exists, you will have to right click like the rest of us do.


Hello,

Thank you so much for this trick: both of them works ! Nice!
User avatar
Bali
Level 1
Level 1
 
Posts: 45
Joined: Mon Jul 28, 2008 11:41 pm
Location: Indonesia (Java and Bali)


Return to XFCE

Who is online

Users browsing this forum: No registered users and 3 guests