20590Re: [Clip] Re: Clipboard boilerplate for cn_le
- Apr 20, 2010diodeom wrote:
>Here's yet another approach to agglomerate all processed clippings:Yeah, no doubt regex is shorter, apart from the time it takes to
learn it. I procrastinate.
>But for my needs, to selectively remove from the library eitherNeat! Thank you. What does the J switch do though? I don't see it in Help.
>already distributed clips or any junk ones, I found this
>(working-for-me rough draft) more practical:
>H="Remove selected clips"
>^!Open "^$GetLibraryFileName$" /J=-1
>A word of caution: the patterns here look for capitalized "H" forOK. I think Notetab converts to uppercase H even if you type/enter
>headers, not lowercase like in your original OnClipboardChange clip.
lowercase h. It's a little mysterious, because it doesn't happen
right away and restarting Notetab doesn't make it happen either. Yet
all my clipboard snips from yesterday now use uppercase H but the new
ones use lower case. Go figure. I'll change my clip to use uppercase.
>And I omitted provisions for headers not being unique. I'd opt forYesterday I realized that my OnClipBoardChange clip sometimes screws
>not permitting duplicate names right when clippings are created and
>processed (in my case quite extensively). Also, some executable clip
>code in headers can mess things up (I'm speaking from regretable
>experience :) -- unless similarly addressed beforehand.
up when the copied text contains quotes (but only sometimes) and you
end up with a broken heading like so
which messes up the following snips. A little odd. Maybe it was
something else than quotes that made it happened even if I blamed the
quotes at the time. Haven't looked into it yet.
- << Previous post in topic Next post in topic >>