Search highlight disappears due to focus leaving #912
-
When I enter
Is there a setting that can simultaneously meet the following conditions:
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
2 and 3 are known issues. They're in the roadmap "Rework mode handling to work like Vim". It requires a massive change to how we handle the mode. The default visual mode (1) I think might be doable though I would expect some edge case issue that might be difficult to fix. You can try in the branch Add default visual mode setting Menu → Preferences → Settings "vintageous_default_mode": "visual", |
Beta Was this translation helpful? Give feedback.
-
Yes. Visual selections are cleared when switching views. You'll notice that if you make a selection and switch the view it clears the selection in the view you are leaving i.e. the inactive selections. This mirrors Vim behaviour. The reasoning is that a visual selection will only be visible in an active view. If you make a selection and open the command line This is how the search highlighting should work, but currently the search highlighting is lost when sublime loses focus. I might be able to resolve this issue. |
Beta Was this translation helpful? Give feedback.
-
I just noticed that in Vim the escape key doesn't clear search highlighting. I wonder if that's the default behaviour in vim or if it's controlled by an option. In Vim, it seems you have to explicitly clear search highlighting via something like
Currently neovintageous the search highligting is cleared when pressing escape. |
Beta Was this translation helpful? Give feedback.
-
In the next version you will be able set |
Beta Was this translation helpful? Give feedback.
-
I can't reproduce the issue. It was big update. You might need to restart Sublime and check the console log for any errors (Menu → View → Show Console). I'm in the process of write a release blog post, there is this draft section: Clearing of Search Highlighting with :nohlsearchControl the behaviour of search highlighting clearance upon entering Normal mode with a new setting. Currently, when you enter Normal mode by pressing To preserve Vim-like behaviour and prevent automatic clearing of highlighting upon entering Normal mode:
Apply this configuration to maintain search highlighting until explicitly cleared using To clear search highlighting directly, use the command: :noh[lsearch] For instance, you can map a key combination to clear search highlighting:
noremap <C-l> :nohlsearch<CR>
|
Beta Was this translation helpful? Give feedback.
2 and 3 are known issues. They're in the roadmap "Rework mode handling to work like Vim". It requires a massive change to how we handle the mode.
The default visual mode (1) I think might be doable though I would expect some edge case issue that might be difficult to fix. You can try in the branch
default-visual-mode
:Add default visual mode setting
Menu → Preferences → Settings