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

Feature Request: Allow for numbers to be included in eyeliner #33

Open
whoop-t opened this issue May 2, 2023 · 4 comments
Open

Feature Request: Allow for numbers to be included in eyeliner #33

whoop-t opened this issue May 2, 2023 · 4 comments

Comments

@whoop-t
Copy link

whoop-t commented May 2, 2023

Love the plugin, ty for the work.

After using it more and more, a nice feature would be to include numbers when searching with f and t or atleast have an options to include them.

Current flow without number support
Screenshot from 2023-05-01 19-41-06

@jinh0
Copy link
Owner

jinh0 commented May 21, 2023

Sorry it took a while to get back to you, I've been thinking about how I should go about this. Something like quick-scope allows the user to give a list of characters that you would like to be highlighted, but I was thinking a regex could be provided, which would make it more powerful.

For instance,

require'eyeliner'.setup {
  match = '[0-9a-zA-Z]'
}

Let me know what you think about this @whoop-t .

@whoop-t
Copy link
Author

whoop-t commented May 21, 2023

@jinh0 Yea something like that sounds good to me. This would allow for any characters(@, -, _, etc) to be included as well if the user prefers

@aerosol
Copy link

aerosol commented Jun 23, 2023

Hi, thanks for the plugin!
Came here to say that I'd love common programming symbols to be highlighted, such as {, - etc.

@gssfaw
Copy link

gssfaw commented Dec 6, 2023

@jinh0 would it be possible to implement the non English characters that way? I often work on latex documents in my native language, so it would be great, if the plugin would be able to detect them .
Update: it seems that matching any non English character is not that easy. Probably it requires utf8 implementation. I've looked through other similar plugins and it is done using vim.fn.byteidx. Here is the example: bradford-smith94/quick-scope@6fc1656

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

4 participants