Ingo Karkat
b1bf27de70
Cosmetics: Delete changelogs
2020-02-03 13:43:47 +01:00
Ingo Karkat
424b77bec4
BUG: DeleteTrailingWhitespace_Action checks window-local instead of buffer-local override
...
This was meant to allow project- or file-specific overrides (e.g. via a localrc plugin). Having two windows showing the same buffer with different behavior doesn't make much sense.
Fixes #1 .
2020-02-02 14:06:26 +01:00
Ingo Karkat
0dce6b97ae
BUG: Regression: Mixed up recalled responses
...
Tragically, this way it would just do the exact opposite of what the user had asked :-( Fortunately, I only used the persistent recall for two files so far.
2019-06-14 16:30:20 +02:00
Ingo Karkat
496152531c
Use special "... recalled" responses for lookups from persisted values
...
Add s:IsChoiceAffectsHighlighting(), pass it the current response, so that the switch can be made based on it.
2019-02-10 18:32:46 +01:00
Ingo Karkat
f31caa7582
Change "Never ever" to "Never ever highlight" to be more precise what's happening
...
Add "Forever" and "Never ever" choices that persist the response for the current file across Vim session.
2019-02-10 18:32:30 +01:00
Ingo Karkat
5b052f14a1
Change "Never ever" to "Never ever highlight or delete" to be more precise what's happening
2019-02-10 18:32:26 +01:00
Ingo Karkat
2a6e704c84
Use ingo-library's ingo#plugin#setting#GetBufferLocal()
...
DeleteTrailingWhitespace#Get() and make DeleteTrailingWhitespace#GetAction() script-local. Use ingo#query#ConfirmAsText() to be able to replace the choice numbers with the actual chosen text.
ENH: Add "Never ever" choice that leverages ShowTrailingWhitespace.vim's new persistence feature.
2019-02-10 18:32:23 +01:00
Ingo Karkat
5cb503d00f
2019-02-10 18:32:18 +01:00
Ingo Karkat
c1626adf0f
2019-02-10 18:32:18 +01:00
Ingo Karkat
90fb752457
FIX: Warning for nomodifiable buffer does not consider buffer-local b:DeleteTrailingWhitespace_Action
2019-02-10 18:32:16 +01:00
Ingo Karkat
e13d4fc96b
Corner case: Avoid "E21: Cannot make changes, 'modifiable' is off" on a nomodifiable buffer when g:DeleteTrailingWhitespace_Action = 'delete', and instead just show a warning
2019-02-10 18:32:02 +01:00
Ingo Karkat
52c068073f
Handle local exception regular expressions that contain a "/" character
...
This must be escaped for the :substitute/ command.
2019-02-10 18:31:51 +01:00
Ingo Karkat
7df2907bae
Minor: Change error message wording slightly to be more consistent with Vim's original
2019-02-10 18:31:42 +01:00
Ingo Karkat
bf9d1e6220
FIX: Avoid polluting search history
2019-02-10 18:31:39 +01:00
Ingo Karkat
94fc700a18
Support turning off highlighting of trailing
2019-02-10 18:31:14 +01:00
Ingo Karkat
aae4dc56bc
Support turning off highlighting of trailing whitespace when the user answers the query with "Never" or "Nowhere"
2019-02-10 18:30:59 +01:00
Ingo Karkat
2b9e9d2761
2019-02-10 18:30:59 +01:00
Ingo Karkat
073608d863
2019-02-10 18:30:59 +01:00
Ingo Karkat
a2a4bdbf40
2019-02-10 18:30:59 +01:00
Ingo Karkat
e29b00438d
2019-02-10 18:30:59 +01:00
Ingo Karkat
d5f1749f74
file creation
2019-02-10 18:30:59 +01:00