EmEditor (text editor) Forum Index
   Questions and Answers about EmEditor Core
     Close all documents
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
derekcohen
Posted on: 5/25/2010 6:28 am
Not too shy to talk
Joined: 5/22/2010
From:
Posts: 38
Close all documents
I have numerous projects with multiple files in each.

So I may have maybe 15 files open when I want to load the files for a different project.

To select one of them, choose Close others, then close that one then open all in the other project is three steps and a bit silly.

I tried adding Close All to the File menu which closed all open documents but then exited the program. GGRRR!!!

And of course when I opened it again the same set of documents was open.

What am I missing?

thanks
Yutaka
Posted on: 5/25/2010 9:29 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2399
Re: Close all documents
Hello derekcohen,

Unfortunately, there is no direct command to close all documents and bring up a new untitled document.

However, you can use this macro to do this:

editor.ExecuteCommandByID(4384);
editor.ExecuteCommandByID(4117);


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


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

derekcohen
Posted on: 5/25/2010 8:53 pm
Not too shy to talk
Joined: 5/22/2010
From:
Posts: 38
Re: Close all documents
thanks - that works
Threaded | Newest First Previous Topic | Next Topic | Top


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