Page 1 of 1

Cursor offset

Posted: Thu Feb 03, 2005 3:46 am
by tvoth
Is there a way to identify the offset (Byte in the Go To dialog) of the current cursor position?

TIA,

Terry.

Posted: Tue Feb 08, 2005 1:47 pm
by MudGuard
The only idea I have is to press Ctrl-Shift-Home to select everything from cursor position to document start and then have a look at View - Document Properties, on the Document tab under Selected characters.

Posted: Tue Feb 08, 2005 2:30 pm
by ben_josephs
Doesn't count the newlines, for some reason. And each of those might be either one or two characters.

Posted: Fri Feb 18, 2005 6:38 pm
by Lostgallifreyan
Tedious workround:
Select string starting at byte of interest, make string big enough to avoid likely dupes in file. Copy to clipboard. Avoid newlines if possible.

Close app, rename file with binary filetype extension, rightclick to open in TextPad, then use Find on clipboard contents. The first byte highlighted will be the one you need, and the offset can be read from the table. If you had to copy a newline to get enough string, it won't find it unless you click the hex display mode in the find dialog, and change the \n (5C6E) to 0D0A or whatever is in your file as standard.

Not fun, but at least it means you don't need another app to do it.