Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

TCEDIT and GOTOLINE:n

Aug
1,943
71
When I launch the following;
Code:
tcedit /ini /gotoline:287

TCEdit opens my TCMD.INI file,
but does not go to line 287,
even though it says so in the bottom status bar,

1704305457751.png


Instead, the current line is actually beginning of file.

Can anyone else duplicate this?

I'm doing this in TCC 31.01.19 x64 Windows 10 [Version 10.0.19045.3803]

Joe
 
Last edited:
I just get this.

1704307023953.png


If I say "No" my INI file is opened but another "Untitled" tab is focused.
 
My fault.

Corrected in OP.

(It should be /gotoline:287)

Please try it again.

Joe
 
That's better. The current line is in fact, line 287; it's highlighted and if you press a key, you'll go there. But with no keystroke, the initial chunk of the file appears in the editor's viewport.
 
Thanks @vefatica

I just pressed the down-arrow key,
and was taken to line 287.

@rconn could this be changed to move to the current line upon launch,
without having to press the down-arrow key after launched?

Joe
 
If you take a filename instead "/ini" it works ...

for example with a little created testfile.txt:

Code:
tcedit testfile.txt /gotoline:3
 
Thanks, but that does not work on large files;
Code:
E:\Utils>echo %@lines[wifi.btm] 
7508

E:\Utils>tcedit wifi.btm /gotoline:287

I still have to press the down arrow to display line 287.

Joe
 
Oh, ok - thanks for the info, Joe.

I tested it a bit yet: I think the reason is not the filesize resp. the amount of lines, the reason is: it the line not in the viewable range (related to the window size of tcedit), it doesn't work then ... at least here this seems the case ...

So if you would take ... hmm line 30 or so, it should work with your wifi.btm too I guess ...

Or in other words, it does not "scroll" automatically.
 
Back
Top