Jump to content

Show snippet keyword in snippet keyword search


Recommended Posts

Hi,

 

I sometimes forget the keyword for a snippet, but when I search for it with the snippet keyword (default is "snippet" I think), it only shows the snippet in a one-liner, not the keyword, so I never learn the keyword unless I look it up in Alfred Preferences or invoke the Snippet Viewer Hotkey. I'd love to be able to see the snippet keyword if I held in e.g. ⌘ key.

 

PS: This is largely resolved by using the "Snippet Viewer Hotkey" instead of "Snippet Keyword", but I'd be nice to have both places.

Edited by gandalfsaxe
Link to post
Share on other sites

@vitor Sure.

 

As an example, I have an snippet with:

 

Name: Happy - Owl

Keyword: !owl

Snippet: ⊙▽⊙

 

Pressing the Viewer Hotkey:

image.thumb.png.677cde225731b62d48b22aa1b5a63ea7.png

It tells the keyword "!owl" in the lower right portion of the screen.

 

If instead I invoke the "Snippet keyword" (which I've set to "s"), I get:

image.thumb.png.48e78f5b82901ef81d0ac773378e3c8a.png

I.e. no keyword "!owl", just the title and content of the snippet. It would be useful it this would show the keyword as well, either by default or by holding a modifier key.

Link to post
Share on other sites
  • 6 months later...

Thanks for posting this feedback, @gandalfsaxe! I agree 💯, it would be awesome to have the keyword displayed on Snippet Keyword results as well as the Snippet Hotkey screen. 90% of the time, I'm using the Hotkey because I forgot the keyword for some seldom used snippet. I realize I can just select the snip to have it pasted straight away, but I hit Escape and then type the keyword instead. Rationale: next time I'll remember the keyword by having forced myself to type it after having had to look it up. 

 

Even when using the Snippet Hotkey list, I'm not in love with the keyword being displayed in the lower-right of the result pane only when a snippet is selected. I'd prefer the keyword be displayed to the right or under the snippet (sub-text style). I'd also prefer it to be displayed at all times and not have to select the snippet to see it's keyword. This would save keystrokes by no longer having to arrow down after searching to get the keyword to display.

2020-09-19_1610@2x.jpg.c2890177827dfdeda74b07d6cad42fa6.jpg

 

As far as the Snippet Keyword, same deal. I'd vote for having the keywords displayed in the Subtext, to the right of the "Paste:" preview to give a quick glance at the missing (in my brain) keyword:

2020-09-19_1621@2x.jpg.f33b108f9a435af1d45dbeb09c302c19.jpg

 

Thanks for being by far my most used utility, Alfred! 🏆

 

Update: to preempt the likely inevitable reply "just put the keyword in the snippet name":

- its OK advice if you received and start following it from the beginning of building your snippet collection and don't change your keywords too often, but I'm thousands of snippets in at this point

- it seems like a waste of ongoing effort when the keyword values are available to the display templates for these screens (as evidenced by the fact that they already show up in the Hotkey window), I'm advocating for expanding that functionality (and adding it to the Snippet Keyword results) 

 - most snippet collections don't follow this convention, so users need to go through and update each snippet by hand after import

Edited by khit
Added update for "just put the keyword in the snippet name"
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...