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

  1. 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
  2. When use snippet and expand my text, then my clipboard is override by snippet text. Is is expected? or could it be turned off.
  3. 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.
  4. 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.
  5. 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?
  6. 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.
  7. 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
  8. 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.
  9. 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!
  10. 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.
  11. Lets you write things like ⌘⌥⇧␣⎋ with ease. Screenshot/List of Snippets Download Download latest from releases. Released under Unlicense / Public Domain. http://unlicense.org/
  12. 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
  13. 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.
  14. 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!
  15. 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.
  16. 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.
  17. 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
  18. 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
  19. 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
  20. 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.
  21. It would be really cool if Alfred had an option for storing images in Clipboard History. Plain text is easy to search and light on resources, but limiting if you rely on images (e.g. graphic designer). When using snippets and/or workflow clipboard objects, {clipboard} should be able to inject images stored in the Clipboard. This would obviously increase Alfred's memory usage; if implemented, it should definitely be optional. Maybe even separate settings that set limits on how big a stored image can be (just like the current implementation for text clipping size). Cheers
  22. I've released a new version of Text Snippets changed from Text Shortcut. Now Text Snippets can handle snippets and terminal commands. https://github.com/rtoshiro/alfred-workflows-textshortcut
  23. Hi If I load up the clipboard/snippet viewer it opens up and that's fine. At the top of the list I can open up a list of available snippets or I can click on one of the items in the list of clipboard items if I wish to. However, if I open the list of available snippets and then decide that I want to go back to the list of clipboard items instead how do I do that? I've tried all the keys I can think of to no avail and at the moment I have to press the esc key to close the pane and then toggle Alfred again. I'm sure there is another way of going back to the opening list that I have failed to find. Thanks, Q
  24. I LOVE Alfred 2 - great work! I've just become a Mega Supporter. It would be good to have a {year} snippet placeholder as well as {date}. This would allow copyright style snippets to insert the current year.