newline syntax for QuickEdit replace plugin?

207 views
Skip to first unread message

ccahua

unread,
Sep 17, 2009, 3:51:05 PM9/17/09
to TiddlyWiki
Has anyone figured out how to find the newline character with
QuickEdit replace?

I'm really enjoying the productivity gains from Eric's
QuickEdit_replace plugin http://www.tiddlytools.com/#QuickEditPlugin
It's great having find and replace editing in the tiddler without
having to open up an external text editor.
But sometimes I replace new lines and I have yet to figure out what
the syntax is to put in the find field.

I've tried:
\n
\\n
'\n'
"\n"
\u0085
\\u0085




any ideas?

Best,
tony

Måns

unread,
Sep 17, 2009, 4:11:38 PM9/17/09
to TiddlyWiki
Hi Tony

I have successfully used new line

with white space - like this.

One of my customformats looks like this in the QuickEdit_customList

----
Move down and make heading

$1h

Regards Måns Mårtensson

On 17 Sep., 21:51, ccahua <cca...@gmail.com> wrote:
> Has anyone figured out how to find the newline character with
> QuickEdit replace?
>
> I'm really enjoying the productivity gains from Eric's
> QuickEdit_replace pluginhttp://www.tiddlytools.com/#QuickEditPlugin

Måns

unread,
Sep 17, 2009, 4:19:27 PM9/17/09
to TiddlyWiki
Sorry I didn't answer your question ... I was just thinking
"QuickEditPlugin" and not at the replacecommand...
I would recomend using |Name|QuickEdit_custom|
|Source|http://www.TiddlyTools.com/#QuickEdit_custom|
to be able to make all kinds of customized textreplacements..
I have several I use very often from the same button "Custom" in the
QuickEditToolbar
You make your own in the QuickEdit_customList:

scrollbox
@@display:block;height:10em;overflow:auto;$1@@@@display:block;text-
align:right;^^scroll for more...^^@@
----
nested slider
+++[$1]<<tiddler $1>>===
----
big red
@@font-size:36pt;color:red;$1@@
----
wikilink
[[$1]]
----
iframe
<html><div align="center"><iframe src="$1" frameborder="0"
width="100%" height="600"></iframe></div></html>
----
Tiddlermakro
<<tiddler $1>>
----
Image
[img(100%+,auto)[$1]]
----
ShowPopup
<<tiddler ShowPopup with: $1[[Klik]][[Se i popup her]] button>>
----
Move down and make heading

$1h
----

Regards Måns Mårtensson

tony

unread,
Sep 17, 2009, 4:34:14 PM9/17/09
to TiddlyWiki
On Sep 17, 1:19 pm, Måns <humam...@gmail.com> wrote:
> I would recomend using |Name|QuickEdit_custom|
> |Source|http://www.TiddlyTools.com/#QuickEdit_custom|
>  to be able to make all kinds of customized textreplacements..

Thanks for the reply Måns, I too like QuickEdit_custom, but I can not
figure out how to do a global replace of newlines in tiddler.
Usually i open my editor and do a find and replace of \n or on
terminal $tr ' ' '\n' < tiddler.txt

I'm thinking there is some simple escaped character sequence I enter
for newline in the find field after I click the 'replace' button.

I'll keep search though and post if i find anything
so much to learn!

Best,
tony

Måns

unread,
Sep 17, 2009, 4:36:20 PM9/17/09
to TiddlyWiki
However i would love to be able to select the custommade
replacementtemplates from a list in the QuickEdit replace targetwindow
- *or* have the same options for the Custombutton : find next -
replace all etc..

Regards Måns Mårtensson

Eric Shulman

unread,
Sep 17, 2009, 5:57:37 PM9/17/09
to TiddlyWiki
> It's great having find and replace editing in the tiddler without
> having to open up an external text editor.
> But sometimes I replace new lines and I have yet to figure out what
> the syntax is to put in the find field.

http://www.TiddlyTools.com/#QuickEdit_replace

has been updated (v2.4.4). You can now use \n and \t (newline and
tab, respectively) within the 'target' and 'replacement' text.

enjoy,
-e

tony

unread,
Sep 18, 2009, 12:16:37 AM9/18/09
to TiddlyWiki
On Sep 17, 2:57 pm, Eric Shulman <elsdes...@gmail.com> wrote:
> has been updated (v2.4.4).  You can now use \n and \t (newline and
> tab, respectively) within the 'target' and 'replacement' text.
>
> enjoy,
> -e

Thank you very much, Eric
2.4.4 works like a charm!

Best,
tony

Anthony Muscio

unread,
Sep 18, 2009, 1:21:27 AM9/18/09
to tiddl...@googlegroups.com
Thanks also for that helpful update Eric,

Not with standing that, tiddlywiki users with firefox can also use the Plugin "It's All Text" to open any HTML edit field; eg; a tiddler in edit mode, opened in an editor of choice. I use Notepad++ Portable, or PFE32 (old school), but for some kinds of columns wise editing try SPFLite the author says;

Why did I bother creating SPFLite?


Well, I was just getting frustrated after trying out just about every Windows PC Editor I could lay my hands on. They were all character stream oriented editors and what I wanted was a line oriented editor like the 'good old' SPF editor I had used most of my career.  


SPFLite also has a great feature where you can edit something already in the clipboard and it pasts it back to the clipboard. The main trick with SPFLite is you could replace spacespace with space but only in columns 10 thru 20.

Anyways, just some shared tips.


TonyM

If you have not found an easy way to do it with TiddlyWiki, you have missed something.
www.tiddlywiki.com
Reply all
Reply to author
Forward
0 new messages