Author Topic: Request: Window.Close  (Read 1785 times)

Offline Scott Bilas

  • Jr. Member
  • **
  • Posts: 51
  • Karma: +2/-0
    • View Profile
    • New Fun Blog
Request: Window.Close
« on: April 24, 2009, 10:03:25 pm »
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

Offline Arthur

  • Hero Member
  • *****
  • Posts: 620
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
Re: Request: Window.Close
« Reply #1 on: April 25, 2009, 04:05:05 am »
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.

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 772
  • Karma: +6/-0
    • View Profile
Re: Request: Window.Close
« Reply #2 on: April 25, 2009, 10:10:05 am »
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
« Last Edit: April 25, 2009, 10:14:52 am by Stefan »

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1666
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Request: Window.Close
« Reply #3 on: April 25, 2009, 04:14:06 pm »
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

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 772
  • Karma: +6/-0
    • View Profile
Re: Request: Window.Close
« Reply #4 on: April 27, 2009, 03:48:23 pm »
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.

Offline Arthur

  • Hero Member
  • *****
  • Posts: 620
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
Re: Request: Window.Close
« Reply #5 on: April 27, 2009, 03:54:09 pm »
Still shows Ctrl+F4 in the menus though.

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 772
  • Karma: +6/-0
    • View Profile
Re: Request: Window.Close
« Reply #6 on: April 27, 2009, 03:59:04 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

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1666
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Request: Window.Close
« Reply #7 on: April 27, 2009, 04:01:10 pm »
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

Offline Arthur

  • Hero Member
  • *****
  • Posts: 620
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
Re: Request: Window.Close
« Reply #8 on: April 27, 2009, 04:14:38 pm »
Ctrl-W and Ctrl+F4 do the same thing, just tried. So what's the point?

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1666
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Request: Window.Close
« Reply #9 on: April 27, 2009, 04:16:36 pm »
The point is that one document can have more then one window.
Try Window -> New. And then Window.Close and File.Close.

Offline Arthur

  • Hero Member
  • *****
  • Posts: 620
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
Re: Request: Window.Close
« Reply #10 on: April 27, 2009, 04:29:12 pm »
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?

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1666
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Request: Window.Close
« Reply #11 on: April 27, 2009, 05:03:11 pm »
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" ;)

Offline Scott Bilas

  • Jr. Member
  • **
  • Posts: 51
  • Karma: +2/-0
    • View Profile
    • New Fun Blog
Re: Request: Window.Close
« Reply #12 on: May 03, 2009, 03:08:22 am »
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!