How to open directly a folder into the terminal instead of the one that contains it?

I am trying to open the downloads directory into the terminal directly from dolphin. However when I do it, the terminal opens in the directory previous to this one (Home) and not in the directory I wanted (downloads). This issue isn’t only with this specific directory but any other one in the system where it’ll always default to the previous one.
Any way to change this?

Reference screenshots:

I try to open the downloads folder with Konsole

The home folder gets opened instead

It’s indeed curious that “open folder with konsole” opens the parent folder, but in the context menu under “Actions” you should find “Open Terminal Here” which should work as expected.

I guess konsole just doesn’t take a path argument as a default parameter, even if you launch a terminal and type $ konsole folder

1 Like

konsole --workdir ~/Downloads

works

so if you edit applications to add --workdir to the command line arguments, then the open folder with - konsole context menu will work as expected.

EDIT: however, now if you try to open konsole from krunner it fails because there is no <dir> specified.

so to fully implement this you would need to create a copy of konsole in the applications menu editor that was for this purpose (perhaps that’s what Open Terminal Here does)

F4 or (for separate terminal) ShiftF4 is the best solution :wink:

F4 is for the embedded (konsole), then Shift_F4 external (Kitty for me in a separate window).

I love the embedded, as it lets me work closely - and can do cool stuff like ‘z’ to jump the Dolphin directory from the terminal.

I never used the context menu for that one, it seems different (this is obviously some kind of bug) because if you use the actual Menu >Tools you’ll find both options (open terminal and ‘open terminal here’ which appear to do exactly the same thing…

But anyway, just F4 for embedded/linked to current view (Konsole) or Shift_F4 for separate window.

F4 opens a terminal at the current view (ignores selection)

Shift+F4 opens the terminal at the selected folder

again it matters what is selected and which function you choose.

Confused now - when I do F4, the terminal opens in the view inside Dolphin.

When I do Shift_F4, same location but external terminal, again - at the current view, regardless of selections.

The other option ‘Alt_Shift_F4’ opens at a selected folder location… at least that’s what I see from my menu and testing with keyboard shortcuts.

Actually, Shift+F4 opens the terminal in the current view (ignores selection), Alt+Shift+F4 opens at the selected folder. So there’s two different shortcuts.
Curiously, the context menu displays the same shortcut for both actions, which is clearly wrong.

1 Like

This is the argument I was interested to bring with the ‘Create New Folder’ issue being discussed elsewhere - the language for different options (or different contexts) needs to be more explicit.

1 Like

Yes, it would be a great change to have the context menu display “Open terminal here (Shift+F4)” or “Open terminal in folder (Alt+Shift+F4)” or similar respectively. It seems like the context menu needs a proper check up after all the quirks and inconsistencies we’ve found just in the last few days.