Command palette #8317
Replies: 8 comments 5 replies
-
There is already a kitty shell for this. Press ctrl+shift+esc
It doesnt have fuzzy search but it has normal shell completion with tab.
|
Beta Was this translation helpful? Give feedback.
-
Any remote control command can be invoked, one particular remote control
command is, `action` which in turn allows you to invoke any mappable
action.
|
Beta Was this translation helpful? Give feedback.
-
On Wed, Feb 12, 2025 at 01:18:36PM -0800, Vit Gottwald wrote:
If I invoke the kitty shell, how do I run the action `scroll_to_prompt -1` against the window I was in before pressing `CMD+ESC`?
action combine focus_previous_window : scroll_to_prompt -1
|
Beta Was this translation helpful? Give feedback.
-
Got the name slightly wrong, its previous_window
https://sw.kovidgoyal.net/kitty/actions/#action-previous_window
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
you forgot the colon after the combine.
|
Beta Was this translation helpful? Give feedback.
-
On Mon, Feb 17, 2025 at 11:12:54PM -0800, Vit Gottwald wrote:
```
🐱 action combine : previous_window : scroll_to_prompt -1
```
This does perform the two actions but not as expected:
1. It moves the cursor the the previous window ✅
2. It does the scroll to previous prompt ✅, but not in the previous window, but in the kitty shell window 🟥
Try
action combine : close_window : scroll_to_prompt -1
|
Beta Was this translation helpful? Give feedback.
-
There you go, no need to sue action at all:
f29bc63
Now you can just do:
scroll-window --match recent:1 1r-
|
Beta Was this translation helpful? Give feedback.
-
Kitty has so much functionality that it is virtually impossible to map it all to keyboard shortcuts.
For example I just I set up shell integrations and love
map kitty_mod+g show_last_command_output
. To quickly copy text from the last command I set upmap kitty_mod+shift+g launch --stdin-source=@last_cmd_output --type=overlay nvim
. When scrolling back through the screen withmap kitty_mod+x scroll_to_prompt 1
andmap kitty_mod+z scroll_to_prompt -1
I would like to useshow_first_command_output_on_screen
andshow_last_visited_command_output
and their counterparts that would pipe the contents to my editor.Then there is the hints kitten which can work with urls on screen, hidden urls (like the one produced by
ls --hyperLink=auto
), file path, file path with line number ...It is simply impossible to have keyboard shortcuts for everything.
Would it be possible to get a command palette so that one could quickly invoke functionality that did not make it to the keyboard mapping? That would make all the power of kitty available through one shortcut followed by fuzzy search through all the out of the box functionality.
Even better would be the possibility to define own palette items similarly to the way keyboard shortcuts are defined today. For example
Beta Was this translation helpful? Give feedback.
All reactions