Skip to content

Instantly share code, notes, and snippets.

@philocalyst
philocalyst / muttrc
Last active April 10, 2025 03:19
Attach files in neomutt using yazi (For use with this neomutt script: https://github.com/philocalyst/manilla/blob/main/filepicker.sh
macro compose a "<enter-command> source $HOME/.config/neomutt/scripts/filepicker.sh|<enter>" "Attach with file manager"
@philocalyst
philocalyst / history_search.fish
Last active March 27, 2025 02:19
Fuzzy finder integrated history search
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
@philocalyst
philocalyst / alfred_to_wezterm.applescript
Last active March 2, 2025 11:08
Alfred Wezterm Applescript (For terminal feature)
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