Page 1 of 1

Extended tab keyboard commands and language display

Posted: 20 Apr 2007 21:01
by lordcanty
Hi,
could you implement some other ways to change between tabs? I was thinking something like ALT+left/right to select next/prev and ALT+1-9 to go to one. I know you can select next tab (but not prev) with CTRL+TAB and close them with CTRL+W, or maybe there are other commands I haven't found.

Also, basically I'd like to see japanese strings in the text part. I have my system's default encoding to japanese, and with other hex editors I can see them if I select something like "windows ansi" encoding (I think, maybe it depends on the program). However none of the encoding-font combinations I've tried work. Not sure if it's enterely dependant on Windows though.

Re: Extended tab keyboard commands and language display

Posted: 21 Apr 2007 18:44
by Maël
lordcanty wrote:could you implement some other ways to change between tabs? I was thinking something like ALT+left/right to select next/prev and ALT+1-9 to go to one. I know you can select next tab (but not prev) with CTRL+TAB and close them with CTRL+W, or maybe there are other commands I haven't found.
You can use CTRL+SHIFT+TAB to select the previous tab.
The issue with ALT+1-9 is that it is used (at least on the num-pad) to enter characters (in any windows app). ALT+left/right is commonly used to browse backwards/forwards, this would be something like a moving history of the caret, but not the next or previous tab.
Ctrl+1..9 would be good for selecting tabs, but unfortunately this is already used for bookmarks.
lordcanty wrote:Also, basically I'd like to see japanese strings in the text part. I have my system's default encoding to japanese, and with other hex editors I can see them if I select something like "windows ansi" encoding (I think, maybe it depends on the program). However none of the encoding-font combinations I've tried work. Not sure if it's enterely dependant on Windows though.
At the moment it doesn't work in HxD. This is because multibyte character sets can cause buggy display with HxD, which is why I fall back to Window-1252. (one issue is that Asian glyhps usually are wider than latin glyphs, the other is that multibyte-characters have to be split up in a sensible manner, i.e. two bytes form a character but are one different rows of the hex-view) I intend to fix this in future, including adding support for UTF-8.

Re: Extended tab keyboard commands and language display

Posted: 21 Apr 2007 21:38
by lordcanty
Maël wrote:You can use CTRL+SHIFT+TAB to select the previous tab.
The issue with ALT+1-9 is that it is used (at least on the num-pad) to enter characters (in any windows app). ALT+left/right is commonly used to browse backwards/forwards, this would be something like a moving history of the caret, but not the next or previous tab.
Ctrl+1..9 would be good for selecting tabs, but unfortunately this is already used for bookmarks.
Ah, didn't know that. I'd prefer simpler commands but that will work. Maybe you should add the less common keyboard commands to the readme...
Maël wrote:At the moment it doesn't work in HxD. This is because multibyte character sets can cause buggy display with HxD, which is why I fall back to Window-1252. (one issue is that Asian glyhps usually are wider than latin glyphs, the other is that multibyte-characters have to be split up in a sensible manner, i.e. two bytes form a character but are one different rows of the hex-view) I intend to fix this in future, including adding support for UTF-8.
If you mean each line changes to different length due to some characters being wider, I get this with other apps and I don't mind, and for the other issue I could always change the number of columns to show. I use "windows ansi" encoding just when I need to see jp. strings then change back. Rather than redesign the viewer you could add some option for an alternate encoding or something just to show these momentarily. It's a minor issue I doubt most people would care.

Posted: 21 Apr 2007 22:26
by Maël
Maybe you should add the less common keyboard commands to the readme...
Yes, I should ;-) There'll be a help file for version 2.0.

Regarding the Asian characters: It were real drawing issues, sometimes this caused totally unreadable display on the text-side (no, not because the characters are non-latin ;-). This is due to the fact that split MBCS can confuse the text-drawing function of Windows.
The other thing is that HxD expects every line to be of equal width, so I have to change some things: The caret positioning will not work, editing will not work for text, glyphs might be chopped off, selection, etc.

I had once enabled MBCS but got bug reports by a Japanese user. Maybe I can find an intermediate solution...