Skip to content

Copy the command output between the prompts #2343

Answered by wez
ymotongpoo asked this question in Q&A
Discussion options

You must be logged in to vote

Hmm, I haven't tried to automate this or do it completely without the mouse so far. I use https://wezfurlong.org/wezterm/config/lua/keyassignment/SelectTextAtMouseCursor.html to grab the semantic zone when I triple click:

local wezterm = require 'wezterm'

return {
  mouse_bindings = {
    {
      event = { Down = { streak = 3, button = 'Left' } },
      action = wezterm.action.SelectTextAtMouseCursor 'SemanticZone',
      mods = 'NONE',
    },
  },
}

I think it would be a reasonable request to expand copy mode to support something like act.CopyMode { SetSelectionMode = 'SemanticZone' } as well as act.CopyMode 'MoveForwardSemanticZone and act.CopyMode 'MoveBackwardSemanticZone' and/or Mov…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ymotongpoo
Comment options

@rkabrick
Comment options

Answer selected by ymotongpoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants