-
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
Sneak doesn't skip hidden fold targets with set foldopen-=search
#102
Labels
Comments
Good ideas all around. |
milsen
added a commit
to milsen/vim-sneak
that referenced
this issue
Aug 3, 2015
Since vim-sneak does not work with the /-command but with the searchpos-function, the opening of folds must be done explicitly. The skipping of the content of closed folds if &foldopen does not contain 'search' should also be implemented in the future. See justinmk#102.
milsen
added a commit
to milsen/vim-sneak
that referenced
this issue
Aug 3, 2015
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; see a7f59bf. Resolve justinmk#102. This does not affect streak-mode (which still ignores &foldopen).
milsen
added a commit
to milsen/vim-sneak
that referenced
this issue
Aug 4, 2015
See issue justinmk#102 and pull request justinmk#152.
milsen
added a commit
to milsen/vim-sneak
that referenced
this issue
Nov 30, 2015
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).
milsen
added a commit
to milsen/vim-sneak
that referenced
this issue
Nov 30, 2015
See issue justinmk#102.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
set foldopen-=search
makes searching not open folds. This is expected behavior, which sneak follows. However, if you look in the vim docs, withsearch
off, searching will consider the fold to be a single target even if there are multiple matches within the fold. Sneak doesn't do this.Minimal vim setup:
Also as a related issue, sneak should open folds when we have
set foldopen+=search
but it doesn't. Instead it behaves in the same undesirable way asset foldopen-=search
.The text was updated successfully, but these errors were encountered: