Jump to content
ke7fze

Allow cursor placement in snippet expansion

Recommended Posts

I rely on being able to determine where in the expansion the cursor ends up after a shortcut is expanded. This is a feature which exists in other text-expanding software such as TextExpander and aText.

 

For example:

nX => Notex - {cursor} - {date:yyyy-MM-dd}

 

This is a file naming system that I use for text notes.

Share this post


Link to post
Share on other sites

+1 for that

 

I used to use TextExpander for snippet expansion, and the one expansion I use the most is for git commit short messages, like:

 

git commit -m ""

 

Would love to have a way to place the cursor between the quotes after expansion ;)

Share this post


Link to post
Share on other sites

+1

 

This is really the only thing stopping me from using Alfred's snippets 100% of the time. Now, though, I'm using a combination of Text Expander and Alfred.

 

Just like shadowmaru, I mostly need custom cursor position for git-related commands.  :)

Share this post


Link to post
Share on other sites

I've always wanted to migrate from Dash to Alfred for snippets expansion but {cursor} is the only reason I haven't done that! This function would really help make snippets expansion powerful!

Share this post


Link to post
Share on other sites

{cursor} placement is now in the Alfred 3.2 pre-release.

 

Note that this is done with simulated keypresses, so placing {cursor} at the beginning of a giant snippet can take a little while to reposition the cursor.

Share this post


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...