EmEditor (text editor) Forum Index
   EmEditor Core Enhancement Suggestions
     Tab header's context menu: "Clone" command
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
maxim_2004
Posted on: 5/5/2010 5:51 am
Not too shy to talk
Joined: 6/20/2007
From:
Posts: 28
Tab header's context menu: "Clone" command
It would be great to add "Clone" command to Tab header's context menu (at top under "Save" and "Close").

"Clone" would make a copy of current document, this copy would have Untitled.XXX name, XXX replicating the original extension.
Thanks.
Yutaka
Posted on: 5/5/2010 9:44 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2398
Re: Tab header's context menu: "Clone" command
Hi maxim_2004,

Thanks for your inputs, but I don't want to make too many features. How about running this macro:

document.selection.SelectAll();
s = document.selection.Text;
document.selection.Collapse();
editor.NewFile();
document.selection.Text = s;


Please let me know if you have further questions.
Thank you.


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

maxim_2004
Posted on: 5/5/2010 11:56 pm
Not too shy to talk
Joined: 6/20/2007
From:
Posts: 28
Re: Tab header's context menu: "Clone" command
Thanks. Yes, this surely would do.
Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文