micro-editor / micro-editor/micro
Better support for clickable URLs
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 29.6k
- Forks
- 1.4k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 10
Description
At present, if there is a URL in a source file, the best way to open it is to use Right Click -> "Open Link", which is a feature of the terminal I'm using. However, this creates issues when the URL is longer than the display area, as it will get clipped to only include the characters that are currently displayed.
It would be nice to be able to open URLs directly from the editor without having to manually select the relevant text or worry about lining up the viewport. It could also function as a nice feature for those whose terminals don't natively support clickable URLs.
Off the top of my head, it seems like overriding the double-click behavior for URLs would work well enough, but it's possible that there's a better solution.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the editor's double-click behavior and how URLs in source files are identified or opened. Compare that flow with the terminal's existing Open Link behavior, then define a self-contained interaction that works for URLs extending beyond the visible display area and verify it in the editor.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100