Re: [tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-09-12 Thread Yakov
Hello Albert, any progress so far? Best regards, Yakov. вторник, 20 мая 2014 г., 19:34:44 UTC+4 пользователь Yakov написал: PS one more tweak to add: the .replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, \\$); part does what .escapeRegExp(); TW String utitity is supposed to do, and for

Re: [tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-05-20 Thread Yakov
Hello Albert, I see, take your time and good luck :) Health to the boy! понедельник, 19 мая 2014 г., 15:14:12 UTC+4 пользователь Albert Riedinger написал: Hello Yakov, I'm very sorry for my delayed answer, but I'm currently very busy (waiting for birth of my son in the next few days :)

Re: [tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-05-20 Thread Yakov
Ok, here's what I think: now we have this RegExp: regexp = new RegExp(flag+([^\\|\\n\\]]*)$|+flag+([^\\x00-\\xff]*)$, gi); and this use of match: return match[2] || match[1]; As this is two alternative matches and my [^\\|\\n\\]] version is general enough, looks like the second part may be

Re: [tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-05-20 Thread Yakov
PS one more tweak to add: the .replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, \\$); part does what .escapeRegExp(); TW String utitity is supposed to do, and for better readability, I suggest to write those lines as following: flag = flag.escapeRegExp(); One, however, should be aware, that

Re: [tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-05-19 Thread Albert Riedinger
Hello Yakov, I'm very sorry for my delayed answer, but I'm currently very busy (waiting for birth of my son in the next few days :) Thank you for all your tips and tweaks, but currently, I don't have the time to work on a new release (but worked on a rewrite of my plugin about 2 weeks ago v0.3

[tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-05-16 Thread Yakov
Hello Albert, I've stubled upon an issue -- when AutoSuggestPlugin is included (eval'ed without importing) via SharedTiddlersPlugin [1], the styles are not applied -- and made a quick fix for it: added the refreshStyles(StyleSheetAutoSuggest); line before the

Re: [tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-04-16 Thread Yakov
Hello Albert, @Yakov Not sure what do you mean here by doesn't support. I've tried to type tiddler names starting from cyrillics ([[До) and got the proper suggestions; I've even created a tiddler which name starts from ASCII letters and contain cyrillics (New Tiddler Ъ) and if I type

[tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-04-15 Thread Albert Riedinger
Today I worked out a temporary solution for pretty links, so it is possible now to type [[SOME_LABEL| which gives you tiddler title suggestions. It was a tough nut to crack for a regex newbie like me, but it works :) Try it out and have fun[1]! Albert [1]

Fwd: [tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-04-14 Thread Albert Riedinger
Sorry for my very late reply, but currently I'm very busy. Thank you all for all the detailed feedback. This motivates me a lot! @Mario The default built in regexp handler, works very well with öä. But may be the used libraries don't. The used AtWho libraries doesn't support diacritics out

[tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-04-12 Thread Leo Staley
This is really nifty! I'm gonna keep an eye on this as it develops. Would it be possible for it to also auto suggest sections and slices? I mean, if I type [[TiddlerName## could it be made to also auto suggest the possible sections/headers from within that tiddler? How about for slices? On

Re: [tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-04-11 Thread Yakov
By the way, the results of testing with CodeMirror. in CodeMirror editor, the suggestions are shown without any changes of AutoSuggestPlugin (!), and if I click a suggesion with the cursor, it is inserted as expected. However, the behaviour of up/down arrows and enter key is not what is

Re: [tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-04-08 Thread Yakov
Hello Albert, This may be of interest: in the current snapshot (0.2.2) there's config.options.chkAutoSuggestGlobal option that is defined in your code, but which is not used anyhow; at the same time there's chkAutoSuggestScope option which is used but is not defined. Looks like it was the

Re: [tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-04-03 Thread Albert Riedinger
Hi Yakov, Thank you, I'm glad you like it. Initially this plugin was an experiment, but I also think that it has more potential. I'm a novice in JavaScript and especially in RegExp so it's hard for me to achieve progress. But it's fun and I'll try my best :) Unfortunately At.js doesn't support

Re: [tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-04-03 Thread PMario
On Thursday, April 3, 2014 10:03:22 AM UTC+2, Albert Riedinger wrote: Initially this plugin was an experiment, but I also think that it has more potential. I'm a novice in JavaScript and especially in RegExp so it's hard for me to achieve progress. IMO you should not add 3rd party regExp

Re: [tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-04-03 Thread Yakov
Hello Albert, четверг, 3 апреля 2014 г., 12:03:22 UTC+4 пользователь Albert Riedinger написал: Hi Yakov, Thank you, I'm glad you like it. Initially this plugin was an experiment, but I also think that it has more potential. I'm a novice in JavaScript and especially in RegExp so it's hard

[tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-04-02 Thread Yakov
Wow, Albert, great stuff! Do you plan to implement suggestions for the [[some text|syntax (to complete it to [[some text|target tiddler]])? Also, it would be nice if adding the space symbol after ]] is optional. This approach surely have potential for different applications, thanks for that.

Re: [tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-03-27 Thread Albert Riedinger
Thank you both! @Mario Your per-tiddler-approach is nice! But as you mentioned in the TiddlersBar-scroll-position-thread it would affect the modification date. Maybe setting chkForceMinorUpdate temporary to true could help? I've just implemented a cookie based query in the new version[1] which

Re: [tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-03-27 Thread PMario
On Thursday, March 27, 2014 4:24:29 PM UTC+1, Albert Riedinger wrote: @Mario Your per-tiddler-approach is nice! But as you mentioned in the TiddlersBar-scroll-position-thread it would affect the modification date. Maybe setting chkForceMinorUpdate temporary to true could help? Yes, that's

[tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-03-26 Thread Ramnath Babu T.J
Thanks Albert! :) Ramnath On Wednesday, March 26, 2014 10:22:02 PM UTC+5:30, Albert Riedinger wrote: Hi all, a few days ago Ramnath requested[1] a tiddler link suggestion feature in edit mode, so I wrote a quick-and-dirty commands plugin[2] for the good old TWC. It is just an

[tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin

2014-03-26 Thread PMario
Hi Albert, .. That's brilliant :) ... but I'd change the default button texts. The button has to show autosuggest off that the plugin works. ... and it would be nice, if the command could save it's state to the tiddler, which is kind of tricky ... I did something similar for the codemirror