Closed kamecha closed 4 months ago
The recent changes to the traqvim
plugin involve a significant restructuring of functions, namespaces, and overall organization. This includes renaming functions for clarity and consistency, introducing new functions for enhanced message handling, and modularizing code into specific directories like view
, command
, and message
. These updates aim to improve the maintainability and functionality of the plugin.
File Path | Change Summary |
---|---|
autoload/traqvim.vim |
Removed draw_timeline and reworked various message handling functions. Added several new utility functions. |
autoload/traqvim/command.vim |
Renamed functions and variables to use the traqvim#command# namespace. |
autoload/traqvim/helper.vim |
Renamed helper#define_highlight to traqvim#helper#define_highlight . |
autoload/traqvim/message.vim |
Introduced new functions for message management, including retrieval, navigation, yanking, deletion, and pinning. |
autoload/traqvim/view.vim |
Added functions for rendering messages and updating message positions. |
denops/traqvim/action.ts |
Updated function calls to use the traqvim#view# namespace for drawing elements. |
denops/traqvim/main.ts |
Changed logic for obtaining messageBufNum to use fn.bufnr instead of denops.call . |
ftplugin/traqvim.vim |
Updated function calls within mappings and autocmds to reflect new module structure. |
plugin/traqvim.vim |
Updated command handling to use traqvim#command#complete and traqvim#command#call . Replaced timeline drawing function. |
(Sequence diagrams are not applicable for these changes as they involve broad refactoring and namespace changes rather than specific control flow modifications.)
Objective (from Issues) | Addressed | Explanation |
---|---|---|
Directory restructuring (#83 ) |
✅ | |
Consistency in function and variable naming (#83) | ✅ | |
Improved message handling and interaction functionality (#83) | ✅ |
In Vim's vast fields, where code does sway,
Thetraqvim
plugin found its way.
With functions renamed, and namespaces tight,
Messages dance in buffers bright.
We yanked and pinned, with ease and glee,
A coder's dream, as it should be! 🎩🐇
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?
バッファ名はdenops側で作ってて、それに伴うバッファの作成をvim側でやってるのは微妙に不自然だから、この機会にバッファ名の作成&バッファの作成をdenops側でやってしまいたい
一ファイルに詰め込み過ぎてるから、良い感じに分割する
それに伴う†リファクタリング†とかいうやつをやる
Close #83
Summary by CodeRabbit
New Features
Refactor
traqvim
plugin.Bug Fixes
Chores
Style