mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
Switch to generic hash instead of sha1 specifically
Suggested by @maximbaz
This commit is contained in:
@@ -244,8 +244,8 @@ def functions_for(args):
|
||||
post_processors.extend((brackets, quotes))
|
||||
elif args.type == 'line':
|
||||
pattern = '(?m)^\\s*(.+)[\\s\0]*$'
|
||||
elif args.type == 'sha1':
|
||||
pattern = '[0-9a-f]{7,40}'
|
||||
elif args.type == 'hash':
|
||||
pattern = '[0-9a-f]{7,128}'
|
||||
elif args.type == 'word':
|
||||
chars = args.word_characters
|
||||
if chars is None:
|
||||
@@ -315,7 +315,7 @@ terminal window instead. A value of :file:`@` will copy the match to the clipboa
|
||||
|
||||
--type
|
||||
default=url
|
||||
choices=url,regex,path,line,sha1,word
|
||||
choices=url,regex,path,line,hash,word
|
||||
The type of text to search for.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user