Commit Graph

8293 Commits

Author SHA1 Message Date
Kovid Goyal
c44b5bb03f Allow aliases to apply to default shortcuts as well
The extra reparse costs 0.5ms at startup on my machine and is only incurred if
at least one alias is actually defined.
2021-11-23 20:24:12 +05:30
Kovid Goyal
313add715c Use original definition for no-op 2021-11-23 19:51:25 +05:30
Kovid Goyal
56ea741126 Nicer repr for key definitions 2021-11-23 18:19:34 +05:30
Kovid Goyal
9dbdd58311 Avoid spurious exception printed to stderr when terminating a key sequence with an invalid key 2021-11-23 16:29:10 +05:30
Kovid Goyal
2ca13e886a Avoid cyclic infinite recursion
Note that this means that any alias is only expanded once per action
2021-11-23 15:36:58 +05:30
Kovid Goyal
314efe4f68 Ignore empty alias 2021-11-23 15:10:59 +05:30
Kovid Goyal
ebd2de042d Merge branch 'docs-conf-fmt' of https://github.com/page-down/kitty 2021-11-23 15:07:28 +05:30
Kovid Goyal
c46c551fee ... 2021-11-23 15:07:03 +05:30
Kovid Goyal
cecca854c0 Forgot to port parsing of open actions to use the new action_alias infra 2021-11-23 15:02:19 +05:30
Kovid Goyal
d7df4fa5dc Leave kitten_alias documented 2021-11-23 14:48:45 +05:30
pagedown
3651a101d0 Append long_text only if at least one documented option exists 2021-11-23 17:15:58 +08:00
Kovid Goyal
a97a05b1ec Allow action_alias to work with any action 2021-11-23 14:43:36 +05:30
Kovid Goyal
ee2520e036 Also prevent infinite recursion in kitten_alias 2021-11-23 07:53:40 +05:30
Kovid Goyal
88150b2012 Dont document kitten_alias as it is deprecated 2021-11-22 23:04:59 +05:30
Kovid Goyal
9161c71b51 Show the user an error message when pressing a key results in an exception 2021-11-22 23:01:44 +05:30
Kovid Goyal
d7f569b341 Add a test for recursion 2021-11-22 22:54:21 +05:30
Kovid Goyal
5dfa02b45f Better fix for infinite recursion 2021-11-22 22:44:41 +05:30
Kovid Goyal
45e629c56b Avoid infinite recursion for action_alias 2021-11-22 22:43:06 +05:30
Kovid Goyal
ee437ca2d7 Add a note about kitten invocation 2021-11-22 22:38:56 +05:30
Kovid Goyal
0293d957b2 When using combine to perform multiple actions, perform subsequent actions on event loop ticks, so that they can operate on the result of the previous action
This brings combine into line with open_actions
2021-11-22 22:20:28 +05:30
Kovid Goyal
89069407d2 Make action_alias recursive 2021-11-22 22:15:04 +05:30
Kovid Goyal
495b29bf21 Make nth_window focus the last window for numbers larger than the number of windows
Fix #4262
2021-11-22 22:02:07 +05:30
Kovid Goyal
ec5165d958 Fix action_alias not working when used with arguments 2021-11-22 21:41:55 +05:30
Kovid Goyal
1da8ad3839 Fix some type errors 2021-11-22 21:16:09 +05:30
Kovid Goyal
e97afb3433 Make the repr of SingleKey shorter 2021-11-22 20:40:42 +05:30
Kovid Goyal
a824a45602 Merge branch 'docs-conf-fmt' of https://github.com/page-down/kitty 2021-11-22 20:17:47 +05:30
pagedown
20e546b496 Formatting config options that are not added to default 2021-11-22 22:39:19 +08:00
Kovid Goyal
bf8e18441a Map action URLs automatically for all actions 2021-11-22 20:05:27 +05:30
Kovid Goyal
c5af9613fd Fix building of docs 2021-11-22 20:02:18 +05:30
Kovid Goyal
9ce807069a Replace kitten_alias with action_alias in docs 2021-11-22 19:57:54 +05:30
Kovid Goyal
aa4fa4cc85 Allow defining aliases for more general actions, not just kittens
Fixes #4260
2021-11-22 19:52:43 +05:30
Kovid Goyal
727c69ffdd Mark :code: in CLI help output 2021-11-21 22:44:43 +05:30
Kovid Goyal
b7a28afe7e missed a couple of options 2021-11-21 22:41:30 +05:30
Kovid Goyal
12bcee3b78 Fix #4258 2021-11-21 22:39:36 +05:30
Kovid Goyal
f3376601f2 Mark various options in text correctly 2021-11-21 22:37:11 +05:30
Kovid Goyal
ecea1ba241 ... 2021-11-21 10:05:47 +05:30
Kovid Goyal
81467c2e7e ... 2021-11-20 07:36:52 +05:30
Kovid Goyal
889f2fce6d Avoid deprecation warning from Apple
Apparently Apple invent half-assed language extensions like @available
and then dont implement them properly
2021-11-20 06:08:30 +05:30
Kovid Goyal
ae6318cb5a Forgot to add definitions of the notification constants for old SDKs 2021-11-20 04:58:53 +05:30
Kovid Goyal
19e653ef1b Fix building on older macOS SDKs 2021-11-20 04:42:01 +05:30
Kovid Goyal
d6949a7a3c ... 2021-11-19 22:52:57 +05:30
Kovid Goyal
5050a01856 Update shell integration features list 2021-11-19 22:51:40 +05:30
Kovid Goyal
564f865a63 Fix the :italic: role used for CLI docs not being rendered correctly in the HTML docs 2021-11-19 14:28:05 +05:30
Kovid Goyal
c1cb196365 Set the media role when playing the bell sound to "event"
Fixes #4256
2021-11-19 14:14:50 +05:30
Kovid Goyal
ca0fcada42 Merge branch 'feat-macos-notif-snd' of https://github.com/page-down/kitty 2021-11-19 12:33:34 +05:30
pagedown
8e87b639fa Use macOS 11.0 version number 2021-11-19 14:41:19 +08:00
pagedown
fccba24f0b Allow macOS notification to play sound 2021-11-19 14:41:18 +08:00
Kovid Goyal
62e32ea108 More clarification on windows' file permissions 2021-11-19 10:10:14 +05:30
Kovid Goyal
b17fe747fc Document the representation of file metadata 2021-11-19 10:02:52 +05:30
Kovid Goyal
ccc2d7d2da Document file compression 2021-11-19 09:21:09 +05:30