File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -279,6 +279,29 @@ config.keys = {
279
279
},
280
280
}
281
281
282
+ -- https://www.reddit.com/r/wezterm/comments/10jda7o/is_there_a_way_not_to_open_urls_on_simple_click/
283
+ -- Disable the default click behavior of clicking on a URL to open it.
284
+ config .mouse_bindings = {
285
+ -- Disable the default click behavior
286
+ {
287
+ event = { Up = { streak = 1 , button = " Left" } },
288
+ mods = " NONE" ,
289
+ action = wezterm .action .DisableDefaultAssignment , -- You may want a different option here. See /u/Brian's comment below
290
+ },
291
+ -- Ctrl-click will open the link under the mouse cursor
292
+ {
293
+ event = { Up = { streak = 1 , button = " Left" } },
294
+ mods = " CTRL" ,
295
+ action = wezterm .action .OpenLinkAtMouseCursor ,
296
+ },
297
+ -- Disable the Ctrl-click down event to stop programs from seeing it when a URL is clicked
298
+ {
299
+ event = { Down = { streak = 1 , button = " Left" } },
300
+ mods = " CTRL" ,
301
+ action = wezterm .action .Nop ,
302
+ },
303
+ }
304
+
282
305
config .key_tables = {
283
306
-- Defines the keys that are active in our resize-pane mode.
284
307
-- Since we're likely to want to make multiple adjustments,
You can’t perform that action at this time.
0 commit comments