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 29 results

  1. 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! Thanks! Vermeer
  2. 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
  3. 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.
  4. * 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
  5. 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?
  6. 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
  7. When use snippet and expand my text, then my clipboard is override by snippet text. Is is expected? or could it be turned off.
  8. 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.
  9. 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.
  10. 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?
  11. 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.
  12. 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
  13. 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.
  14. 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!
  15. 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.
  16. Lets you write things like ⌘⌥⇧␣⎋ with ease. Screenshot/List of Snippets Download Download latest from releases. Released under Unlicense / Public Domain. http://unlicense.org/
  17. 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
  18. As per this thread: http://www.alfredforum.com/topic/9287-send-snippet-directly-to-terminal/#entry46194 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.
  19. 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!
  20. 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.
  21. 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.
  22. 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
  23. 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! http://screencast.com/t/LZ4skGs2V7
  24. when i open the clipboard viewer, it seem there are no button that i can click to add any of the clipboard history item as a snippet, i think this feature is very useful to me, thanks very much
  25. I really like the {clipboard} variable in snippets, but it would be nice to be able to modify the clipboard as part of including it. Regular Expression syntax is pretty heavy, but there are lots of references, and with the simple inclusion of a lib, it should be almost free to implement. But I'd be happy with any reasonably powerful editing scheme. In particular, I like to turn the clipboard into Google search links, but they really should be "HTMLized" so that spaces are changed into plus signs, punctuation is removed, etc. Here is an example: <a href="http://www.lmgtfy.com/?q=Here is an example:">Here is an example:</a> But you really want the search to be "q=Here+is+an+example" (dropped punctuation) or "q=Here+is+an+example%3A" (HTMLized punctuation). With regular expressions, either would be easy to do.