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
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 :)
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
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
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
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
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
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]
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
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
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
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
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
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
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
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.
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
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
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
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
20 matches
Mail list logo