[Feature] Copy text in element
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 27k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
TLDR:
command:
c for copy or y for yank followed by element tag key for example c for code or s for span.
After the yank and tag specifier key are pressed the, hints appear on each of that tag type just like how link hints appear after clicking "f". Typing the hint text will then copy the inner text from that element.
I've been using this feature on my fork for a while now.
The main inspiration came from needing to copy large code blocks on websites without having to move my mouse. However, abstracting it to any tag using * or specific tags for example "a" has made my workflow a lot smoother.
If this is something you think is a suitable enhancement to the project I will happily clean up my code and put a PR in. 🥳
Contributor guide
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
No files or tests are mentioned. Start by reviewing the fork implementation and Vimium's existing link-hint flow; the requested behavior is a c/y command followed by an element tag and hint selection. Done means matching elements show hints and selecting one copies its inner text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100