micro-editor / micro-editor/micro

Better support for clickable URLs

Open
#2,256 6 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.