macvim-dev / macvim-dev/macvim
Epic: Support dictionary/data lookup in MacVim
オープン
まだ誰も着手していません。
Epic
- 主要言語
- Vim Script
- スター
- 7.9k
- フォーク
- 691
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず #1312、#1313、#1315 で完了した lookup 作業を確認し、次にカスタム popup の例と既存の src/MacVim/README を調査します。残りのスコープには autocmd、より豊富なカスタム popup、balloon サポート、ドキュメントが含まれるため、実装前に望ましい設計と完了条件を明確にする必要があります。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- macos, vim
- 領域
- desktop
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100