Some Copy-mode ideas #2547
Replies: 4 comments 3 replies
-
You can add an assignment for that: local wezterm = require 'wezterm'
local act = wezterm.action
local copy_mode = nil
if wezterm.gui then
copy_mode = wezterm.gui.default_key_tables().copy_mode
-- Depending on the platform, uppercase assignments
-- may or may not have SHIFT listed as the modifier,
-- so register with both just to be sure.
for _, mods in ipairs{'NONE', 'SHIFT'} do
table.insert(
copy_mode,
{
key = 'Y',
mods = mods,
action = act.Multiple {
{ CopyTo = 'ClipboardAndPrimarySelection' },
{ CopyMode = 'Close' },
{ PasteFrom = 'PrimarySelection' },
},
}
)
end
end
return {
key_tables = {
copy_mode = copy_mode
}
}
You can find them here:
You can add a key assignment that activates word selection mode.
Interesting idea. Not possible today, but you could define a key binding for each of those using QuickSelectArgs
In the nightly you can use
See: #2528 |
Beta Was this translation helpful? Give feedback.
-
Thank you for that "Y" snippet. I'm getting an error while trying to include that into my existing config:
Where line 6 is |
Beta Was this translation helpful? Give feedback.
-
Finally had a chance to grab the nightly and just to clarify the f/F/t/T work as I expect, I must just misunderstand your description of them. Can't wait to try out that "Y" map, thanks so much! |
Beta Was this translation helpful? Give feedback.
-
How about merging the search overlay with copy mode? It's unfortunate that you cannot search, then using copy mode navigation to move around and adjust the selection for example. |
Beta Was this translation helpful? Give feedback.
-
Some of these may be things I just haven't figured out yet, please let me know if that is the case. Some of them are probably things that I can implement in a custom keybinding, and I'll probably play with that as I get time, but they might also be useful to have upstream. Some of them maybe y'all will just have better ideas than I do.
I'm really loving Copy-mode, use it all the time!
Beta Was this translation helpful? Give feedback.
All reactions