9 Commits

Author SHA1 Message Date
Ingo Karkat abeb9494d0 CHG: ingo#query#get#[Writable]Register(): Turn a:errorRegister and a:invalidRegisterExpr into option Dict values and add a:options.additionalValidExpr
And then reuse in ingo#plugin#rendered#ListJoinedOrBraceExpression().
2022-02-21 08:41:26 +01:00
Ingo Karkat 2603063a77 ingo#plugin#rendered#ListJoinedOrBraceExpression(): FIX: Misplaced :continue
Left-over from when the function was part of an outer loop. Instead, return the special "Quit" value to the client.
2022-02-21 08:20:35 +01:00
Ingo Karkat 0f4a6ec342 ingo#plugin#rendered#ListJoinedOrBraceExpression(): Minor: Reuse ingo#register#Writable() 2022-02-21 08:20:25 +01:00
Ingo Karkat 8845fbfb49 ingo#plugin#rendered#ListJoinedOrBraceExpression(): Consider short option including isIgnoreCase and separately offer ignorecase toggling, too 2021-02-21 22:13:01 +01:00
Ingo Karkat c71bf77161 ENH: ingo#plugin#rendered#List(): Allow dynamic a:renderer.options; add strict / short options for BraceExpressionRenderer
Turn a:renderer.options into a method a:renderer.options() that is re-invoked on each iteration and therefore can change based on chosen commands.

Add commands to BraceExpressionRenderer that enable strict or short rendering mode. Some clients have dedicated mappings for both variants, but not all, and it can be convenient to switch interactively when one realizes that the current mode doesn't yield good results.
2018-01-23 13:49:56 +01:00
Ingo Karkat 0c8be6635c Refactoring: Minor: Simplify method invocation 2018-01-23 13:23:45 +01:00
Ingo Karkat bae2ad8431 Add ingo#plugin#rendered#ListJoinedOrBraceExpression()
This is used by my InsertAllCompletions.vim, and now also reused for another Vim customization. It also nicely showcases the usage of the main ingo#plugin#rendered#List() function together with the default renderers.
2018-01-23 12:28:13 +01:00
Ingo Karkat 71fad9fd4c Cosmetics: Uppercase brace expression option names
To align them with the other options.
2018-01-23 12:21:45 +01:00
Ingo Karkat 303b888df9 Add ingo/plugin/rendered.vim module
This got extracted from my (unpublished) InsertAllCompletions.vim plugin.
2018-01-23 10:12:21 +01:00