Jump to content
quaritexa

Alfred snippets with trailing space or tab.

Recommended Posts

Alfred trims trailing spaces and tabs in keyword. Fix it please.

 

 

Hi there, could you please fill in your registered Powerpack email address in your forum profile?

 

Cheers,

Vero

Share this post


Link to post

Alfred 3.0.1 now allows leading and trailing spaces in the keyword.

 

Nice, but how about the <tab> character? I have a snippet "!important;" with keyword "im<tab>" and I want it to be expanded on "im<tab>", but not on "im" or "im ".

Share this post


Link to post

Nice, but how about the <tab> character? I have a snippet "!important;" with keyword "im<tab>" and I want it to be expanded on "im<tab>", but not on "im" or "im ".

 

I have a note for allowing tab, but this will take further consideration as tab has other purposes in OS X such as switching between fields which means Alfred would have to intercept this behaviour. This is a more involving change than space suffix.

 

Cheers,

Andrew

Share this post


Link to post

I have a note for allowing tab, but this will take further consideration as tab has other purposes in OS X such as switching between fields which means Alfred would have to intercept this behaviour. This is a more involving change than space suffix.

What this mean? Will You add <tab> interception in the future minor release or not?

In https://smilesoftware.com/textexpander this feature realized.

 

P.S. Thanks for amazing application.

Edited by quaritexa

Share this post


Link to post

 

P.S. Thanks for amazing application.

 

well, at least a little sign of  appreciation...

 

In have seen Vero and Andrew answering you like two little Gandhi...

 

please, try to be 'amazing' a little you too, just some little 'thanks' or 'regards' or 'cheers' or 'hi' or 'thanks' while you are posting your questions would be appreciated ( from me at least, but maybe I'm  too much sentimental )

 

    Giulio

Edited by juliosecco

Share this post


Link to post

but maybe I'm  too much sentimental

 

 

I think you're being quite lovely.

 

OTOH, I think OP doesn't speaks English so masterfully, and really doesn't mean to be rude.

Share this post


Link to post

Sorry, but I didn't speak or write English at all, until recently. And I accustomed to speaking briefly. Forgive me for my cold Russian style :)

 

I think, best appreciation to Andrew and Vero is my recommendations to all my friends to use this helpful application, without which I feel myself clumsy.

Share this post


Link to post

Sorry, but I didn't speak or write English at all, until recently. And I accustomed to speaking briefly. Forgive me for my cold Russian style :)

 

I think, best appreciation to Andrew and Vero is my recommendations to all my friends to use this helpful application, without which I feel myself clumsy.

 

Sorry too,

quaritexa.

 

I'm getting old and maybe a little strict  (непреклонный)

 

greetings from Rome,

 

     Giulio

Share this post


Link to post

Just wanted to pop in and say... This is exactly why we love our Alfred community from all over the world. Not only are you helping each other out, but you're nudging each other to remember to be kind and friendly. This thread made me smile this morning :) 

 

Cheers,

Vero

Share this post


Link to post

I have a note for allowing tab, but this will take further consideration as tab has other purposes in OS X such as switching between fields which means Alfred would have to intercept this behaviour.

This is a more involving change than space suffix

 

Andrew, could You please add tab interception? Trailing tab is more usual behavior for snippets expansion in all other applications.

Share this post


Link to post

Hello, Andrew. I remind about request small and power feature — expanding snippets via tab key. I hope You find a window in Your busy schedule for realising this possibility. Thanks a lot.

Share this post


Link to post

@quaritexa Given the level of interest for this feature (one user in the past year), this is highly unlikely to come to Alfred.

 

At this point, Alfred doesn't modify any macOS events, having a read-only view and replacing snippets when matched.

 

Supporting Tab for snippet expansion would require Alfred to interfere with the macOS event tap, removing keystrokes to prevent i.e. moving focus to the next text field - something which isn't worth the relative behavioural risk to support a niche feature.

 

In the latest Alfred 3.4 (currently in pre-release), you can set global prefixes and suffixes to your snippets, so you can set an affix that uses the key above tab or another key to complete your snippet.

 

Cheers,
Vero

Share this post


Link to post

Hi, can you also fix trailing spaces in the expanded text?  if you use the snippets to replace common acronyms or misspelled words and enter a space in the keyword, it will not include in any trailing spaces in the replacement text.

For example i want to replace osha with OSHA.  

so if I put in a keyword of osha_ and a replacement text of OSHA_ (underscores representing the space), it will replace with OSHA (no space)

 

so a sentence like "in this situation osha has decided..." ends up looking like "in this situation OSHAhas decided..." because it dropped the trailing space

 

Share this post


Link to post
3 minutes ago, abzz said:

Hi, can you also fix trailing spaces in the expanded text?  if you use the snippets to replace common acronyms or misspelled words and enter a space in the keyword, it will not include in any trailing spaces in the replacement text.

For example i want to replace osha with OSHA.  

so if I put in a keyword of osha_ and a replacement text of OSHA_ (underscores representing the space), it will replace with OSHA (no space)

 

so a sentence like "in this situation osha has decided..." ends up looking like "in this situation OSHAhas decided..." because it dropped the trailing space

 

 

In what application or website have you seen this? I've tested this in TextEdit, and if there's a trailing space at the end of the snippet content, this is respected when it's pasted.

 

However, we know that certain apps/sites like Google Docs and Microsoft Word manipulate content before pasting, resulting in lost or added paragraph breaks, line breaks, trailing spaces, etc.

 

If you try it in TextEdit as plain text, what behaviour do you see? 

 

Cheers,
Vero

Share this post


Link to post

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