mirror of
https://github.com/TECHNOFAB11/tmux-copyrat.git
synced 2025-12-15 09:23:51 +01:00
feat: capture wrapped lines
This commit is contained in:
parent
45a4083547
commit
193dca67e3
3 changed files with 71 additions and 27 deletions
|
|
@ -205,7 +205,7 @@ pub fn get_options(prefix: &str) -> Result<HashMap<String, String>, ParseError>
|
|||
/// position. To support both cases, the implementation always provides those
|
||||
/// parameters to tmux.
|
||||
pub fn capture_pane(pane: &Pane, region: &CaptureRegion) -> Result<String, ParseError> {
|
||||
let mut args = format!("capture-pane -t {pane_id} -p", pane_id = pane.id);
|
||||
let mut args = format!("capture-pane -t {pane_id} -J -p", pane_id = pane.id);
|
||||
|
||||
let region_str = match region {
|
||||
CaptureRegion::VisibleArea => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue