[Feature] Implement Select mode
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
- Ambito
- frontend
Direzione di ricerca
Start by reviewing the existing API and how vim-visual and vim-insert modes are represented in this CodeMirror Vim integration. Trace how a visual selection is preserved when changing modes, then determine where a global select-mode command belongs for CodeMirror-based editors. Done means the command switches to insert-like behavior while retaining the current selection and keeps select-mode shortcuts separate from visual-mode bindings.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
Implement a command that allows one to switch between vim-visual to vim-insert while keeping the current selection.
Vim originally has a select mode, described at https://vimhelp.org/visual.txt.html#Select. It keeps the current selection mode when switching but for this use case, just being able to switch is enough.
Explanation
Currently in overleaf and obsidian, you can select text and invoke some action upon that text.
For example given the following string in obsidian
|Some important text here|
(where | represents the bounds of the selection)
You can press * to convert it to
*|Some important text here|*
(select mode = vim-insert while having something selected)
The only problem here is that selecting with vim visual mode is much easier than doing it with arrow keys or with the mouse.
And these shortcuts are only available in select mode. I want to keep them only available in select mode as they would otherwise conflict with the visual-mode keybindings.
This can be already implemented with the current api, but as probably most codemirror-based editors will have some selection-based commands, it would make more sense to implement this on a global level.
video for better example:
https://github.com/user-attachments/assets/e3823b2d-6dcc-45c5-a3f7-50fca1e9898a
- Lingua principale
- JavaScript
- Stelle
- 470
- Fork
- 53
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di replit/codemirror-vim
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 50/100
replit/codemirror-vim#276 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
replit/codemirror-vim#264 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
replit/codemirror-vim#251 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
replit/codemirror-vim#243 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
replit/codemirror-vim#238 ·
Tutte le issue di replit/codemirror-vim
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Daemon passes --experimental-wasm-jspi unconditionally on Node >= 24; Node 26 rejects the flag Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Automattic/studio#4908 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
sugarlabs/musicblocks#8847 ·