NoteTab Clip – Duplicate File


Quite often when working on a file I want to clone it as a backup or to work on another copy to try something out. I was doing this so often and being such a lazy coder I whipped up a quick NoteTab clip to make it even easier. Run it with the file you want to duplicate open in NoteTab and it will create a duplicate in a new tab and give it the focus.

H="Duplicate File"
^!Set %TEXT%=^$GetText$
^!TOOLBAR New Document
^!InsertText ^%TEXT%

This is a simple copy and paste job really, but a few additional lines of clip code and it could be tailored for example to retain the cursor position and text selection in the duplicate.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: