Search the Community

Showing results for tags 'snippet'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Alfred 3
  • Make the Most of Alfred
    • Discussion & Help
    • Bug Reports
    • Alfred Feature Suggestions
    • Themes
  • Alfred Workflows
    • Share your Workflows
    • Workflow Help & Questions
  • Alfred v2 Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting


  • Articles
    • Forum Integration
    • Frontpage
  • Pages
  • Miscellaneous
    • Databases
    • Templates
    • Media


  • New Features
  • Other

Found 31 results

  1. Would be great to have a keyword that brought up a box of options to choose from. For example: Keyword - email - - -
  2. I'd be very nice if there's a quick way to create new snippet.
  3. Hi guys, I use snippets a lot in Alfred 3, and I badly need a quicker way to edit existing snippets. They're so awesome! Please see 1st screenshot: if Cmd+S on selected snippet would open it directly (2nd screenshot) within Alfred preferences, that would be a simple but fantastic improvement! I'm suggesting Cmd+S for this because it is very similar to the already existing Cmd+S shortcut which transforms a clipping from clipboard history into a new snippet. Basically hitting Cmd+S would mean: "create a new snippet or open it for editing if it already exists". That would feel very intuitive! After hitting Cmd+S, this window would popup to make you able to quickly update the existing snippet. Thanks! Vermeer
  4. I can consistently reproduce an error when I expand a snippet then immediately execute an AppleScript workflow that manipulates the clipboard: I regularly compose business cards having all the typical information. To help expedite some repetition and reduce errors, I created a snippet and workflow to format email addresses. My defined snippet of ";e" expands to "e-mail " and my workflow is AppleScript to concatenate the first letter of the first name, entire last name, and email domain. 1. I type a person's name (e.g. "John Doe") 2. I select the name and copy it to the clipboard 3. I type the rest of the person's information 4. To enter the person's email address, I expand my snippet to get "e-mail " then execute my workflow (with a key-combo) to process the text-only clipboard and paste the result (e.g. ""). The combination yields the complete result of "e-mail" This process has worked flawlessly until the most recent update (maybe prior update?). I am currently using v3.3 [801]. My snippets have always expanded each time as expected. If I copy the name to the clipboard and process it with my workflow, the expected result is pasted. If I expand my snippet first, then process the clipboard, nothing is pasted. The debug for the workflow shows: [ERROR: action.script] 363:376: execution error: Can’t make some data into the expected type. (-1700) I can reproduce this behavior without fail. My workflow AppleScript: set convertedText to words of makeLowerCase(the clipboard) set the clipboard to text 1 thru 1 of first item of convertedText & second item of convertedText & "" tell application "System Events" keystroke "v" using {command down} end tell on makeLowerCase(theString) set UC to "ABCDEFGHIJKLMNOPQRSTUVWXYZ" set LC to "abcdefghijklmnopqrstuvwxyz" set C to characters of theString repeat with ch in C if ch is in UC then set contents of ch to item (offset of ch in UC) of LC end repeat return C as string end makeLowerCase
  5. The snippet auto-expansion doesn't work correctly in HipChat ( For example, if I have a snippet (thx -> thanks), it expands into 'ththanks' in HipChat. Snippet expansion works as expected in other apps.
  6. * What you were doing when the issue happened Nothing in particular. * Whether you were able to replicate it a second time by performing the same action Yes, the issue is reproducible. * Include any screenshots that might help us Here's a video demonstration of a snippet properly expanding in TextEdit but not in iTerm2, which has Secure Keyboard Entry disabled: I've also attached a screenshot of iTerm2 preferences. * Include the Alfred version & build number you are using Alfred 3.3 (801) * Include your OS X version macOS 10.11.6 (15G1212) iTerm2 3.0.13
  7. I have a snippet that generates a test email for me to use. It has some dynamic text inside that includes the current date and time using placeholders ex. myrandomemail{date:KKmmssaYMMMd} Is it possible that as soon as I use this one snippet, it copies the output to my clipboard manager?
  8. Any way to have a cursor appear in the middle of a snippet after executing? For example: snippet would = "Some text here {cursor would end up here} some more text here" after you call it. Hoping for something similar to how Sublime Text does it with the $1
  9. When use snippet and expand my text, then my clipboard is override by snippet text. Is is expected? or could it be turned off.
  10. Hi, I just spent an entire day switching to Alfred from aText for my text expander/snippets. My whole virtual medical office uses aText and I am getting them all to switch to Alfred. However, I have some snippets that have hyperlinks/links to a website in them - or so I thought. They worked in aText, but don't seem to work in Alfred. Any ideas how to get these links to be live? Thanks.
  11. Hello, everyone. I'm a multilingual person and want to use snippet feature on specific IME (e.g. only enabling on English IME, not other languages). But Alfred's auto expansion works all IME settings. I want to know there's setting for that or not, if not, there's some workaround for that. Thanks for your kind support in advance. Best regards, John.
  12. I would like to create a snippet that produces the numpad keys (1,2,3 etc but on the numpad, not the top of the keyboard). I don't have a numpad on my keyboard, so I cannot type the numpad keys to create the snippet. How can I create the snipped I need?
  13. I am trying to create a snippet that would produce the following: date=June 2016 where the date is automatically generated. How do I finish this? date={date:????} Thanks.
  14. Snippet entry followed immediately by a paste command, seems to result in pasting the contents of the snippet, rather than the top item of my clipboard. Example below. Clipboard is also managed by Alfred. If I wait a full second or two before pasting, my clipboard contents are pasted correctly, and confirm that my clipboard list does not include the snippet text. I do not see a setting to reduce this delay, so I suspect this is a bug. * what were you doing when the issue happened Entered keyword for snippet, immediately followed by Cmd+V for pasting my clipboard contents. I realize that I can use "{clipboard}" for this, but to keep my snippets more flexible, I prefer paste separate from the snippet action. * Whether you were able to replicate it a second time by performing the same action Confirmed this issue exists in several applications. (Primarily seen in iTerm2) * Include any screenshots that might help us Strictly a text/snippet issue, so example below- $ ps -ef | grep ps -ef grep Expected: $ ps -ef | grep 12345 where "12345" is the current contents of my clipboard. * Include the Alfred version & build number you are using v3.0.3 [694] * Include your OS X version 10.11.5
  15. I have an app called CheatSheet which requires me to hold the command key for a while and the window pops up. When i am using snippet auto expansion feature and expanding my snippets the cheatsheet window automatically pops up without me pressing the command key. Any help is appreciated.
  16. Hello there, I would like to share my emoji workflow with you: Download link: --- Update 2016-09-01: Release a different version with two more functions Download link: emj: copy emoji character emjimg: copy emoji image emjcode: copy emoji unicode sequence --- The difference between this one and any other workflows that also search emoji is that, this one includes all the description and keywords in for search, make it the easiest to get the emoji you want, you don't need to remember the actual name of the emoji character, just type the word in your mind intuitively. As far as I tried, it's really smooth! And the making of this workflow is also very simple, it just a List Filter -> Copy to Clipboard , the data filled in List Filter is a csv generated from Emoji One's developer toolkit (download here). The code to generate is also simple (it's Python): # coding: utf-8 import json import csv with open('emoji.json', 'r') as f: s = emojis = json.loads(s) toutf8 = lambda x: x.encode('utf8') with open('emoji.csv', 'wb') as csvf: writer = csv.writer(csvf, delimiter=',') for i in emojis: name = i['name'].split('\n')[0] writer.writerow([ toutf8(u'{} ({})'.format(name.lower(), i['keywords'])), toutf8(i['char']), toutf8(i['char']) ]) Whenever new emojis come out in the future, you can get the emoji.json from emojione, run this code, and drag the emoji.csv into this workflow's List Filter. Hope it helps!
  17. It would be really cool if you could add snippet nesting. For example: -snippet_1: ssig -> My signature -snippet_2: ppremade -> This is a premade email. ssig Right now, if I type ppremade then ssig won't be changed according to my first snippet. It would be really helpful.
  18. Lets you write things like ⌘⌥⇧␣⎋ with ease. Screenshot/List of Snippets Download Download latest from releases. Released under Unlicense / Public Domain.
  19. Hi, The new Alfred 3 Snippets are great - they replaced a lot of other text managers on my Mac. One question: is it possible to create Snippets so that they will run directly as terminal commands (rather than having to create a Workflow element for each Terminal command I want to run). Example: "> killall PrinterProcessor" If I create this as a Snippet, I can't find a way to get it into the Alfred window without copy n paste. What I'd like to be able to do is invoke my snippet list, type (for example) 'killall', choose the snippet "> killall PrinterProcessor" and hit return to send it like any other Alfred command prefixed with > to the Terminal. I there a simple way to do this? Thanks, Pat
  20. As per this thread: It would be great to be able to create Snippets so that they will run directly as terminal commands (rather than having to create a Workflow element for each Terminal command I want to run). Example: "> killall PrinterProcessor" If I create this as a Snippet, I can't find a way to get it into the Alfred window without copy n paste. What I'd like to be able to do is invoke Alfred's snippet list, type (for example) 'killall', choose the snippet "> killall PrinterProcessor" and hit return to send it like any other Alfred command prefixed with > to the Terminal.
  21. Hi, I'm trying to move from TextExpander to Alfred Snippets and so far things are going pretty well. BUT, am I correct that when searching Snippets, Alfred is only looking at the name of the snippet and the keyword? As opposed to the actual snippet itself. It sure would be handy if the snippet text itself was also searched. Thanks!
  22. I would like to suggest one of these two features: 1. Multiple Keywords for Snippets and Workflows Just as the headline says: Multiple keywords for snippets and workflows would be a nice possibility to defeat our habits when it means to finding the right word to access the wished snippet or workflow. I think we all already had the situation where we tried 3 or 4 keywords and then gived up to look how that damn keyword for the workflow was called. If we could add more keywords to snippets and workflows, it would make the bad times, less bad. 2. Option to turn on/off the case sensitive on Keywords Please add an option to turn this damn case sensitive keyword detection off. Yes, it is more precise if I say you only have to toggle when I write it exactly like "tHiS". But sometimes it is just annoying that the keyword auto insertion don't toggles because you wrote on letter in the wrong case. But talk about an option here, like a check-dialog-field in the snippet-editor. Not all keywords should are able to ignore case sensitive, the user should exactly set what he wonts to trigger on case sensitive and what, without. Example: If I would make a Internet-Signature-Snippet for fourms the signature for the Internet would be've the keyword-string "signet". Sounds good, but if the case sensitive option would be just a global one, instead for each keyword for itself. The problem would be that "Signet" is already a word in my language what I wouldn't like to trigger an event when starting with a capittal letter.
  23. In Alfred 3 there are automatically expanded snippets by keywords. They are awesome and work almost flawlessly after enabling the appropriate accessibility feature. As I understand, as you already have the code for detecting those keywords (I guess, by catching the consecutive key presses?), it shouldn't be hard to allowing using those keywords to trigger workflow actions. This would allow us to call workflows from any textual input. So, instead of at first calling Alfred or a specific command here, you could just write the keyword for this command and alfred would either call the action or present you with the alfred input window for your workflow. After calling the workflow the keyword should be deleted from the input, and you should have a way to replace it with the workflow's result. That's the basic what could be done with catching the keywords, but what would be even cooler — catching non-static keywords by regexps. Instead of a static keyword like `foobar`, you could set it to `foo(\d+)bar`, for example, and it would call the workflow as soon as you'd write somewhere `foo1bar`, `foo3434bar` etc., with the variable parts of the regex match as input you could use in your workflow. This would open a lot of possibilities for workflow authors.
  24. Good day. If you add a snippet, and the 'name' field contains an emoji, it will not sync to other Alfred instances. To replicate: - Add a new snippet. - In the 'name field', add an emoji character. The keyword can be whatever you want, and the snippet can be whatever you want. - Close Alfred, allow a few moments to sync. - Check other Alfred enabled device - snippet is not there. To confirm: - Return to first instance, rename the 'name' field from emoji character to normal text. - Close, wait, sync. - New snippet shows on different instance. Version: 3, b652 Sync: Dropbox OS: El Cap
  25. I too am having an issue with snippets. Initially, after installing Alfred 3 this morning (loving it btw), I was not able to get snippets to work at all, even after allowing accessibility to the Text Service. HOWEVER, after quitting Alfred and starting the app again, the snippets are at least being recognized. If I type a keyword, the text is properly detected and removed, but nothing is put in its place, it simply disappears. THIS functionality is happening in all my other applications so it doesn't seem to be app specific either. Also, sometimes, but not always, an error sound plays after the replacement. This happens in the URL bar for instance, but not in this forum form for some reason Any help would be greatly appreciated!