Epic: Support dictionary/data lookup in MacVim
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 20/100
- Type d'issue
- Fonctionnalité
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- macos, vim
- Domaine
- desktop
Piste de recherche
Commencez par examiner le travail de lookup terminé dans #1312, #1313 et #1315, puis inspectez l’exemple de popup personnalisé et le src/MacVim/README existant. Le périmètre restant comprend un autocmd, des popups personnalisés plus riches, la prise en charge de balloon et la documentation ; le design souhaité et les critères d’achèvement doivent donc être clarifiés avant l’implémentation.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
It is useful to support the ability to look up a piece of selected / highlighted text in MacVim and show a OS popup that gives you more information. #1191 was the original issue, but this work has ballooned as this becomes more ambitious and need to span multiple commits. Using this epic to track the work and elicit ideas / brainstorm.
- #1312
- Basic implementation to support looking up text in the Core Text view:
- #1313
- Data detection. Should detect URLs, addresses, etc, using NSDataDetector. Note that WebKit/NSTextView use an internal "Reveal" API, which we don't have access to as a third-party software, so we will not be able to do as good as job as them, especially for things like package tracking and airline numbers.
- Looking up selected texts (when in visual mode) should look up the whole text, not just the individual words.
- #1315
- Vimscript API support to look up arbitrary data. Add a new function
showdefinition()so that we can programmatically invoke this. - Right click menu should show a "Look Up" item. This makes it easier to trigger the look up without need a trackpad as Ctrl-Cmd-D is a little unwieldy and harder to discover.
- Vimscript API support to look up arbitrary data. Add a new function
- Others
- Autocmd to intercept lookups and override what to do (see custom popup as an example)
- Custom popup. This would allow us to popup arbitrary dialog boxes with Markdown / HTML support using NSPopUp. E.g. show documentation in richer format.
- Extend balloon to support using this. Right now balloon is too barebone and text only
- Add documentation to a new
docfolder for technical details and general guidelines. Would be a nice time to update thesrc/MacVim/READMEfile which hasn't been updated forever.
- Langage dominant
- Vim Script
- Étoiles
- 7.9k
- Forks
- 691
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de macvim-dev/macvim
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
macvim-dev/macvim#1697 · 5 commentaires ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
macvim-dev/macvim#1658 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
macvim-dev/macvim#1657 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
macvim-dev/macvim#1655 ·
-
Difficulté 2/5 Une demi-journée Accessibilité débutants 72/100
macvim-dev/macvim#1653 ·
Toutes les issues de macvim-dev/macvim
Issues similaires
-
Startup alerts tell the user to click Save and Apply, but the settings button is labelled Save Ouvertebug good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
alexgorbatchev/simple-ptt#11 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
bug good first issue multicut serialization
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
-
accepted bug via-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
seagle0128/doom-modeline#835 ·