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
Fix pane zoom #2532
base: canary
Are you sure you want to change the base?
Fix pane zoom #2532
Conversation
I just tested it on macOS and the keybindings don't seem to trigger for me (either this or the cmd+shift+plus also triggers the cmd+plus). So, for now, the keybindings are: MacOS: Any feedback is appreciated. |
Consider this jargon: from: https://en.wikipedia.org/wiki/Numeric_keypad#/media/File:Qwerty.svg In Firefox and Chrome running on Windows,
In IE and Edge, except for 3a., the rest work. In Hyper (default installation), 1b, 2a and 3a don't seem to work, the rest do. |
@EdgarACarneiro Hey there, care to resolve the conflicts? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice work!
But some details have to be changed
} | ||
}); | ||
}; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you don't need using effect
mechanism and to add SESSION_FONT_SIZE_INCR
and SESSION_FONT_SIZE_DECR
action types.
Something like this should work:
export function increaseSessionFontSize() {
return (dispatch, getState) => {
const {sessions} = getState();
const uid = sessions.activeUid;
const old = sessions.sessions[uid].fontSizeOverride;
const value = old + 1;
dispatch({
type: SESSION_FONT_SIZE_SET,
uid,
value
});
};
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chabou I already removed the effect mechanism of the session font size increase and decrease. Do you want me to do it for the session font size reset too?
lib/components/term.js
Outdated
style={{ | ||
padding: this.props.padding, | ||
fontSize: this.props.fontSize, | ||
WebkitFontSmoothing: this.props.fontSmoothing ? this.props.fontSmoothing : '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is not needed anymore (because of xterm3 integration since 2.0.0-canary.9
)
Can you try without theses lines?
Can you add some menu entries to help users to discover your feature and keymaps? |
About the menu entries, where are those supposed to go? Btw, sorry it took so long to make the requested changes, exams and stuff 😞 |
Urm not sure what @chabou meant since there are already menu items for zoom and this PR just fixes it to work correctly in a multi pane scenario, no? |
@Stanzilla I just wanted to know where the menu entries were to complete them... maybe with the keymaps or some stuff, or even check if the entries are complete! Could you help me here? |
Sure, keymaps are here https://github.com/zeit/hyper/tree/canary/app/keymaps |
@chabou What menu entries are we talking about? In the hyper.js config file? In the keymaps? I'm not sure I follow |
Hey there, @EdgarACarneiro! This needs a rebase, are you willing to pick this up again? I'm sure @chabou will assist you with any questions that you might have :) |
@EdgarACarneiro willing to pick this up again? |
Hey @Stanzilla , I'm currently with a very tight schedule 😞 @AndreFCruz , care to give it a try? |
I can't currently :/
…On Tue, Oct 1, 2019, 10:48 Edgar Carneiro ***@***.***> wrote:
Hey @Stanzilla <https://github.com/Stanzilla> , I'm currently with a very
tight schedule 😞
@AndreFCruz <https://github.com/AndreFCruz> , care to give it a try?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2532>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADG7UPITMC5K5BNOL2Y54EDQMMFHTANCNFSM4EHOTVDQ>
.
|
This PR fixes #1496 and is related to #2447 and #2448.
It enables the user to zoom in/out on a single pane, when on split pane mode.
The PR was tested in both Linux and Windows, and works as expected on both.
It relies (branches from) PR #2448, where the global zoom in/out was fixed.
This PR is ready to be merged.
GIF of the feature implemented in Windows: