insanum / sncli

Simplenote CLI
MIT License
396 stars 34 forks source link

Filter/search tags (and maybe have a tag menu) #43

Open ashiklom opened 7 years ago

ashiklom commented 7 years ago

First off, great application! I use it all the time, and it's the happiest I've been with a note application in a while.

I did have two related requests though:

  1. Would it be possible to implement searching only tags? Some of my tags happen to be common words, so when I search for them, I get all the notes with that tag and all the notes that have the tag somewhere in their content.

  2. Building on that -- Simplenote has a nice clickable list of tags that lets you filter notes to only a single tag. Would it be possible to implement a similar menu in sncli? E.g. ctrl-shift-t opens a full-screen list of all tags, and hitting enter (or something) on one of the tags lists all notes restricted to that tag.

samuelallan72 commented 7 years ago

Great to hear you enjoy sncli! :)

  1. I believe this is already implemented. Can you describe how you are currently searching for a tag? The syntax is /tag:tagname to match tags only (disregarding note content).
  2. Love this idea! Certainly something to add to the todo list - I'll look into it when I get some free time. :smile: (also to anyone reading this, PRs are always welcome! ;) )
ashiklom commented 7 years ago

Thanks for the quick reply! I see now that my first question was also answered right there in the README -- RTFM, I suppose, but thanks for pointing it out! Tried it out and it works perfectly.