finalterm icon indicating copy to clipboard operation
finalterm copied to clipboard

Semantic File menu should have the same Open and Open With entries as nautilus

Open snaggen opened this issue 11 years ago • 5 comments

I think it would be nice if the semantic file menu would contain the same Open and Open With entries as nautilus (since that is based on the filetype and is based on the users default apps for different operations). That way we could remove the hardcoded Edit with ... and View with ... entries.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

snaggen avatar Aug 12 '14 09:08 snaggen

Nautilus typically offers mostly GUI programs, but Final Term's palette consists of terminal programs only. There is a good reason for that in the sense that it allows the user to stay within the terminal context. This becomes especially apparent when SSH is involved, where "Open with gedit..." or similar items simply don't make sense, while nano and vi are still perfectly applicable. I therefore do not think this would be a sensible enhancement in general.

However, if you wish to see this feature on your system, all you have to to is edit https://github.com/p-e-w/finalterm/blob/master/data/TextMenus/filename.ftmenu.

p-e-w avatar Aug 19 '14 18:08 p-e-w

I don't agree that final term stays within the terminal context. A terminal does not normaly provide a graphical popup menu. That is an element of a regular UI program. In that way Final Term is little of a hybrid, and it makes sense to bridge this by providing the nautilus menu. What doesn't make sense it to offer to open rpm files in a file editor, like it is currently doing.

snaggen avatar Aug 19 '14 21:08 snaggen

Hmm... your last point in particular is definitely valid. But how should the SSH issue be handled in your opinion?

p-e-w avatar Aug 20 '14 18:08 p-e-w

Well if final term knows ssh is used it could try to translate it to an sftp url. Or more simply, just gray out the "nautilus style" open menu, and just keep the terminal commands.

snaggen avatar Aug 20 '14 21:08 snaggen

OK, I'm reopening this as a wishlist item but safe to say this is likely not coming anytime soon, especially the transparent sftp translation, as it just sounds too complex for now.

p-e-w avatar Aug 23 '14 13:08 p-e-w