Jump to content

dunkaroo

Member
  • Posts

    52
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by dunkaroo

  1. I use the workflow "Alfred Maestro" a lot and the macro in Keyboard Maestro doesn't change that often. I am wondering if I can cache the search results to improve the speed. Because sometimes when I type too fast to trigger the workflow lag a tiny bit and trigger the wrong macro. Thanks
  2. I exported from my workflow, you can take a look https://www.dropbox.com/s/vm3v6fmbneowipr/Search Ulysses 3.alfredworkflow?dl=0
  3. If you feel like geeking out to next level you can also create so call "Hyper Key" (CMD+OPTION+CONTROL+SHIFT) This way you will never shadow any of the hotkey from system or apps http://brettterpstra.com/2016/09/29/a-better-hyper-key-hack-for-sierra/
  4. Create a simple workflow link trigger "Hotkey" to action "Launch app / file"
  5. I solve this issues with creating a workflow group for all the apps that I want to have slimier weird short hand to launch the app. In your workflow it's super easy link "Keyword" to "Launch app / file".
  6. If you really wanna look into create your own workflow look into "mdfind" command. It power the Spotlight. You can actually do Spotlight search in terminal. >mdfind kind:pdf "QUERY"
  7. I have the same problem after ditching "Devonthink" and replace with "Finder", "Dropbox" and "Ulysses". Searching PDF content is one feature I need to find replacement. Luckily it's a pretty easy fix. "Spotlight" can do it. In "Spotlight Preference" I uncheck everything expect "PDF" so it only show PDF related. Works really good because you get the real time preview too which I don't think even a Alfred workflow can do.
  8. I am having a little trouble to convert {query} to url encode characters, I found a solution from Stack Exchange https://askubuntu.com/questions/53770/how-can-i-encode-and-decode-percent-encoded-strings-on-the-command-line It works fine in the terminal alias urldecode='python -c "import sys, urllib as ul; print ul.unquote_plus(sys.argv[1])"' alias urlencode='python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1])"' echo "test special character +-*/=" | urlencode but when I edit and paste to "script" in Alfred workflow it fail to run alias urldecode='python -c "import sys, urllib as ul; print ul.unquote_plus(sys.argv[1])"' alias urlencode='python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1])"' echo "{query}" | urlencode The input node is "hotkey", "current selection from os" Thanks
  9. http://www.candlerblog.com/2013/04/10/ulysses-iii-search-alfred-workflow/ This workflow do let you search Ulysses in Alfred natively.
  10. with Hammerspoon you might be able to do it http://www.hammerspoon.org/ Interacting with application menus http://www.hammerspoon.org/go/#appmenus plus Automating Hammerspoon with URLs http://www.hammerspoon.org/go/#ipcurl I will play around with it see if I can add an update to the workflow
  11. That needed to be updated to "fellow Alfred v2 and 3 users." unless there is a sub session for v3 that I been missing out.
  12. nop, I am really happy with El Capitan, no real desire to upgrade to Sierra yet. I rather wait till stable karabinar.
  13. As for sticky mode I prefer 2 key assign for trigger it. One for per app hotkey and one for global system commands. My keyboard layout is really different but if I am using normal layout I would most likely use "/" and "z" for easily pinky press which leave rest of the strong fingers to type rest of the character. Those 2 keys are rare use so avoid how the "sticky key" alphabet character could show up when key is up instead when key press down ( just flow better on screen ), Also when I am typing fast I often smash 2 to 3 keys at the same time which will cause problem. I found being able to chain 2 character after the sticky key is enough, no need for the 1 character as an alphabet as well. There is no right way but YOUR way, use what ever make sense to you this is my reply to nikivi on Karabiner github page, I think it's worth to share here. for readability and the limited number of hotkeys combo could be used. skimming thru your XML, I am guessing you are assign a lots of hotkey to trigger "Keyboard Maestro" and "Alfred" workflow or opening apps, there is better way to do it without using a single hotkey too to launch apps https://pqrs.org/osx/karabiner/xml.html.en#vkopenurldef to trigger "Keyboard Maestro" via applescript https://www.keyboardmaestro.com/documentation/6/triggers.html at the end of the page tell application "Keyboard Maestro Engine" do script "[Name or UID of Your Macro]" end tell to trigger "Alfred" via applescript https://www.alfredapp.com/help/workflows/triggers/external/
  14. Just a reminder, Karabiner won't work with the macOS sierra yet. Apple rewrite the keyboard the mouse input. It's a known issues to the author of Karabiner. He is working on the update which might take a while. Don't update to the new OS if you relay heavily on Karabiner. The new OS update only really added Siri to the OS which is not so important to me so not updating right away isn't much an issues for me.
  15. The top keyboard is "plank keyboard" It comes in 3 different size. You can find more info on their website. The philosophy behind it is make thumb more useful also "home row is King". The keyboard is fully hardware programmable. You can make it match your current keyboard layout so no new learning curve. They actually come with standard keyboard layout per-programmed. I just went crazy and redesign everything. Official website http://olkb.com/ Massdrop page (some useful explanation) https://www.massdrop.com/buy/planck-mechanical-keyboard?mode=guest_open TMK firmware for programming the keyboard, you can check out the doc to see what it can do. https://github.com/tmk/tmk_keyboard You can also google image "plank keyboard" too see more images with different keycap set up. If you spend a lots of time on the keyboard I would actually recommend Topre switch keyboard. Most mech keyboard you see on the market are Cherry MX switch which sound cheap and sandy feeling. Topre is from Japan. It sound and feel amazing. 3 brand to check out are HHKB (Happy Hacking KeyBoard), Realforce, and Leopold Topre sound example: standard cherry vs Topre sound The Topre signature "thunk" sound is something to crave for, make my daily typing so much enjoyable...sometimes I just type for the sake of the sound and feeling. It's like finger dancing on the could. Yes this is a thing, "10 min HHKB pro2 Typing Sound ASMR" mech keyboard has a thriving community out there, reddit is a good place to start. Its a rabbit hole I gotta warn you. : ) https://www.reddit.com/r/MechanicalKeyboards/new/ I am still mapping out my nature language hotkey workflow. once I get it done I will post a update here. happy hacking !
  16. I study from the included package example. /Applications/Karabiner.app/Contents/Resources/include/checkbox/launcher_mode.xml This is the example came with the app. * Open Finder: O+F key * Open Desktop by Finder: O+F,D key * Open the home folder by Finder: O+F,F (press F twice) <autogen> __KeyToKey__ KeyCode::F, KeyCode::VK_NONE, Option::KEYTOKEY_DELAYED_ACTION, KeyCode::VK_OPEN_URL_APP_Finder, Option::KEYTOKEY_DELAYED_ACTION_CANCELED_BY, KeyCode:, KeyCode::VK_OPEN_URL_FILE_Desktop, KeyCode::VK_KEYTOKEY_DELAYED_ACTION_DROP_EVENT, Option::KEYTOKEY_DELAYED_ACTION_CANCELED_BY, KeyCode::F, KeyCode::VK_OPEN_URL_FILE_Home, KeyCode::VK_KEYTOKEY_DELAYED_ACTION_DROP_EVENT, </autogen> Be mindful that you will use "__KeyToKey__" here not "__KeyDownUpToKey__" I just modify it to suit my need. as your pre app setting you can actually done with Karabiner Document here. https://pqrs.org/osx/karabiner/xml.html.enscroll down to "Filter: Specify application" You can define settings which are effective in specific applications only. Add <only> or <not> to your <item>. I am currently converting all my most use hotkey for each apps to the nature language method (sticky key mode), I used to use Alfred search menu workflow when I forget a hotkey but I just hate to use my brain to remember those stupid hotkey like cmd+opt+whatever key.... Example with that would be "S" for Select sticky mode "S" then tap "W" for Select current Word. "S" then tap "L" for Select current Line. "S" then tap "T", "B" for Select To Beginning of line. "S" then tap "T", "E" for Select To End of line. "S" then tap "U" for extend selection Up a line .....etc "T" for Text edit sticky mode "T" then tap "N" for jump to Next word. "T" then tap "P" for jump to Previous word. "T" then tap "I" for Indent current selection line. ....etc Just wanna give people example this doesn't only limited to for coder working with text.. Think about it use "F" for Filter then tap "G" for "Gaussian Blur" in Photoshop ( you read "F"ilter "G"aussian blur ) so much more nature than those awkward hotkeys I think this thread is taking space in the niche corner of the internet... let me push it even further. my to show you couple of my custom programmable mech keyboard... The bottom one is my daily driver. I remove the space bar row and push everything up one row, the idea behind it is my thumb can do more than just hitting the space bar.. anyone interested more about it can read more here https://geekhack.org/index.php?topic=81939.msg2165157#msg2165157 alone with my custom key map. The keyboard is hardware programmed with TMK firmware. I did some modify after the post but the idea is the same. (Beauty of hardware program is I can use my keyboard with all the key map mod with me to other computer. But everything I do there can be done with Karaniner. It is such a powerful tool. Can't recommend enough take the time to set it up ) anyone who is still reading here... feel free to post any question. its good to push it out side the box to make the hardware to work for you not the other way around, sorry Admin hope we didn't side track too much : p
  17. I was reading your xml file saw that you use hotkey to open apps but you can actually define open apps or script in a much cleaner way for example: <!-- Define your apps to run --> <vkopenurldef> <name>KeyCode::VK_OPEN_URL_APP_XCODE</name> <url type="file">/Applications/xcode.app</url> </vkopenurldef> <!-- Define your script to run --> <vkopenurldef> <name>KeyCode::VK_OPEN_URL_SHELL_toggle_bluetooth</name> <url type="shell"> <![CDATA[ /usr/bin/osascript -e 'display notification "Toggle Bluetooth" with title "Karabiner"'; /Applications/Karabiner.app/Contents/Library/vendor/bin/blueutil toggle ]]> </url> </vkopenurldef> then call it with <autogen> __KeyDownUpToKey__ KeyCode::X, KeyCode::VK_OPEN_URL_APP_XCODE, </autogen> in <item> this way you don't need to set it up with hotkey to trigger by Alfred or Keyboard Maestro, save you lots available extra hotkey. Right now my one of my fav tweak after reading your post is hold down "O" tap "D" for open finder, "D" stand for "directory" then with hold down "O" tap "D", "D" for open MyDocument folder (in my head I am reading "Open Directory Document") also hold down "O" tap "D", "I" for open Download Inbox folder (in my head I am reading "Open Directory download Inbox") ..... etc for all my most used folder. Used to use Alfred My Fav Folder workflow for that but this is just much faster thanks again for bring the idea up. : ) one other tweak I had with Karabiner is auto space after "," Just little tweak made my day on keyboard little better. <item> <name>Space after comma</name> <appendix>Space after comma</appendix> <identifier>space_after_comma</identifier> <autogen>__KeyToKey__ KeyCode::COMMA, ModifierFlag::NONE, KeyCode::COMMA, ModifierFlag::NONE, KeyCode::SPACE, ModifierFlag::NONE </autogen> </item>
  18. @begin KeyCode::VK_CONFIG_SYNC_KEYDOWNUP_notsave_launcher_mode_v2, ModifierFlag::LAUNCHER_MODE_V2, @end that is from the original xml come with Karabiner, you modified it, I am wondering what does it do ? I tried to modify it but it keep run the default setting. Not from my private xml setting. I am thinking the bug has to do with those codes thanks ------- answered my own question after some Googling ------- https://github.com/tekezo/Files/blob/master/Karabiner/private.launcher_mode_example/private.xml
  19. geez I been using Karabiner for a long time after reading "A Modern Space Cadet" but never realize there is launcher mode.... its amazing. here is the blog post link... I think people need to read it 1st to appreciate and understand your tweak. https://stevelosh.com/blog/2012/10/a-modern-space-cadet/ some of the highlight from the post are - "hyper key" (which is cmd + alt + opt + shift) and bind it to like CAP key. this way you can create a new layer of hotkey and wont shadow any system or any app hotkey. very useful to use with Alfred or Keyboard Maestro - "dual role key" which make all modifier key have more than 1 role. example "shift key" when tap act as "(" and when hold act as "shift" (useful for coding, I made all my modifier key to type all the left bracket such as ( { < [, the editor will auto complete the right side.) its a fantastic blog for starting out geeking with keyboard workflow. thank for sharing... now I gonna go refine my workflow... goodbye real work lol
  20. as title. I would like same hot key to resize window base on the front most window. most of my app l like to zoom at 90% but firefox for 100%. Trying to set the same hotkey for app zoom. I have all the script good to go just dont know how to assign base on focused app. thanks
  21. amazing!! thanks so much also how can I edit the data format to HH:MM DATE DAY
  22. I could be nice if when lunch Alfred and there is extra row for quick glance. see image for example. current Alfred https://i.imgur.com/sqfH9UD.png with quick glance https://i.imgur.com/75FtWPd.jpg The quick glance row can program with workflow to display some info that you check often like time, amount of task or email, network up down speed, .... to name a few. I am sure the community will cook up some cool stuff (yes, I lunch Alfred soooo much that my muscle memory is faster than turn my head to look at the time on the corner of the screen) also being able to change cursor style too !! love the Ulysses app style big fat blue cursor. thank you
×
×
  • Create New...