insanum / sncli

Simplenote CLI
MIT License
397 stars 34 forks source link

Search notes view #14

Closed shawnaxsom closed 9 years ago

shawnaxsom commented 9 years ago

I added the ability to search for text within the view_note view, without having to change from the default pager. It uses the same keys as view_titles (forwards-slash and meta-foward-slash), but also adds questionmark (?) to search in reverse, a la Vim. n and N work like Vim, navigating forward or back according to the direction searched.

This is my first pull request outside of work :) Hope it is good enough to add to master.

And great program! Works just how I want it to, minus a few features like this. Next I might add copy/paste yanking...probably just something simple like a single "y" for copying current line. Probably jump into edit mode for anything more complicated for now. I have been using this to copy/paste Bash commands that I made note of, and simple copy/paste would be nice without having to jump into edit mode.

insanum commented 9 years ago

Give me day or so to examine this change before I pull it in. Thanks for the effort. :-)

insanum commented 9 years ago

Nice job! Great addition... :-)