Kovid Goyal
c566ed4643
hints kitten: Detect paths and hashes that appear over multiple lines
...
Fixes #3845
2021-07-19 17:35:48 +05:30
Reto Schnyder
926c3540ff
Fix unbound variable in hyperlink handling
2021-04-19 14:19:13 +02:00
Kovid Goyal
945cbca387
hints kitten: When using the linenumber action with a background action, preserve the working directory
...
Fixes #3352
2021-02-27 09:14:12 +05:30
Kovid Goyal
30c7ff341f
DRYer
2021-02-27 09:10:16 +05:30
Kovid Goyal
027c5a57f1
Work on porting kittens to use new key infrastructure
...
Also move type definitions into their own module
2021-01-16 20:52:14 +05:30
Kovid Goyal
ff96036f62
Better window title when choosing tabs/OS windows
2020-11-21 14:58:08 +05:30
Kovid Goyal
d8790a4628
Make the help text for --linenum-action less confusing
2020-11-13 23:53:26 +05:30
Kovid Goyal
b04b0c670d
Fix #3010
...
Probably ancient version of Python
2020-10-06 12:09:47 +05:30
Kovid Goyal
12c9d8d8f8
Delay load the ipaddress module
2020-10-06 06:50:17 +05:30
Sighery
10533c3eba
Hints kitten: validate IPs with ipaddress
...
On the initial commit of this feature, IPs were just matched with a
very simple regex that prioritised simplicity/readability over
accuracy.
This commit adds a postprocessor for ip matches that makes use of
Python's `ipaddress` in the standard library to validate all the IP
matches.
This way we don't need huge and complex regex patterns to match _and_
validate the IPs, and we can just use `ipaddress` to abstract us from
implementing all the validation logic into the regex pattern.
2020-10-05 20:11:25 +02:00
Sighery
b4415c90f9
Hints kitten: add support for IPs (v4 and v6)
...
It selects v4 and v6 IPs with a simple regex that doesn't actually
check for the validity of the IPs.
2020-10-05 20:11:22 +02:00
Kovid Goyal
12bbe5459d
Allow selecting hyperlinks via the hints kitten
2020-09-24 13:21:15 +05:30
Kovid Goyal
8c7886d429
Add a changelog entry for the last PR
2020-08-03 09:00:19 +05:30
Jay Han
ee0b70f51b
allow users to choose hint colors
2020-08-02 15:33:17 -07:00
Trygve Aaberge
d509a4fa8c
Expand ~ in the path argument for linenum in hints
...
Fixes #2822
2020-07-02 01:01:14 +02:00
Kovid Goyal
19df7b94ea
Clarify documentation a bit
2020-06-16 09:53:08 +05:30
Kovid Goyal
a3ecc79f0d
Dont actually need -- since kitty's option processing code is smart enough to stop looking for options after the first non-optional argument
2020-06-16 09:31:42 +05:30
Kovid Goyal
b140b15119
Add a -- to linenum hints examples
2020-06-16 08:30:34 +05:30
Trygve Aaberge
681fe7f2f2
Don't set word_characters to select_by_word_characters when empty string
...
This allows you to pass in --word-characters "" which will make hints
only match \w.
2020-04-13 23:02:44 +02:00
Kovid Goyal
8c23f9e526
DRYer
2020-03-28 09:20:28 +05:30
Kovid Goyal
90985cc846
Merge branch 'hints-copy-to-primary-selection' of https://github.com/trygveaa/kitty
2020-03-28 08:21:08 +05:30
Trygve Aaberge
63917944f2
Add an option to hints for copying to the primary selection
2020-03-27 20:23:02 +01:00
Kovid Goyal
0da566b49f
Hints kitten: Adjust the default regex used to detect line numbers to handle line+column numbers
...
See #2268
2020-03-25 10:03:25 +05:30
Kovid Goyal
382c31ddf2
Use a stub rather than TYPE_CHECKING
2020-03-15 13:27:40 +05:30
Kovid Goyal
7c4a2ba329
Fix #2434
2020-03-14 20:19:26 +05:30
Kovid Goyal
149ae2866a
more typing work
2020-03-12 08:10:51 +05:30
Kovid Goyal
7057bc663e
Implement proper editor integration for mypy
2020-03-08 14:39:46 +05:30
Kovid Goyal
d84cff0baf
The hints kitten should by default use the URL prefixes from kitty.conf
2020-03-08 13:26:55 +05:30
Kovid Goyal
afec07b124
More typing work
2020-03-06 14:19:46 +05:30
Kovid Goyal
f05890719d
Add type checking for the various CLI options objects
2020-03-05 15:47:12 +05:30
Kovid Goyal
5730ce5f53
More typing work
2020-03-03 20:18:24 +05:30
Kovid Goyal
27524bfc3d
Restore global key definitions so as not to break third party kittens that might use them
2020-03-03 15:06:10 +05:30
Kovid Goyal
8843ded1c9
Refactor key encoding
...
Cannot have key names in global namespace as not all key names are valid
python identifiers. So move them into a dict.
2020-03-03 14:54:30 +05:30
Kovid Goyal
1eee6deb22
Fix #2339
2020-02-06 16:21:40 +05:30
Kovid Goyal
9bc1b5a2d9
hints kitten: Allow pressing :sc:goto_file_line to quickly open the selected file at the selected line in vim
...
Fixes #2268
2020-01-10 10:01:03 +05:30
Kovid Goyal
90bcbbf426
No need to add index to titles when using hits kitten to choose tab/os_window
2019-11-28 10:11:14 +05:30
Kovid Goyal
5f7bcae072
hints kitten: Add an option --ascending to control if the hints numbers increase or decrease from top to bottom
2019-11-28 09:20:02 +05:30
Kovid Goyal
c8627c9713
Expand user/env vars in csutomize processing path and note that absolute paths can be used in the docs for it.
2019-11-16 10:05:25 +05:30
Kovid Goyal
432d0f3318
hints kitten: Allow passing extra CLI args when using --customize-procesing
2019-11-13 17:27:55 +05:30
Kovid Goyal
400ab584ac
hints kitten: Allow completely customizing the matching and actions performed by the kitten using your own script
...
Fixes #2124
2019-11-11 21:26:42 +05:30
Kovid Goyal
9edad62144
hints kitten: Allow using named groups in the regular expression. The named groups are passed to the invoked program for further processing.
2019-11-11 17:34:19 +05:30
Luflosi
6cc720a350
Fix typos
...
Inspired by 4d3ee554b3 .
Found using `codespell`.
2019-08-26 12:31:15 +02:00
Kovid Goyal
afcaca85da
Merge branch 'hints_regex_doc' of https://github.com/toonn/kitty
2019-08-18 07:41:14 +05:30
Toon Nolten
2575349ec2
Add expected regex syntax to hints kitten docs
...
The hints kitten's help documentation did not mention what syntax to use
for the regular expressions. I knew much of kitty was implemented in
python so I guessed correctly but not everyone might know this.
I also fixed some double-spaced sentences because most of them are
single-spaced.
2019-08-17 21:27:53 +02:00
Kovid Goyal
bdf7d98a36
hints kitten: Allow specifying :option:kitty +kitten hints --program multiple times to run multiple programs
...
See #1879
2019-08-02 10:03:04 +05:30
Kovid Goyal
68f3b6fbeb
Fix the decode_hint function to work with an arbitrary alphabet
2019-08-01 19:31:21 +05:30
Kovid Goyal
dc6d14943e
Dont use a global variable for the hints alphabet
2019-08-01 19:24:09 +05:30
Kovid Goyal
05f7334db9
hints kitten: Add a :option:kitty +kitten hints --alphabet option to control what alphabets are used for hints
...
Fixes #1879
2019-08-01 16:25:54 +05:30
Kovid Goyal
2719926870
Add some documentation on how to get regexes in the hints kitten to match over multiple lines.
2019-07-03 10:45:37 +05:30
Luflosi
4eed8463b3
Simplify chained comparisions
2019-06-05 15:24:36 +02:00