Kovid Goyal
b2bfc4408e
Fix common single letter extension files not being detected
...
Fixes #4491
Fixes #4492
2022-01-10 14:20:18 +05:30
Kovid Goyal
dae8ae33f0
hints kitten: Fix matching of filenames enclosed in quotes or brackets not stripping the surrounding quotes properly. Fixes #4419
2022-01-04 10:58:31 +05:30
pagedown
98e44a8907
Unify resolution of absolute paths or config dir paths
2021-12-09 20:43:07 +08:00
Kovid Goyal
b7a28afe7e
missed a couple of options
2021-11-21 22:41:30 +05:30
Kovid Goyal
f3376601f2
Mark various options in text correctly
2021-11-21 22:37:11 +05:30
Kovid Goyal
d090db380f
Add more type annotations
2021-10-27 13:26:18 +05:30
Kovid Goyal
4494ddd8ff
mypy: Turn on return value checks
...
Its a shame GvR is married to "return None"
https://github.com/python/mypy/issues/7511
2021-10-26 22:39:14 +05:30
Kovid Goyal
6546c1da9b
run pyupgrade to upgrade the codebase to python3.6
2021-10-21 12:43:55 +05:30
Kovid Goyal
89f8151579
hints kitten: Fix a regression that caused using the default open program to trigger open actions instead of running the program
...
Fixes #3968
2021-08-23 11:56:16 +05:30
Kovid Goyal
8cfb1efb01
hints kitten: Make the --program option work with --linenum-action=self
...
Fixes #3931
2021-08-15 08:27:25 +05:30
Kovid Goyal
1bd39ff935
Use new URL scheme and define the kitty website centrally as much as possible
2021-07-27 09:03:11 +05:30
Kovid Goyal
93e3e4d2b1
Also strip \r from marked text
2021-07-19 18:12:29 +05:30
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