Request: Window.Close

Started by scottbilas, April 24, 2009, 11:03:25 PM

Previous topic - Next topic

scottbilas

Feature request: please add a Window.Close command that only closes the current text editing window and update ctrl-F4 to use it instead.

I noticed that ctrl-F4 is hooked up to File.Close, which is nonstandard Windows behavior. Standard Windows apps map ctrl-F4 to only close the current window, not a file and all its windows.

Thanks!
Scott

Arthur

Welcome to the HippoEdit forum Scott!
I have noticed that Ctl-W for closing tabs is also in use in some applications.
The IE being the most noticeable. Also in FoxitReader, Adobe Reader, and more.
I would like to add my 2c and also ask for Ctl-Shift-W to be assigned for closing all opened files/tabs.
Besides, Ctl-W is more intuitive to use IMHO than Ctl-F4.

Stefan

#2
Hi All,

nice you ask, so i can tell you that HippoEDIT is highly configurable!


----------------------------------------------------------------------------------

Assign an shortcut to close active tab:
1.) go to "Tools > Keyboard Settings..."
2.) in "Comannds:" type  'close'    to filter the   list of commands, make it easier to chose the right one.
3.) click on File.Close
4.) click in  "New shortcut for command:"   
5.) press "Ctrl+W" to add this as second shortcut to close active tab
6.) click on "Assign"   (Note: if this shortcut is already assign to an other command you will be prompted)
7.) click "OK"

Note:  for " File.Close" you can also select "ctrl-F4 " 
                                and click on  "Remove" 
                                to remove this shortcut from that command.




----------------------------------------------------------------------------------

Assign an shortcut to close all open documents:
1.) go to "Tools > Keyboard Settings..."
2.) in "Comannds:" type  close    to filter the   list of commands, make it easier to chose the right one.
3.) click on File.CloseAllDocuments
4.) click in  "New shortcut for command:"   
5.) press "Ctrl+Shift+W" to add this as shortcut to close all tabs
6.) click on "Assign"   (Note: if this shortcut is already assign to an other command you will be prompted)
7.) click "OK"



Please note that for your convenience there is an  list of already used shortcuts:  "Help > Keyboard Map"

HTH? :D
Happy HippoEDITing
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

alex

Hello Scott,

Ok. I have understood.
To all: The problem is that that there is no command to close a current window but not a file. This I would add.
From another point, I have checked other editors (only UltraEdit and MS Visual Studio has same functionality), and they close all document windows on Ctrl+F4, so I would say it is standard. Close all documents Ctrl+Shift+F4.
So, I would introduce the new command for closing current window, and you woul remap Ctrl+F4 as you like ;)

Best regards,
Alex
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Stefan

1.43 beta build 655 (27.04.2009)
New. Window.Close command added.
With Ctr+W as default shortcut.
Ctr+Shift+F4 set as default shortcut for Close All Documents.
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

Arthur

Still shows Ctrl+F4 in the menus though.

Stefan

Quote from: alex on April 25, 2009, 05:14:06 PM
and they close all document windows on Ctrl+F4, so I would say it is standard. Close all documents Ctrl+Shift+F4.
So, I would introduce the new command for closing current window,
and

you would remap Ctrl+F4 as you like ;)

Best regards,
Alex
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

alex

There are two commands now:
File.Close         - Ctrl+F4   - close all current document windows
Window.Close - Ctrl+W    - close current window

File.Close works as designed, and has correct shortcut
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Arthur

Ctrl-W and Ctrl+F4 do the same thing, just tried. So what's the point?

alex

The point is that one document can have more then one window.
Try Window -> New. And then Window.Close and File.Close.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Arthur

Then Ctrl-W should not close the File itself IMHO, we have Ctl+F4 for that and this is how I expected it to work, only its child windows should be closed by Ctrl-W. Isn't that logical?

alex

For me Not :)

The command does what is designed to do - close current window.
And does not matter, if document (file) has one window open or more.
Or I should bring a popup when only one window left saying "Please use Ctrl+F4 to close last window" ;)
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

scottbilas

By "nonstandard windows behavior" I was talking about tabbed apps I guess. In Firefox and IE and other tabbed apps I use, ctrl-w == ctrl-f4 == close current tabbed window. But I'm happy with the new commands you added, thanks!