Skip to content

Add mouse click enhancements that don't rely on keyboard selections#73

Open
eugenesvk wants to merge 14 commits into
noahcoad:masterfrom
eugenesvk:fr-url-at-click
Open

Add mouse click enhancements that don't rely on keyboard selections#73
eugenesvk wants to merge 14 commits into
noahcoad:masterfrom
eugenesvk:fr-url-at-click

Conversation

@eugenesvk

@eugenesvk eugenesvk commented Apr 16, 2026

Copy link
Copy Markdown

(Stacked on top of previous PRs to avoid conflicts)

Finally makethe package a mouse-first citizen! and closing #63

  • Add mouse_only command argument so you can have a click that just opens the URL the mouse clicked on, not whatever your cursors selected
    • Add mouse_v_line_affordance on clicks if your mouse cursor is positioned to the right from the end of the current line and at the top/bottom of the current line, then consider it as a click ↑above/below↓
    • Add on_click_ignore_sel on mouse clicks ignore selection ≤ this value and use expansion/scope rules to determine the URL. Helps avoid errors when you click and slightly drag your mouse by ~1 char
    • Add default mouse binding that doesn't drag select

Also adds a couple of helper things

  • Logging var to guard debug prints
  • Fixes iterating None error, which might've been caused by some of the new features, though not sure exactly which one (though just got it on master, so I guess it's not related)

so that you can only use the plugin to open URLs and not bug you with edit suggestions
initial delimiters might be markdown-friendly, but they aren't JSON-friendly. This allows user to tweak delimiters to better match various content types
e.g., `punctuation.definition.comment` for an otherwise valid path delmiter `//`
to avoid confusion as to what the plugin has actually matched
to handle `[handle⎀this](example.com)` for markdown without having to click on `example.com` in parenthesis
on mouse clicks ignore selection ≤ this value and use expansion/scope rules to determine the URL. Helps avoid errors when you click and slightly drag your mouse by ~1 char
on clicks if your mouse cursor is positioned to the right from the end of the current line and at the top/bottom of the current line, then consider it as a click ↑above/below↓
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant