-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Duplicate of ulyssa/iamb #411
This request is a bit complicated to explain. Essentially I would like to be able to specify which commands go to which types of buffers/windows.
For example, from anywhere in normal mode, I could <S-j> to move the cursor down in the last active Rooms window. Conversely, <S-k> would move the cursor up. I could of course specify the bindings in my config:
[global_macros.normal]
channel_cursor = {
target = "window_class.rooms"
binding = {
<S-j> = "cursor down"
<S-k> = "cursor up"
}
}Another example would be being able to configure commands specifically for scrollback:
[global_macros.normal]
scrollback_cursor = {
target = "window_class.scrollback"
binding = {
"a" = ":react" # React to a message
"d" = ":redact<CR>" # Redact a message
"e" = ":edit<CR>" # Edit a message
"o" = ":open<CR>" # Open a link
"r" = ":reply<CR>" # Reply to a message
}
}I don't know how the modes/windows/buffers are all configured now but it might be too extreme a rewrite to do something like this
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels