fman-users / fman

Issue tracker for fman, a cross-platform file manager
https://fman.io
240 stars 3 forks source link

Make it possible to define keyboard shortcuts for "Open With" a specific app #436

Closed mherrmann closed 6 years ago

mherrmann commented 6 years ago

Requested by @divenyijanos in #61.

mherrmann commented 6 years ago

Implemented. Will go live with fman 1.1.3.

To define a shortcut for opening with a specific app, add eg. the followig to Key Bindings.json in your Settings plugin.

[
    {"keys": ["Ctrl+Enter"], "command": "open_with", "args": {"app": "Gimp"}}
]

You can find the available "app" names in Apps.json in the same directory.

mherrmann commented 6 years ago

Released as part of fman 1.1.3.

macosxguru commented 6 years ago

Where is the Apps.json document in the Settings directory?

Do I have to create it? How does one do that?

screen shot

macosxguru

mherrmann commented 6 years ago

It's created the first time you launch the Open With command. I need to make that clearer, sorry.

macosxguru commented 6 years ago

Cool. Thanks. It has some weirdnesses in the way it behaves. I am going to work on it for a while and then post a write-up on how it is behaving.

macosxguru

divenyijanos commented 6 years ago

Cool. Thanks. My main use case was to open multiple images (.png, .pdf, etc.) at once within one Preview window. It is kind of random whether Open with... opens them together, or in separate windows (or just 2 images in one window, other 3 images in another). Any idea how to fix this behavior?

mherrmann commented 6 years ago

I'm sorry, I don't know. By the way, I only just realised that you are talking about macOS's QuickLook feature? If yes, you can also launch that with Cmd+Space.

divenyijanos commented 6 years ago

You mean, right from fman? For Cmd+Space I get the standard Spotlight Search.

mherrmann commented 6 years ago

Sorry Shift+Space.

divenyijanos commented 6 years ago

Shift+Space indeed opens the image, but I cannot make it open multiple images at once, so that I can change between them with the arrow keys.

mherrmann commented 6 years ago

Okay! I just implemented support for multiple files with Shift+Space (#448). Will go live with fman 1.1.4.

mherrmann commented 6 years ago

fman 1.1.4 is live.

divenyijanos commented 6 years ago

Cool, you won me :)

mherrmann commented 6 years ago

:pray:

mareksamec commented 4 years ago

Thank you for this awesome feature! I just discovered it here by Googling, would it be possible to add this new possibility to the documentation here? : https://fman.io/docs/custom-shortcuts