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

Feature request: Allow bindings for pause/unpause of sVim #50

Open
TheLocehiliosan opened this issue Feb 22, 2017 · 4 comments
Open

Feature request: Allow bindings for pause/unpause of sVim #50

TheLocehiliosan opened this issue Feb 22, 2017 · 4 comments

Comments

@TheLocehiliosan
Copy link

I would like to bind a mapping which toggles sVim's operation.

Sometimes a site has it's own keyboard shortcuts which overlap with sVim. This would allow quickly disabling sVim, using the site's specific keyboard shortcuts, and ten quickly enabling sVim again. Perhaps it could be mapped in the sVimrc like this:

map "s v" togglePause
@rosche
Copy link

rosche commented May 2, 2018

I think this what "insert mode" does. Disable sVim (enter insert mode) with "i" (insertMode), re-enable sVim (exit insert mode) with esc (normalMode).

@TheLocehiliosan
Copy link
Author

@rosche That does seem work. Is "insert mode" actually supposed to mean "paused"? Is there some other purpose to "insert mode" on the context of sVim?

The other unfortunate business, is entering "insert mode" puts a status line at the bottom of Safari. Does anyone know if there's a way to disable that?

@luchenyuxx
Copy link
Contributor

luchenyuxx commented Jun 8, 2018

@TheLocehiliosan
In normal mode, your keystrokes go to sVim. sVim decides which operation to do from that.
When you enter insert mode, your keystrokes go to the webpage, the webpage decides which operation to do from that. In this case, sVim is unaware of your keystroke.

You can hide the "status line" by adding opacity:0; to #sVim-command in your sVimcss. You find it in show sVimrc from the sVim button.

#sVim-command {
   // other configs
   opacity:0;
}

@TheLocehiliosan
Copy link
Author

@luchenyuxx Thanks, that works great!

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