Commit Graph
601 Commits
Author SHA1 Message Date
Kovid Goyal d219654387 Use a dedicated choose() method matching confirm() 2022-01-22 12:27:20 +05:30
Kovid Goyal ce7282a53c DRYer 2022-01-22 10:47:52 +05:30
Kovid Goyal 0d33380e6a Cleanup previous PR
yesno default should be yes.
Pressing q to quit is undiscoverable
Clicking empty cells should not trigger buttons as that is
undiscoverable and possibly surprising
2022-01-22 10:44:01 +05:30
pagedown d29faa0986 Allow tab title to be set to empty to use window title 2022-01-22 03:28:42 +08:00
pagedown 88ee5e95fc Add default choices for features that use ask kitten 2022-01-22 03:21:59 +08:00
pagedown 9a119255fe ask kitten: Use the default value as input text
Prefill the current value when changing the tab title.
2022-01-22 03:11:39 +08:00
Kovid Goyal 47fdce6483 remove executable perms from boss.py 2022-01-19 13:12:52 +05:30
Kovid Goyal cf91e1973b Show number of windows per tab in the select_tab action
Fixes #4523
2022-01-16 10:03:20 +05:30
Kovid Goyal 24c44861ef Cleanup previous PR
Simplify wrapping of toggle_secure_input
Dont duplicate debug_keyboard flag in two places
2022-01-09 22:11:22 +05:30
pagedown f7be4fab48 macOS: Allow mapping secure keyboard entry shortcut 2022-01-09 22:54:03 +08:00
Kovid Goyal 1454af2d41 macOS: Allow customizing the launch actions 2022-01-07 18:43:07 +05:30
Kovid Goyal bf84f95a94 macOS: When launching a shell script use its shebang, if present 2022-01-07 13:52:13 +05:30
Kovid Goyal d42f2071c3 hold windows when running shell scripts via launch services 2022-01-07 13:45:02 +05:30
Kovid Goyal 5bfed4fe2f Also launch bash/zsh/fish scripts in their respective shells 2022-01-07 12:48:59 +05:30
Kovid Goyal 6c139600a0 macOS: Also open .sh and .command files in the default shell 2022-01-07 12:32:26 +05:30
Kovid Goyal b80b8524e6 oops 2022-01-07 12:29:57 +05:30
Kovid Goyal ffa63e27ea macOS: Allow opening text files, images and directories with kitty when launched using "Open with" in Finder
Fixes #4460
2022-01-07 12:25:30 +05:30
Kovid Goyal 8f0825bc5c Various fixes for mypy 0.920 2021-12-17 05:56:19 +05:30
pagedown 7e449dec4f Docs: Use underscores in kitten document filenames 2021-12-10 17:30:51 +08:00
pagedown 8ae0ae2c93 Docs: use the action name of the shortcut in several places 2021-12-10 14:36:16 +08:00
Kovid Goyal 892b8c03eb Cleanup previous PR 2021-12-09 11:44:13 +05:30
pagedown 02a7316342 Use the unified PATH search function 2021-12-09 11:32:30 +08:00
Kovid Goyal bc25e5a8a2 DRYer 2021-12-07 15:52:06 +05:30
Kovid Goyal 8f688fb33b When confirming close restore global state if the ask kitten is aborted without output
Fixes #4320
2021-12-06 17:25:27 +05:30
pagedown 1f3d86a434 Add a new mappable action nth_os_window to focus OS window 2021-12-04 20:45:01 +08:00
Kovid Goyal 16201ac873 Use a logo for the kitty shell window 2021-12-03 20:25:07 +05:30
Kovid Goyal e04919098f Start work on a per window logo 2021-12-02 11:14:17 +05:30
Kovid Goyal af7a104f5b Fix typo causing actions to be run multiple times with combine 2021-12-01 10:39:02 +05:30
Kovid Goyal 0c274a9a0b Parse actions on demand
This removes the startup cost of parsing hundreds of default actions
when action_alias or kitten_alias are used. Although the cost is on the
order of 1ms, this design feels cleaner and gives nicer debug config
output.
2021-11-29 21:51:42 +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 a97a05b1ec Allow action_alias to work with any action 2021-11-23 14:43:36 +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 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 aa4fa4cc85 Allow defining aliases for more general actions, not just kittens
Fixes #4260
2021-11-22 19:52:43 +05:30
Kovid Goyal 6afaec1d62 Use a single function for getting command output 2021-11-15 15:17:34 +05:30
Kovid Goyal 80b5f31256 Cleanup handling of types of kitten input 2021-11-15 15:17:34 +05:30
pagedown f3dd2a8bfd Get the first command output on screen and the last scrolled one 2021-11-15 15:17:33 +05:30
Kovid Goyal 74a5d3a25e allow multiple close and removal actions 2021-11-12 21:16:21 +05:30
Kovid Goyal 4318d2d7d0 Cleanup previous PR
Doesnt need a separate changelog entry as its covered by the entry for
focus_visible_window
2021-11-09 22:23:48 +05:30
pagedown 353a48d913 Allows to configure the characters for visual window select 2021-11-09 21:05:31 +08:00
Kovid Goyal 6fa0a21b3c Cancel visual select when its OS Window or Tab is closed 2021-11-07 18:12:50 +05:30
Kovid Goyal 46f88494e3 Merge branch 'feat-sel-win-reactivate-prev-tab' of https://github.com/page-down/kitty 2021-11-06 11:44:40 +05:30
Kovid Goyal 4818ac0750 More consistent method naming 2021-11-06 11:35:08 +05:30
Kovid Goyal d96429e6b8 When handling mouse events in visual select mode cancel the visual select if the original tab is not active any more 2021-11-06 11:34:22 +05:30
Kovid Goyal 9cda076c93 Fix restoring of OS window title after visual selection 2021-11-06 11:28:56 +05:30
Kovid Goyal d30c761b3b A new mappable action to close windows with a confirmation
Fixes #4195
2021-11-06 11:09:41 +05:30
Kovid Goyal 49a0e8e242 Move close_window from Tab to Boss
We might eventually implement OS Window level floating windows
and the close_window action actually used the Boss method anyway
2021-11-06 10:45:07 +05:30
Kovid Goyal 8630c7a700 Fix canceling the select window overlay not calling the callback in stack layout 2021-11-06 10:28:34 +05:30
Kovid Goyal 905fbeec14 Fix cancelling visual select not working in stack layout 2021-11-06 10:25:10 +05:30
pagedown 7a66c1a01c Allow select-window to reactivate previously activated tab 2021-11-06 09:32:36 +08:00