Skip to content
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

Allow to manually setting the search register #77

Open
lobre opened this issue Dec 28, 2023 · 0 comments
Open

Allow to manually setting the search register #77

lobre opened this issue Dec 28, 2023 · 0 comments

Comments

@lobre
Copy link
Contributor

lobre commented Dec 28, 2023

That would be useful to be able to set the search register manually.

For example, let's say I have this text:

// special command to search hello
3j"/ywn

// prompt
hello

... // lots of code

function helloworld() {
    // core of my function
}

If "/yw would work, executing @; on line with 3j"/ywn would automatically set the current search term to "hello" (or whatever is under my prompt line), and the n would jump to the actual search result.

It seems that the search register in only one-way for now. You can paste the last searched keyword, but not manually define the current keyword to search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant