Jump to content

Search the Community

Showing results for tags 'snippet'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • 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

Categories

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

Categories

  • New Features
  • Other

Found 37 results

  1. 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!
  2. I've got a snippet defined as: "ds," = "{date:yyyy-MM-dd' '}" I like to prepend dates to filenames and so when I'm in the SaveAs dialog of the Atom Editor, for instance, and I type my trigger, I just get a low-freq buzz (indicating snippet failure, I'm guessing). The snippets work as designed in the actual text of a file. Has anyone else run into this, or more to the point, does someone have a solution? TIA!
  3. Snippet Help

    Is there a way to use the snippet workflow trigger mentioned here: https://www.alfredapp.com/help/workflows/triggers/snippet/ to fill multiple {query} fields with different text? I would like to be able to be prompted to fill multiple "fill-in" fields with different text. Is that possible?
  4. I've just migrated all my TextExpander snippets to Alfred (woot!). Would it be possible for snippets to expand within Alfred's search bar? For example, if I want to search for items with today's date in the title, I want to be able to type 'ddate' into the search, and watch that phrase be replaced with the actual, current date. I haven't found a way to do this. Am I missing something? Another example is that I have many snippets that are very long URLs. Using TextExpander, I could type the four or five letter snippet of a particular URLs into Alfred, and it would expand and then take me to that page. See what I mean? If I'm thinking about this the wrong way because there's a better method, just say the word. Thanks!
  5. Hi, I am a avid MS OneNote user. Unfortunately, I am unable to use Alfred Snippets in OneNote when "Restore clipboard contents" is checked. When that option is checked, the snippets do not create/expand, it only pastes the previous copied text into OneNote. When "Restore clipboard contents" is unchecked the snippets work properly. Out of all the programs I use, OneNote is the only program that displays this type of behavior with snippet expansion. I have tried multiple different settings and variations of the "simulated key event" and "Restore After" settings. If "Restore clipboard contents" is checked and applied the for either "After Auto Expansion" and or "After Snippets Veiwer or Keyword" the snippets are not created/expands, only the contents of the clipboard are pasted into OneNote. Info: Alfred 3.4.1 Build 860 Mac OS 10.12.5 OneNote Fast Build Version 15.37 (170718) Please let me know if you need any additional information or would like me try any additional troubleshooting steps.
  6. When creating a workflow using the new Snippet node, it's not possible to connect to an Inputs node if this last one is created using a secondary click on the canvas. I mean, it's working great when dragging the outlet of the Snippet node and releasing the mouse (the popup menu allow to insert an Input node and this node is automatically connected), but it's not working when we try to connect to an Input node that is already created on the canvas. Here in the attachment you can see that the inlet of the Input nodes doesn't appear while dragging the wire for connection.
  7. 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
  8. A lot of times when I use the snippet functionality in Chrome the first letter in the keyword stays up after the snippet expands. I've adjusted all the tweaking settings and the issue has persisted. I made sure that the Alfred helper has accessibility permissions and I have re-installed Alfred as well as Chrome. See attached GIF for the behavior. while the GIF shows it happening at the top of the text box, it also happens after I have already been typing in the middle of the paragraph.
  9. Would be great to have a keyword that brought up a box of options to choose from. For example: Keyword - email - name@gmail.com - name2@gmail.com - name.last_name@work.com
  10. I'd be very nice if there's a quick way to create new snippet.
  11. 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
  12. 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. "jdoe@abcdefg.com"). The combination yields the complete result of "e-mail jdoe@abcdefg.com" 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 & "@abcdefg.com" 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
  13. The snippet auto-expansion doesn't work correctly in HipChat (https://www.hipchat.com). For example, if I have a snippet (thx -> thanks), it expands into 'ththanks' in HipChat. Snippet expansion works as expected in other apps.
  14. Snippet not exanding in iTerm2

    * 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
  15. 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}@testemail.com Is it possible that as soon as I use this one snippet, it copies the output to my clipboard manager?
  16. When use snippet and expand my text, then my clipboard is override by snippet text. Is is expected? or could it be turned off.
  17. Link in a snippet

    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.
  18. 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.
  19. 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?
  20. 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.
  21. 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
  22. 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.
  23. Hello there, I would like to share my emoji workflow with you: Download link: https://www.dropbox.com/s/z1iipjr1qvykphm/Emoji.alfredworkflow?dl=0 --- Update 2016-09-01: Release a different version with two more functions Download link: https://www.dropbox.com/s/wipxjgrtec0vwlt/Emoji%20Full.alfredworkflow?dl=0 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 http://unicode.org/emoji/charts/full-emoji-list.html 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 = f.read() 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!
  24. 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.
  25. Mac Keys [Snippet Pack]

    Lets you write things like ⌘⌥⇧␣⎋ with ease. Screenshot/List of Snippets Download Download latest from releases. Released under Unlicense / Public Domain. http://unlicense.org/
×