Vote #80867
未完了Auto complete wiki macros
0%
説明
The attached patch adds an auto-complete feature for wiki macros. The patch can be applied after updating Tribute with the patch #33424.
!{width: 265px; border: 1px solid grey;}.macro-auto-complete.png!
The macros are useful, however, those are a bit long to type by hand. And it is also hard for some people to remember. I think these inconveniences can be eliminated by supporting auto-complete for wiki macros.
journals
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Sorry, I forgot to attach a patch.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Let's include this feature in 4.2.0.
--------------------------------------------------------------------------------
I Fixed so that macro completion does not work in the search form in the upper right.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
With 33425_v2.patch, there was a problem that tribute would be re-initialized even if it was already initialized.
Fix to initialize only when `element.dataset.tribute != 'true'`.
--------------------------------------------------------------------------------
We should use @collection@ to add a new trigger, please see an example attached.
The patch is still not ready because the concern raised by Bernhard and Jean-Philippe in #30986#note-7 is still available and I agree with them, we need a method to describe the macros and how to use them.
--------------------------------------------------------------------------------
Another limitation of the patch in the current state is the hardcoded macros values which makes very hard for plugin developers that add new macros to add them to the auto complete as well.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,New,30986,New toolbar button to insert wiki macros
relates,Closed,33820,Auto complete wiki page links
relates,Closed,31989,Inline issue auto complete (#) in fields with text-formatting enabled
blocks,Closed,33424,Update Tribute to 5.1.3
Admin Redmine さんがほぼ2年前に更新
- カテゴリ を UI_10 にセット
- 対象バージョン を Candidate for next major release_32 にセット