Open Terminal Shortcut

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.

I don’t know why but I’m not getting the shortcut in Nautilus. I can see the shortcut in the keyboard shortcuts window but nothing on Nautilus.

I have gnome-terminal and gnome-console installed.

What version are you using? It’s in 49 and above. You can check by clicking on hamburger menu and clicking ā€œabout Filesā€

Yes, it’s version 49.

nautilus.x86_64 49.3-1.fc43

Curiosly enough, the shortcut is listed in the shortcuts window.

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.