-
Notifications
You must be signed in to change notification settings - Fork 89
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
Enforce search behavior according to &foldopen #152
base: master
Are you sure you want to change the base?
Conversation
\ ,'streak' : get(g:, 'sneak#streak', 0) && (v:version >= 703) && has("conceal") | ||
\ ,'streak_esc' : get(g:, 'sneak#streak_esc', "\<space>") | ||
\ ,'prompt' : get(g:, 'sneak#prompt', '>') | ||
\ } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6 spaces wasn't enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That just happened accidentally. I have a leader command to indent the whole file, and apparently some of my indentation settings are a little different from yours.
Thanks, I will test this later. Functional tests would help too, though it's fine if you don't want to. |
See issue justinmk#102 and pull request justinmk#152.
For "set foldlevel-=search" sneaking did not properly skip to the end of closed folds. Now it does. See pull request justinmk#152.
Give the do-blocks a better description and remove unnecessary option settings in the execute-blocks. See justinmk#152.
Sneaking now behaves like / when "foldopen-=search" is set: Closed folds are considered to be single targets and are not opened when sneaking to them. They are opened, however, when the default-&foldopen is used or "foldopen+=search" is set. Resolve justinmk#102. This does not affect streak-mode (which still ignores &foldopen).
See issue justinmk#102.
Resolve #102. Sneaking with
set foldopen-=search
will now handle closed folds like single targets and skip over multiple search results inside of them. Withset foldopen+=search
, i.e. the default behavior, closed folds are opened when sneaking to them.Streak-mode behavior is not influenced by this patch.