The Windows-R command in Windows 7/8/10 brings up the Run prompt where one may enter:
- A folder name (e.g.
c:\temp\docs) and have that folder opened in the file manager (i.e. explorer).
- A command name (e.g.
notepad.exe c:\newdoc.txt) and have that command executed if it is found in the path (or the full path may be specified).
- A document name (e.g.
d:\docs\readme.txt) and have it opened in the associated editor.
Is there any inbuilt linux functionality or utility that can provide this unified functionality?
It basically just needs to be a window that accepts a command and if that command is a directory or non-executable file, then call
xdg-open on it, otherwise execute the command.
The application finder is not adequate as it simply filters the setup launchers. I can't type a directory location, or
vi ~/mydoc.txt for example.
To open a named directory, I could use the file manager shortcut, but Thunar opens without focus on the file location bar and so then requires and additional Ctrl-L. Does Thunar have any command line option to set focus to the location bar on open? The man page shows none.
I can use the open terminal shortcut to run a command (e.g.
mousepad ~/the.conf), but then I'm left with an open terminal window.
I'm hoping I've overlooked something or that there's a simple utility out there that someone might helpfully point me towards.