Hi,
Is there a way to specify a shortcut to open a terminal in the current directory in nautilus?
Hi,
Is there a way to specify a shortcut to open a terminal in the current directory in nautilus?
Open in Terminal menu item comes from gnome-terminal as a nautilus extension. Refer gnome-terminal/src/terminal-nautilus.cc#L520-573. So, this needs to be added in gnome-terminal.
Open in Console comes from nautilus, and a keyboard shortcut can be added as below.
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -9956,6 +9956,7 @@ nautilus_files_view_init (NautilusFilesView *view)
ADD_SHORTCUT_FOR_ACTION (priv->shortcuts, "view.new-folder", "<control><shift>n");
ADD_SHORTCUT_FOR_ACTION (priv->shortcuts, "view.select-pattern", "<control>s");
ADD_SHORTCUT_FOR_ACTION (priv->shortcuts, "view.zoom-standard", "<control>0|<control>KP_0");
+ ADD_SHORTCUT_FOR_ACTION (priv->shortcuts, "view.current-directory-console", "<control><shift>c");
#undef ADD_SHORTCUT_FOR_ACTION
/* This one should have been a keybinding, because it should trigger only
Well, That would mean to handle every nautilus update myself.
Why wasnāt it provided by default?
I think it would be handy to have a shortcut. Submitted following MR.
Good!
This is a must for a keyboard-centric desktop as Gnome.
'Ctrl + .' (dot) shortcut was chosen for opening terminal and is now merged into nautilus in below MR. It should be available in nautilus / GNOME 49.
What version are you using? Itās in 49 and above. You can check by clicking on hamburger menu and clicking āabout Filesā
Fedora has a downstream patch that uses ptyxis instead of gnome-console, so make sure that is installed.
The upstream version of Gnome Files opens Gnome Console (hardwired), so it must be installed. It uses DBus activation on org.gnome.Console to open a new window. Look for āorg.gnome.Consoleā in the output of
gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListActivatableNames
to check whether ist activatable (on Fedora look for āorg.gnome.Ptyxisā).
Yes, the āorg.gnome.Consoleā is there.
Fixed. gnome-terminal has to be removed along gnome-terminal-nautilus to get nautilus call ptyxis.