diff --git a/docs/changelog.rst b/docs/changelog.rst index 91e20d62e..a6d689b93 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -22,8 +22,8 @@ Changelog - icat kitten: Add :option:`kitty +kitten icat --print-window-size` to easily detect the window size in pixels from scripting languages (:iss:`581`) -- hints kitten: Allow selecting hashes from the terminal useful for git - commits. (:pull:`604`) +- hints kitten: Allow selecting hashes from the terminal with + :sc:`insert_selected_hash` useful for git commits. (:pull:`604`) - Allow specifying initial window size in number of cells in addition to pixels (:iss:`436`) diff --git a/kitty/config_data.py b/kitty/config_data.py index 5a75271e2..d55308207 100644 --- a/kitty/config_data.py +++ b/kitty/config_data.py @@ -775,6 +775,10 @@ output of things like: ls -1''')) k('insert_selected_word', 'kitty_mod+p>w', 'kitten hints --type word --program -', _('Insert selected word'), long_text=_(''' Select words and insert into terminal.''')) +k('insert_selected_hash', 'kitty_mod+p>h', 'kitten hints --type hash --program -', _('Insert selected hash'), long_text=_(''' +Select something that looks like a hash and insert it into the terminal. +Useful with git, which uses sha1 hashes to identify commits''')) + # }}} g('shortcuts.misc') # {{{