-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Does not support nowrapscan #3155
Comments
I really like the 'nowrapscan' feature of Vim because I often miss the 'search wrapping' message and start reading a second time a line that I have already read. It is also very handy when searching for a symbol from the current position to the end of file. It would be very nice to have this feature in Vscodevim! |
I can't believe it that so few people cares about this feature. |
I care about being able to disable wrapscan, and I'm looking forward for it. |
I think there is a pull request to fix this and I believe it has been there a long time. I really wish this would get fixed.
…Sent from my iPhone
On Jul 22, 2019, at 11:37 AM, Juan Lanus ***@***.***> wrote:
I care about being able to disable wrapscan, and I'm looking forward for it.
It enhances vim usability.
It protects the user from some of his errors, like evaluating that there are no more instances of the searched text when there actually are.
With nowrapscan one can search repeatedly until after the editor complains, and that's it. The software checks if there are no instances left, not the human or the developer.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@jnothstine Where's the PR for this? I don't see one and am happy to implement this if there isn't an existing PR. |
My mistake, I thought I had seen one quite a while ago. Don’t know why I thought that. There isn’t one.
Sent from Mail for Windows 10
From: Jason Fields
Sent: Tuesday, July 23, 2019 5:16 PM
To: VSCodeVim/Vim
Cc: jnothstine; Mention
Subject: Re: [VSCodeVim/Vim] Does not support nowrapscan (#3155)
@jnothstine Where's the PR for this? I don't see one and am happy to implement this if there isn't an existing PR.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Partially inspired by aborted PR #3192, here is a patched version of searchState.js file that seems to do the trick : searchState.zip. It replaces the file Wrapscan can be turned on by changing line 223 to |
@contrib15 any interest in submitting a PR? |
@J-Fields I will try but probably will need some help. |
Describe the bug
VIM has a nowrapscan option that stops searches when the end of the file is reached, as opposed to continuing back to the top of the file
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When the bottom of the file is reached, the search should stop if nowrapscan can be set.
The text was updated successfully, but these errors were encountered: