sVim icon indicating copy to clipboard operation
sVim copied to clipboard

Feature request: Allow bindings for pause/unpause of sVim

Open TheLocehiliosan opened this issue 7 years ago • 4 comments

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

TheLocehiliosan avatar Feb 22 '17 16:02 TheLocehiliosan

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

rosche avatar May 02 '18 17:05 rosche

@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?

TheLocehiliosan avatar Jun 08 '18 14:06 TheLocehiliosan

@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;
}

luchenyuxx avatar Jun 08 '18 14:06 luchenyuxx

@luchenyuxx Thanks, that works great!

TheLocehiliosan avatar Jun 08 '18 19:06 TheLocehiliosan