Jump to content

deanishe

Member
  • Posts

    8,759
  • Joined

  • Last visited

  • Days Won

    522

Reputation Activity

  1. Like
    deanishe reacted to Floating.Point in Option where numeric keypad bypasses requirement for modifier to action items   
    I've set up a pretty complex workaround to allow executing Alfred results via numeric keypad without a modifier. Wondering if you might consider enabling this as an option in Alfred?
  2. Like
    deanishe reacted to Floating.Point in Run a script whenever Alfred closes   
    Okay so I posted a walkthrough for getting this set up here.
    I also found Andrews post about Alfred's 'Press Secretary' – which as mentioned could be a cleaner way to do all this.
    But then I also submitted a feature request to allow numeric keypad numbers to optionally bypass the requisite modifier – because I think these quick modals really could be useful to a broader audience.
  3. Thanks
    deanishe got a reaction from hashier in Disable "ctrl" "action" on selection   
    Go into Alfred Preferences > Features > Universal Actions > General and uncheck ctrl under Show Actions.
     
    Does that fix the issue?
  4. Like
    deanishe got a reaction from Tasty Creampuff in Snippets not working at all - Alfred 4   
    Remove and re-add, not uncheck and re-check:

  5. Like
    deanishe got a reaction from iJemz in How to Find file most recently added to Finder   
    Search for Finder in Alfred, then use the Recent Documents… Universal Action on it.
  6. Sad
    deanishe got a reaction from tuti0203 in Snippets Auto Expansion on Emacs.app (macOS)   
    Dude, it (or at least yours) doesn't support ⌘V on macOS. It's clearly Emacs that's not playing by the rules here…
     
     
    Maybe Dash's developer is an Emacs user? Dunno. Point is, if an app doesn't support ⌘V for paste on macOS, I'd consider it a massive ask to expect any other apps' developers to work around that, and it would be going above and beyond if they did, imo.
     
    You're totally right that I don't know much at all about Emacs (neovim all the way, baby!), but I do know you could get Alfred's snippet expansion to work yourself with a couple of lines of lisp…
  7. Like
    deanishe reacted to vitor in External Script Says "python3 command requires the command line developer tools"?   
    But it also makes it so you can never share the Workflow with anyone else. It may not even work between your own machines. Furthermore, you’re loading your entire shell configuration—that will be slower than just running the commands to load the necessary Python environment.
     
    Not that your solution is wrong, but you should be aware of the tradeoffs.
  8. Like
    deanishe got a reaction from nikivi in Is there a way to sort universal actions list?   
    Yeah, this keeps biting me, too, and it's rather irritating. The Universal Action list just doesn't behave like Alfred is supposed to (in my mind).
     
    I'm not sure there's a lot of value in manual ordering. Re-ordering results based on your usage is kinda Alfred's thing, and it makes a manually-ordered list somewhat pointless. To my mind, the issue is rather that the algorithm Alfred currently uses to sort Actions is different to the way normal search works.
     
    We all train ourselves to consistently use the same search terms for the same items, and in return Alfred consistently ensures that the same item is always the top result for a given query. But the Actions list deviates from that behaviour, making it inherently somewhat tricky to use.
  9. Like
    deanishe got a reaction from AndreProducer in Is there a way to sort universal actions list?   
    Yeah, this keeps biting me, too, and it's rather irritating. The Universal Action list just doesn't behave like Alfred is supposed to (in my mind).
     
    I'm not sure there's a lot of value in manual ordering. Re-ordering results based on your usage is kinda Alfred's thing, and it makes a manually-ordered list somewhat pointless. To my mind, the issue is rather that the algorithm Alfred currently uses to sort Actions is different to the way normal search works.
     
    We all train ourselves to consistently use the same search terms for the same items, and in return Alfred consistently ensures that the same item is always the top result for a given query. But the Actions list deviates from that behaviour, making it inherently somewhat tricky to use.
  10. Like
    deanishe got a reaction from GatorMapi in Alfred not recognizing my keyboard shortcut for a terminal command?   
    Alfred snippets aren't expanded in Alfred by default.
     
    https://www.alfredapp.com/help/features/snippets/advanced/
  11. Like
    deanishe got a reaction from GatorMapi in Google Calculator Percentage xxx% of xxx   
    Alfred can do on its own this if you're prepared to treat percentages as the fractions they are.
     
    Type 295 * 0.0235 and Alfred will do the business. The default in Alfred's calculator is to use the OS X locale-specific separator, so if your user account is set to German language and formats, 295 * 0,0235 should give you the desired result.
  12. Like
    deanishe got a reaction from Renat Gabitov in Web Search without HTTP links   
    You can't use a regular Alfred web search for this because the page is a JavaScript "app". The URL you've found is called via JavaScript and injects the result into the current page.
     
    Consequently, to achieve the result you want, you need to inject JavaScript into the page and execute it.
     
    Here's a demo workflow.
     
    It's smart enough to inject the JS into the correct tab, but it's hard-coded to Safari because I know how to do all this in Safari.
     
    You appear to be using some kind of Chrome browser, so I'll leave adapting it to Chrome as an exercise for the reader  
     
    Mostly, you'll just need to change the code than injects/executes the JavaScript and point the workflow at the correct app.
  13. Like
    deanishe reacted to ell1134 in workflow to take current URL and open it in a new private safari browser window   
    This works perfectly. Thank you so much!
     
    Beer on the way!
  14. Like
    deanishe reacted to Mingwei in Searchio! Auto-suggestion from search engines in different languages   
    (Just a quick note in case anyone's experiencing a similar problem)
     
    The latest update to the Adguard app (2.6.0.1041) seems to be affecting search suggestions. I'm getting the error 'certificate signed by unknown authority' for both Google and Wikipedia searches (haven't tried others). Worked around this by adding an exception for Alfred in Adguard preferences (Preferences > Network > Applications... > uncheck Alfred from the 'Filtered Applications' list). 
  15. Like
    deanishe got a reaction from GatorMapi in How can Alfred search within file titles, not just from the start letter?   
    Alfred uses word-starts-with semantics: my or file should also match this is my file.doc. To search within words, prepend an asterisk to the search term: *his will match this as well as history.
     
  16. Like
    deanishe reacted to Floating.Point in Run a script whenever Alfred closes   
    Im using Alfred to display a bunch of context sensitive modal menus. My Alfred mode remaps keypad numbers to include the command modifier, so I can execute Alfred list items with a single keystroke. I also temporarily remap some close-by keys to page down and page up so I can quickly move through any longer Alfred modals
  17. Like
    deanishe got a reaction from giovanni in How do I open finder windows with finder tabs in Alfred?   
    This AppleScript will open each of the groups defined at the top of the script in a separate Finder window, with each path in its own tab.
     
    -- each list in groups will be opened in tabs in the same window property groups : {¬ {"~", "~/Documents", "~/Downloads"}, ¬ {"~/Library", "~/Library/Application Support/Alfred", "~/Desktop"}} -- How long to wait (in seconds) between simulated keypresses. -- Increase this value if the script works unreliably property _delay : 0.25 use framework "Foundation" -- expand ~ in path to home directory on normalisePath(_path) set _string to stringWithString_(_path) of NSString of current application set _norm to stringByStandardizingPath of _string return (_norm as string) end normalisePath on run tell application "Finder" activate repeat with _paths in groups -- create new window to open tabs in make new Finder window --open folder "Documents" of home delay _delay -- for each path, open a new tab and navigate to the path repeat with _path in _paths set _path to my normalisePath(_path) -- log "path=" & _path & ", target=" & POSIX path of (target of front window as alias) -- simulate CMD+T to open a new tab tell application "System Events" to keystroke "t" using command down delay _delay set target of front window to (POSIX file _path as alias) delay _delay end repeat -- close initial tab tell application "System Events" keystroke tab using control down keystroke "w" using command down end tell delay _delay end repeat end tell end run  
  18. Thanks
    deanishe got a reaction from Alan He in Keep clipboard history forever   
    +1.
     
    This is the way most similar software works, and makes more sense in terms of any potential downsides of a large history.
     
    A significantly higher limit for plain text items than for images also seems reasonable and useful.
     
  19. Like
    deanishe got a reaction from Floating.Point in Run a script whenever Alfred closes   
    @Mr Pennyworth might have some ideas: he's written a couple of applications that need to know what Alfred's doing. You might be able to use the notification API Andrew added for him, which would be absolutely ideal.
     
    The only thing I can think of is an AppleScript that launches Alfred, then waits for it to close:
     
    -- Do stuff here to enter "Alfred mode" -- Open Alfred tell application id "com.runningwithcrayons.Alfred" to search "" tell application "System Events" tell application process "Alfred" -- Wait for Alfred window to appear repeat while (count windows) = 0 delay 0.1 end repeat log "Alfred open" -- Wait for Alfred window to disappear repeat while (count windows) > 0 delay 0.1 end repeat -- Exit "Alfred mode" here log "Alfred closed" end tell end tell  
    You could do your setup and teardown in the script or before it runs and after it exits.
  20. Like
    deanishe reacted to Alan He in keyword alias   
    Sometimes I want to invoke multiple different keywords, but the execution processing logic is exactly the same at present.
     
    I have to copy it. If logic modify, I have to modify twice.
     
    It's better if Alfred support keyword alias.
     
    To be honest, this requirement may not be used much, but I still want to mention it and see your opinions.
     
     

  21. Like
    deanishe got a reaction from Alan He in keyword alias   
    I'd like to see aliases added, tbh.
     
    People/things have a fairly fuzzy one-to-many relationship with names, and some equivalent of aliases is important in a system is supposed to adapt to the user.
     
    Duplicating Keywords/Script Filters is a poor workaround because any duplicates will get removed if the workflow is updated, while keywords (and by implication aliases) are preserved.
  22. Thanks
    deanishe got a reaction from maindoor in Help creating custom web search - trimming characters   
    Hi @maindoor, welcome to the forum.
     
    That can't be done with a Custom Web Search, I'm afraid: they don't allow you to edit the query.
     
    You need to create a workflow and use a Replace utility to alter the query. Here's an example. It's not very useful because it does exactly what you said (searches mywebsite.com).
     
  23. Like
    deanishe reacted to usmaak in Icons overlapping workflow names on Workflows UI   
    I bought the new one today.  It seems like quite the upgrade from what I had.  Thanks!
  24. Like
    deanishe got a reaction from Chris Messina in Can I use Alfred to compose a group email in Spark client?   
    https://github.com/deanishe/alfred-mailto
  25. Like
    deanishe got a reaction from AndreProducer in What is osascript (JavaScript)?   
    They are. To automate macOS, you need to be able to call its automation APIs. Apple has added official support for doing that to AppleScript and JXA, while very few non-Apple languages are able to call those APIs.
×
×
  • Create New...