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

Support horizontal/vertical fraction for auto_zoom_on_focus #173

Merged
merged 22 commits into from
Sep 19, 2023

Conversation

Jeangowhy
Copy link
Contributor

upgrade zoom_pane(self, auto_zoom) to support auto zoom in X and Y direction,Origami settings update:

// Automatically zoom the active pane.
// Set it to true for the default zoom, or to a user-definable
// fraction of the screen, such as "0.75" or [0.5, 0.7].
"auto_zoom_on_focus": [0.55, 0.75],

upgrade  zoom_pane(self, auto_zoom) to support auto zoom in X and Y direction,Origami settings update:

  // Automatically zoom the active pane.
    // Set it to `true` for the default zoom, or to a user-definable
    // fraction of the screen, such as "0.75" or [0.5, 0.7].
    "auto_zoom_on_focus": [0.55, 0.75],
upgrade zoom_pane(self, auto_zoom) to support auto zoom in X and Y direction,Origami settings update:

// Automatically zoom the active pane.
// Set it to true for the default zoom, or to a user-definable
// fraction of the screen, such as "0.75" or [0.5, 0.7].
"auto_zoom_on_focus": [0.55, 0.75],
Copy link
Member

@rchl rchl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing an update of settings also.

origami.py Outdated Show resolved Hide resolved
origami.py Outdated Show resolved Hide resolved
origami.py Outdated Show resolved Hide resolved
You can have Origami automatically zoom the active pane by setting `auto_zoom_on_focus` in your Origami user preferences. Set it to `true` for the default zoom, or set it to a user-definable fraction of the screen, such as `0.75`, or `[0.5, 0.6]` for horitontal and vertical correspondingly.
@Jeangowhy Jeangowhy requested a review from rchl September 14, 2023 12:49
Origami.sublime-settings Outdated Show resolved Hide resolved
origami.py Outdated Show resolved Hide resolved
origami.py Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
origami.py Outdated Show resolved Hide resolved
if you want to activate a pane when mouse on hover event, set `auto_focus_on_hover` to true in the Origami preferences.
…mouse on hover event, set `auto_focus_on_hover` to true in the Origami preferences.
Origami.sublime-settings Outdated Show resolved Hide resolved
origami.py Outdated Show resolved Hide resolved
origami.py Outdated Show resolved Hide resolved
origami.py Outdated Show resolved Hide resolved
origami.py Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
origami.py Outdated Show resolved Hide resolved
@rchl rchl changed the title Upgrade zoom_pane method Support horizontal/vertical fraction for auto_zoom_on_focus Sep 19, 2023
@rchl rchl merged commit 0e32b72 into SublimeText:master Sep 19, 2023
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

Successfully merging this pull request may close these issues.

2 participants