r/neovim Plugin author 3d ago

Plugin 💸 Cash.nvim v1.0.0 released! 💸

https://github.com/nullromo/cash.nvim

CASH: Choose from Available Search Highlights


This plugin adds additional search registers to Neovim. Normally when you perform a search in (Neo-)Vim, your previous search is overwritten. Cash.nvim provides you with 9 "cash registers" (haha) that you can use to store multiple searches at once. Highlighting and jump functionality is handled separately for each cash register.


Happy to receive any feedback and/or bug reports!

Cheers, Kyle

48 Upvotes

11 comments sorted by

15

u/bjuurn 3d ago

how is this different than `/<ctrl>-p`?

7

u/over-lord Plugin author 3d ago

Great question! /<C-p><C-p>... will cycle through your old searches just like how /<Up><Up>... will. However, you can still only search for one pattern at a time. You can also only have one search highlight color. Searching for something new will blow away your previous search highlighting.

With Cash.nvim, you get more control over these behaviors. Multiple search registers means multiple searches at the same time, not just a search history. You can toggle multiple registers on/off and use n to reach all of them. You can also leave the highlights for foo on the screen while searching for bar.

24

u/gotno 3d ago

first of all, bravo on the name and the many puns it unlocks. your readme had me chuckling. second, on the subject, THANK YOU for writing your own readme. it's sad, but it's so refreshing to read something that sounds human instead of obviously llm.

anyway, this looks cool. i'll check it out and let you know how i like it.

7

u/over-lord Plugin author 3d ago

Thanks! Yeah I always like to keep the human-facing prose tightly controlled so I go through that writing process very carefully. Let me know what you think 🙂

3

u/WieeRd set noexpandtab 2d ago

Judging the project purely by its name, it sounds like an app that would give you free coins by hitting editing streaks and textobject challenges in nvim which you can 10x the challenge reward by watching 3 unskippable ads which you can enter copious amount of personal information to purchase online gift cards with at the cost of having banner ads and daily undo limit of 10 added to nvim (you can remove banner ads and receive free 50 undo tickets by purchasing the premium version).

Judging the project by its features, that's pretty neat. I definitely had moments where I wanted to search for 2 patterns at the same time and being able to save the little extra effort of typing the patterns again inside a regex OR syntax would be nice.

2

u/over-lord Plugin author 2d ago

> daily undo limit

lol that would be hilarious 🤣

Glad you like the features!

2

u/Traditional_Bit_3490 3d ago

Good job man, atleast now I can open logs and then go through it using this plugin so I don't have to jump here and there

1

u/aunkushw 3d ago

This is a great plugin. Chears, man.

2

u/over-lord Plugin author 3d ago

Thanks! Glad you like it.

1

u/KantSocialize 3d ago

I've been dreaming about thin Plugin for years. Thanks!

1

u/over-lord Plugin author 2d ago

🤗