I have a simple set of related commands that are easy to learn and use,īut improve my daily efficiency manyfold.įirst, I have the 10-15 most common applications I use bound to Hyper + a single key, such as Hyper+space to open my editor. Switching between and resizing windows in macOS becomes much faster. It lets you arrange, resize, switch between, and open applications and windows on one or more monitors.īy setting up a few basic commands in Hammerspoon, I mostly use it for window management, not unlike other tools like Divvy or SizeUp. It’s time to set up some shortcuts that use Hyper in order to ease window management. Then, install this karabiner configuration.Īlternatively, you can download this file and add it by hand to the complex modifications section of That way, we can user Hyper and Escape on the same key, without them interfering. We are going to do that too–but only when tapped. Vim users often remap caps lock to Escape to save their pinky finger some pain. My primary use for Hyper is machine-global shortcut keys,Įspecially for window management with Hammerspoon. We can effectively create a new modifier key. Since no sane application will expect a user to hold all those keys at once, We can make use of Steve Losh’s idea of emulating the extra “Hyper” key introducedīy the Space Cadet keyboard by defining Hyper as control+option+command+shift. Having an extra modifier key open for whatever we want. 1: The “Hyper” key + transform Caps Lock into Escape Some of these improvements require extra software,Īnd there’s a section at the bottom to set that up when needed. Handful of high-value improvements that can go a long way without hours of investment. The time you can spend on this is virtually unbounded,īut I have found there are a few tricks that many people miss-a So it’s worth spending a little time improving common workflows now and then. timer.Software developers spend hour after hour on their machines, If (current_clipboard = nil and honor_clearcontent) then It prevents the history from keeping items removed by password managers If the pasteboard owner has changed, we add the current item to our history and update the counter.Ĭurrent_clipboard = pasteboard. changeCount() - displays how many times the pasteboard owner has changed // Indicates a new copy has been made Local settings = require( "hs.settings "). Local pasteboard = require( "hs.pasteboard "). Jumpcut: setTooltip( "Jumpcut replacement ") Local pasteOnSelect = false - Auto-type on click If any application clears the pasteboard, we also remove it from the history Local honor_clearcontent = false -asmagill request. Copies larger than this will have their label truncated and end with "…" (unicode for elipsis. Local label_length = 40 - How wide (in characters) the dropdown menu should be. Local hist_size = 20 - How many items to keep on history If you check too frequently, you will loose performance, if you check sparsely you will loose copies Local frequency = 0.8 - Speed in seconds to check for clipboard changes. > Ng irc suggestion: hs.t("jumpCutReplacementHistory", clipboard_history) "typed" instead of copied to the active clipboard. This means that the selected item will be If you open the menu while pressing option/alt, you will enter the Direct Paste Mode. You can access this history on the menu (Unicode scissors icon).Ĭlicking on any item will add it to your transfer area. It monitors the clipboard/pasteboard for changes, and stores the strings you copy to the transfer area. This is my attempt to implement a jumpcut replacement in Lua/Hammerspoon. apps, 'space ', openApplication( 'Slack ')) ctrl, 'space ', openApplication( 'iTerm ')) alt, 'space ', openApplication( "Finder ")) apps, ', ', openApplication( "System Preferences ")) apps, 'S ', openApplication( "Spotify ")) Any changes made here are automatically reloaded on save.
0 Comments
Leave a Reply. |