eyeliner.nvim icon indicating copy to clipboard operation
eyeliner.nvim copied to clipboard

Feature Request: Allow for numbers to be included in eyeliner

Open whoop-t opened this issue 2 years ago • 4 comments
trafficstars

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

whoop-t avatar May 02 '23 02:05 whoop-t

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 .

jinh0 avatar May 21 '23 22:05 jinh0

@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

whoop-t avatar May 21 '23 22:05 whoop-t

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

aerosol avatar Jun 23 '23 06:06 aerosol

@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: https://github.com/bradford-smith94/quick-scope/commit/6fc165632b98be37d60ec8ba83220e761436f298

gssfaw avatar Dec 06 '23 16:12 gssfaw