Prefill omnibar and position cursor in front of given character
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 27k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Currently it's impossible to press a shortcut (e.g. ge) which would open omnibar pre-filled with a corresponding URL and positioning the cursor at a predetermined position in the URL to allow quick edition. I used this in Vimperator for translation purposes (ge opened console and prefilled it with something like :open dict.com/ge-en/ and positioned the cursor just before ge-en just for the case I wanted to change the language; same goes for gee which translated the other way round).
To Reproduce
Steps to reproduce the behavior:
- Go to Vimium settings and try to set up some prefilling.
- You'll fail because there is no such thing 😉.
Include a screenshot if applicable.
Browser and Vimium version
Vimium 1.67.1 ran on moderately modern Firefox 96.0.3 on Arch Linux 5.15.19-1-lts.
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
Start by tracing Vimium's omnibar and shortcut-handling entry points, then review how settings could represent a prefilled URL and cursor position. Done means a configured shortcut opens the omnibar with the requested text and places the cursor before the specified character or substring; verify the translation examples from the issue.
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
- 35/100