Unfortunately the bookmark pane in Nautilus offers no sub-folders and on my system only about 40 bookmarks can be visible at the same time.
The bookmarks are stored in in a pre-set file ~/.config/gtk-3.0/bookmarks
.
Presently I use different bookmark files for different projects something that really is a hassle.
Any tip on howto improve on this is appreciated.
Is there any possibility to use different bookmark files for different projects on Nautilus startup or may we expect sub-folders in the near future?
I found that Nautilus bookmarks are dynamically changing when the content of the file
~/.config/gtk-3.0/bookmarks
is changed. So my suggestion is the following script, that could be bind to a custom keyboard shortcut. Here is ho it works:Create executable file, called
nautilus-bookmarks-manager
and located in the directory/usr/local/bin
to be accessible as shell command (or use different name and location):Create Custom keyboard shortcut where the command should be:
The script content is:
The script will store each new profile in the directory
~/.config/gtk-3.0/bookmarks_profiles
. If this directory doesn't exist it will be created. Otherwise the script will try to renimber the existing profiles in case you have removed some of them. This leads two cases:Next. The script will compare the file
~/.config/gtk-3.0/bookmarks
with each file in~/.config/gtk-3.0/bookmarks_profiles
. If coincidence is found the script will switch to the next profile. If there is not coincidence a new profile will be created.A more advanced version of the script could use named (instead numbered) profiles and and some tool like zenity to get the names of the new profiles.