-
I am trying to implement a toggle for the preview. If I press ctrl-g once, I intend to display a certain preview, say I am unable to get this behaviour. The closest I got was to switch between different keybinds (eg ctrl-g, then ctrl-c, then ctrl-g) in the screenshot above. |
Beta Was this translation helpful? Give feedback.
Answered by
lime-desu
Nov 8, 2022
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tg0h
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello I've tried to do that, but It is not perfect, the way that you wanted it, though it does the job to change the preview.
The problem is:
ctrl-g
will change the preview intobat
first, now pressingctrl-g
if the preview is onbat
it will not change the preview So pressingctrl-g
sometimes doesn't work and that behavior will be kinda annoying. ( I don't know why but, I guess the logic or order is wrong I'm too lazy to figure that out xD) here's the code snippet btw: