Skip to content

Instantly share code, notes, and snippets.

@Delapouite
Last active May 26, 2017 14:54
Show Gist options
  • Save Delapouite/619ea17d911c1515edfa5daa591ad2d5 to your computer and use it in GitHub Desktop.
Save Delapouite/619ea17d911c1515edfa5daa591ad2d5 to your computer and use it in GitHub Desktop.
kak registers
def registers %{ %sh{
echo -n info -title registers -- %{
echo '% ' "$kak_reg_percent"
echo '. ' "$kak_reg_dot"
echo '# ' "$kak_reg_hash"
echo '" ' "$kak_reg_dquote"
echo '@ ' "$kak_reg_arobase"
echo '/ ' "$kak_reg_slash"
echo '^ ' "$kak_reg_caret"
echo '| ' "$kak_reg_pipe"
for letter in {a..z}; do
prefix=kak_reg_
eval reg=\$$prefix$letter
if [ -n "$reg" ]; then
echo "$letter $reg"
fi
done
echo }
} }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment