expose selectOutput via ctrl+triple click

closes #752
This commit is contained in:
Chinmay Dalal
2023-10-30 21:43:10 +05:30
parent f394324d89
commit 4a0e53c1cc

View File

@ -1818,7 +1818,10 @@ pub fn mouseButtonCallback(
// Triple click, select the line under our mouse // Triple click, select the line under our mouse
3 => { 3 => {
const sel_ = self.io.terminal.screen.selectLine(self.mouse.left_click_point); const sel_ = if (mods.ctrl)
self.io.terminal.screen.selectOutput(self.mouse.left_click_point)
else
self.io.terminal.screen.selectLine(self.mouse.left_click_point);
if (sel_) |sel| { if (sel_) |sel| {
self.setSelection(sel); self.setSelection(sel);
try self.queueRender(); try self.queueRender();