gobbledegook / creevey

Phoenix Slides
174 stars 25 forks source link

Enhancement Request: Zoom keyboard #44

Open mscuthbert opened 5 months ago

mscuthbert commented 5 months ago

Recent convert to Phoenix from Abacus Industries Image Viewer, and I'm so impressed! The only thing that I'm missing in switching is the ability to zoom without leaving the arrow key area.

In "Image Viewer", Zoom In, Out, Full-Screen/Window were also given as Menu Items so that shortcuts could be assigned to them via MacOS keyboard configuration. That could be one option which would work for me without needing to rewrite all the docs/localization help, etc.

The other possibility would be to add , and . as alternates for zoom out/in. On US keyboards these are very close to the arrow keys and have < and > on the same keycap so like - and + they're intuitive. SlideshowWindow.m lines 984-996 are the only non-docs place that would need to be changed.

Rationale

I work with folders of high-res medieval manuscripts and I'm often searching for a particular word or passage, so my workflow is a lot of next/prev image, scroll with mouse, zoom in/out. So it's nice to have all these keyboard commands near the arrow (and w/o needing shift for +)

Again, my huge gratitude to you for making this software -- once Abacus's Image Viewer stopped navigating in iCloud directories, I was looking everywhere for something to replace it's speed and ease of use. You have surpassed in all respects!

therealmarv commented 4 months ago

I do not like , and . to be permanently remapped to zoom in and out in Phoenix Slides. I've remapped , and . to left and right key to match Xee3 behaviour (the image viewer I used before). Different needs it seems & hard to unlearn muscle memory for me ;)

Here is a hack on how to remap keys of programs (even if they do not offer remapping functionality).

You can remap keys with Karabiner Elements.

Here is a complex modification of Karabiner Elements to achieve what you want to have with zoom in and out:

{
    "description": "Phoenix commad-dot to minus-plus",
    "manipulators": [
        {
            "conditions": [
                {
                    "bundle_identifiers": [
                        "net.blyt.phoenixslides"
                    ],
                    "type": "frontmost_application_if"
                }
            ],
            "from": {
                "key_code": "comma",
                "modifiers": {
                    "optional": [
                        "any"
                    ]
                }
            },
            "to": [
                {
                    "key_code": "hyphen"
                }
            ],
            "type": "basic"
        },
        {
            "conditions": [
                {
                    "bundle_identifiers": [
                        "net.blyt.phoenixslides"
                    ],
                    "type": "frontmost_application_if"
                }
            ],
            "from": {
                "key_code": "period",
                "modifiers": {
                    "optional": [
                        "any"
                    ]
                }
            },
            "to": [
                {
                    "key_code": "equal_sign",
                    "modifiers": "shift"
                }
            ],
            "type": "basic"
        }
    ]
}

Btw ever thought of getting a touchpad or an Logitech MX Master 3S mouse? You can zoom in/out with those devices in Phoenix

Brog33 commented 3 months ago

Btw ever thought of getting a touchpad or an Logitech MX Master 3S mouse? You can zoom in/out with those devices in Phoenix

As for zooming with touchpad & mouse - would it be possible to zoom from the position of the cursor rather than the centre of the image?