snowgoon88 / TW5-extendedit

Try to extend the editor of TiddlyWiki5
MIT License
38 stars 10 forks source link

[Feature Request] alternative regexp pattern parameter #6

Open sourcebert opened 7 years ago

sourcebert commented 7 years ago

Hi!

For a more customizable pattern configuration there should be a parameter which accepts regexp patterns. So for example it is possible to capture pretty link inputs with the following regexp pattern: (?:^|\s)\[\[[^\[\[]*\|([^\[\[\]\]]*)$ (as you can see, I'm not a regexp expert ;)

Best regards, Albert (an avid user of your autocompletion plugin :)

snowgoon88 commented 7 years ago

Sorry for the long delay before answering and thx for using my plugin. Developpment of the pluggin is not my priority, but for the next update, I'll have a look at using regexp. Seems a good idea.

snowgoon88 commented 6 years ago

For myself : in plugin/files/completion.js could add another "Template" where 'pattern' is not regExpEscaped => next UPD in fix_autosave branch