mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Put ~ back in text_filter. Why? Because I believe that 99.9% of users won't realize to update their automatic text replacements, and will report an error that the tilde no longer functions. Is it possible to just have automatic text replacements update when new ones are added, while keeping custom ones?
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1294 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
############################################################## Auto replace
|
||||
|
||||
# Do we need categories?
|
||||
@@ -34,9 +34,6 @@ auto replace:
|
||||
auto replace:
|
||||
match: @
|
||||
replace: LEGENDNAME
|
||||
auto replace:
|
||||
match: ~
|
||||
replace: CARDNAME
|
||||
auto replace:
|
||||
match: ~THIS~
|
||||
replace: CARDNAME
|
||||
|
||||
@@ -394,7 +394,7 @@ text_filter :=
|
||||
) +
|
||||
# step 3a : expand shortcut word CARDNAME
|
||||
replace@(
|
||||
match: "CARDNAME",
|
||||
match: "~|CARDNAME",
|
||||
in_context: "(^|[[:space:]]|\\()<match>", # TODO: Allow any punctuation before
|
||||
replace: "<atom-cardname></atom-cardname>"
|
||||
) +
|
||||
|
||||
Reference in New Issue
Block a user