Closed kamecha closed 2 months ago
めちゃ重いから、なんとか対処する
The updates significantly enhance the traqvim
plugin by improving how message stamps are represented and managed. Notable changes include a refined message body that integrates detailed stamp information and the introduction of asynchronous methods for retrieving user and stamp data. Additionally, Vim configurations have been updated to support better text folding, leading to an improved user experience when navigating message content.
Files | Change Summary |
---|---|
autoload/traqvim/view.vim |
Enhanced make_message_body to include formatted message stamps; added folded_stamp_text function for unique stamp identifiers. |
denops/traqvim/main.ts |
Introduced getUser and getStamp methods for asynchronous retrieval of user and stamp data. |
denops/traqvim/model.ts |
Added asynchronous getStamp function for fetching stamp data by stampId , with caching improvements for efficiency. |
ftplugin/traqvim.vim |
Configured foldmethod to marker and set foldtext to traqvim#view#folded_stamp_text() . |
sequenceDiagram
participant User
participant Denops
participant View
User->>Denops: Request to get user data
Denops->>Denops: Validate userId
Denops->>User: Return user information
User->>Denops: Request to get stamp data
Denops->>Denops: Validate stampId
Denops->>View: Fetch stamp details
View->>Denops: Return stamp information
Denops->>User: Return stamp data
Objective | Addressed | Explanation |
---|---|---|
スタンプ名, 押された合計回数, 押した人とその回数のASCII表示 (#103) | ✅ | |
折りたたみをうまく使いたい (#103) | ✅ |
In the burrow where I play,
Stamps now bloom in bright array,
With names and counts that dance so high,
As folds of magic catch my eye.
Oh, what joy these changes bring,
A hopping tune, I want to sing! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
試しに直近のgeneralを取ってきて、そこのスタンプとそれに紐づくユーザーを取るベンチを取ってみたらこんな感じになった 同じ人が複数のスタンプを押すケースが多くて、ユーザーのキャッシュがかなり効きそう
試しに直近のgeneralを取ってきて、そこのスタンプとそれに紐づくユーザーを取るベンチを取ってみたらこんな感じになった 同じ人が複数のスタンプを押すケースが多くて、ユーザーのキャッシュがかなり効きそう
これのベンチはdenopsインスタンス経由してないから、実際とはちょっと違うの注意!
denops-testみたくdenops-benchみたいなのちょっと欲しくなっちゃうわね
Close #103
Summary by CodeRabbit
New Features
Bug Fixes