Open bmix opened 7 years ago
I think you can already do this with fman's current plugin API. Define your own (say) OpenWithFileTypes
command that stores custom actions for file types via load_json(...)
/ save_json(...)
. If an action is defined, do that. Otherwise, use fman's .run_command(...)
to run the default Open
command.
If you'd like to implement this as a plugin and need help, let me know! I'd be happy to help.
This would be an interesting plug-in to have. I write everything in markdown and find myself switching between a bunch of text editors, depending on my mood, or use case. iA Writer for editing, Caret for writing, Sublime Text 3 for major edits, and so on.
I solve the problem at this point by using Alfred and its buffer abilities. The combination of Alfred and fman has replaced Finder at this point.
macosxguru
Interesting. Can you expand on what that workflow looks like in more detail @macosxguru? Do you jump to the file with fman, copy its path via F11, then somehow use Alfred to open the file with the app you want?
I have an Alfred workflow (by hotkey) that opens the selected file in fman, Finder, Path Finder, or Commander One (whichever one is topmost) and opens it in Alfred Browser. Then I use Alfred Browser to process the file in a workflow or choose an application to open it. Very flexible and fast for me.
But, the above mentioned extension sounds promising also. I might work on one as I have time. I love new ideas!
It may make sense to add a filetypes subsystem, apart from the OS' delivered one, where the user can define actions. Care would be needed to be taken, when a filetype can be two or more types. This often happens when the container is a Zip archive (OpenDocument Format, ePub, eComics, etc.). Then the filetype would be a sublcalss of the container format.