mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 18:51:41 +02:00
Merge branch 'master' of https://github.com/ricci/kitty
This commit is contained in:
@@ -19,9 +19,12 @@ Changelog
|
|||||||
|
|
||||||
- ssh kitten: Support all SSH options. It can now be aliased directly to ssh for convenience. (:pull:`591`)
|
- ssh kitten: Support all SSH options. It can now be aliased directly to ssh for convenience. (:pull:`591`)
|
||||||
|
|
||||||
- kitty icat: Add :option:`kitty +kitten icat --print-window-size` to easily
|
- icat kitten: Add :option:`kitty +kitten icat --print-window-size` to easily
|
||||||
detect the window size in pixels from scripting languages (:iss:`581`)
|
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`)
|
||||||
|
|
||||||
- Allow specifying initial window size in number of cells in addition to pixels
|
- Allow specifying initial window size in number of cells in addition to pixels
|
||||||
(:iss:`436`)
|
(:iss:`436`)
|
||||||
|
|
||||||
|
|||||||
@@ -244,6 +244,8 @@ def functions_for(args):
|
|||||||
post_processors.extend((brackets, quotes))
|
post_processors.extend((brackets, quotes))
|
||||||
elif args.type == 'line':
|
elif args.type == 'line':
|
||||||
pattern = '(?m)^\\s*(.+)[\\s\0]*$'
|
pattern = '(?m)^\\s*(.+)[\\s\0]*$'
|
||||||
|
elif args.type == 'hash':
|
||||||
|
pattern = '[0-9a-f]{7,128}'
|
||||||
elif args.type == 'word':
|
elif args.type == 'word':
|
||||||
chars = args.word_characters
|
chars = args.word_characters
|
||||||
if chars is None:
|
if chars is None:
|
||||||
@@ -313,7 +315,7 @@ terminal window instead. A value of :file:`@` will copy the match to the clipboa
|
|||||||
|
|
||||||
--type
|
--type
|
||||||
default=url
|
default=url
|
||||||
choices=url,regex,path,line,word
|
choices=url,regex,path,line,hash,word
|
||||||
The type of text to search for.
|
The type of text to search for.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -490,6 +490,10 @@ map kitty_mod+e kitten hints
|
|||||||
# run git commands on a filename output from a previous git command.
|
# run git commands on a filename output from a previous git command.
|
||||||
map kitty_mod+p>f kitten hints --type path --program -
|
map kitty_mod+p>f kitten hints --type path --program -
|
||||||
|
|
||||||
|
# Select something that looks like a hash and insert it into the terminal.
|
||||||
|
# Useful with git, which uses sha1 hashes to identify commits
|
||||||
|
map kitty_mod+p>h kitten hints --type hash --program -
|
||||||
|
|
||||||
# Select a path/filename and open it with the default open program.
|
# Select a path/filename and open it with the default open program.
|
||||||
map kitty_mod+p>shift+f kitten hints --type path
|
map kitty_mod+p>shift+f kitten hints --type path
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user