I'd like to know if there is a way to open a file or a folder from terminal using the mouse?
When I wrote a URL LINK in terminal, it's allows me to open that link on my default browser. So I'd like to do the same with my files and folders.
I know that there is a way via cli using gnome-open or xdg-open, but I'd like a solution that uses the mouse by clicking on the path or the url.
Eg. when I write "pwd" the path allows me to click and open with Nautilus
It's the inverse of what "nautilus-open-terminal" does.
Best Answer
Gnome-terminal doesn't do this, as you are aware; unlike Nautilus, it doesn't have those sorts of extensions like
open-terminal here
. This is probably an undesirable feature anyway; URL recognition can be annoying as it is, but can you imagine doing afind
and having everything clickable?For your
pwd
example,works, (but then so does
nautilus .
) For this task, I have a bash alias:so that whenever I type
n
, it opens nautilus wherever I am.Otherwise, the format:
works, but doesn't get you the feature you're looking for.
A workaround would be:
nautilus<space>
at the prompt