Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 23859  / 2 Years ago, wed, april 6, 2022, 1:07:05

While I have a nautilus window open I can do Ctrl+Shift+N to create a new folder in the current directory. However there is no default keyboard shortcut for creating a new document. How would I create one?


More From » nautilus

 Answers
3

First, open gconf-editor and set /desktop/gnome/interface/can_change_accels to true. This lets you edit menu shortcuts.



Second, open a terminal and type:
killall nautilus && UBUNTU_MENUPROXY= nautilus
This will relaunch Nautilus with the standard (non-Unity) menu bar, because the Unity menu bar doesn't support this feature. (It will respect your changed shortcuts, but it won't let you change them.)



Now, open the file menu, hover the mouse over Create Document > Empty File and press your desired shortcut. Ctrl-Alt-N seems like a decent choice, or you can reassign Ctrl-N. You should see the accelerator hint change in the menu.



Finally, relaunch Nautilus without the UBUNTU_MENUPROXY variable to get your Unity menus back with the new shortcut.



Edit: The solution for newer versions is nearly the same , except you need to use dconf-editor instead of gconf-editor. You can install the dconf-tools package to get dconf-editor.



Also, the killall nautilus ... command did not appear to be necessary.




  1. Run dconf-editor.

  2. Go to org/gnome/desktop/interface.

  3. Check the box for can-change-accels.

  4. Open Nautilus and highlight the menu item whose key binding you want to change, either with your mouse or via the keyboard, and press the key(s) you want to use as the shortcut.

  5. Don't forget to uncheck can-change-accels in dconf-editor after you're done.


[#44221] Thursday, April 7, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
istictroubli

Total Points: 306
Total Questions: 96
Total Answers: 114

Location: Sao Tome and Principe
Member since Wed, Jul 13, 2022
2 Years ago
istictroubli questions
;