jupyterlab-vim icon indicating copy to clipboard operation
jupyterlab-vim copied to clipboard

Clear search

Open mlucool opened this issue 4 years ago • 3 comments

After pressing / there is no way to clear a matched search on a cell (unless of course you search for something not there). Can we clear search on entering nothing?

search

mlucool avatar Aug 09 '21 19:08 mlucool

This is actually the same as normal vim bevhior (at least in my terminal installation). The way to clear the search is with :noh.

It might be kind of nice to have something like https://github.com/junegunn/vim-slash but that probably belongs as as separate plugin that works with codemirror itself.

ianhi avatar Aug 10 '21 18:08 ianhi

Yeah - turns out it was a mapping that maps / to clear also. Thoughts on doing something similar here (opt-in)?

mlucool avatar Aug 11 '21 19:08 mlucool

It feels like this ought to already be possible with https://github.com/ianhi/jupyterlab-vimrc#jupyterlab-vimrc although it may require some actual coding as in https://discuss.codemirror.net/t/possible-vim-leader-key-work-around/3006/4 as I'm not sure how well ex mappings work for the codemirror vim implementation

ianhi avatar Aug 23 '21 17:08 ianhi

I think this issue can be closed now - somehow I forgot to target this issue in the related PR. Sorry!

peytondmurray avatar Feb 14 '23 17:02 peytondmurray

Closing as fixed by #74.

krassowski avatar Mar 12 '23 22:03 krassowski