Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement Request: Zoom keyboard #44

Open
mscuthbert opened this issue Feb 28, 2024 · 2 comments
Open

Enhancement Request: Zoom keyboard #44

mscuthbert opened this issue Feb 28, 2024 · 2 comments

Comments

@mscuthbert
Copy link

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
Copy link

therealmarv commented Mar 9, 2024

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
Copy link

Brog33 commented Apr 12, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants