Last active
May 26, 2017 14:54
-
-
Save Delapouite/619ea17d911c1515edfa5daa591ad2d5 to your computer and use it in GitHub Desktop.
kak registers
This file contains 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
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