This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Make sure this is installed and placed within your spoons directory (https://github.com/Hammerspoon/Spoons/raw/master/Spoons/URLDispatcher.spoon.zip) | |
local urlDispatcher = hs.loadSpoon("URLDispatcher") | |
if urlDispatcher then | |
-- Configure Spoon variables directly | |
urlDispatcher.set_system_handler = true -- Attempt to set Hammerspoon as default browser | |
urlDispatcher.url_patterns = { | |
-- Notion links -> Chrome | |
{ "^https?://.*%.notion%.site", "com.google.Chrome" }, | |
-- Zoom links -> Zoom App |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macro compose a "<enter-command> source $HOME/.config/neomutt/scripts/filepicker.sh|<enter>" "Attach with file manager" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function history_search | |
set -l fuzzy_cmd | |
if type -q sk | |
set fuzzy_cmd sk | |
else if type -q fzf | |
set fuzzy_cmd fzf | |
else | |
echo "Error: Neither skim nor fzf is installed" | |
return 1 | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on alfred_script(query) | |
tell application "WezTerm" to activate | |
do shell script "/Applications/WezTerm.app/Contents/MacOS/wezterm cli spawn" | |
set commandList to paragraphs of query | |
repeat with command in commandList | |
do shell script "echo " & quoted form of command & " | /Applications/WezTerm.app/Contents/MacOS/wezterm cli send-text --no-paste" | |
end repeat | |
end alfred_script |