opening text file using command line parameters to line and column occassionally doesn't scroll the file for cursor to b
opening text file using command line parameters to line and column occassionally doesn't scroll the file for cursor to b
Occassionally when a text file is opened in cudatext version 1.214.6 specifying command line arguments "file@line@column" the file isn't always scrolled to show the selected line and column with cursor at the line and column position and does not set the cursor position and appears to be opened at the previous cursor position of the file.
Re: opening text file using command line parameters to line and column occassionally doesn't scroll the file for cursor
UPDATE: I found in cudatext that if I use File->Open recent->Clear list that affected files that I retested open and scroll and set cursor correctly.
-
- Posts: 2245
- Joined: 25.08.2021 18:15
Re: opening text file using command line parameters to line and column occassionally doesn't scroll the file for cursor
I tried this few times, and "cudatext fn@3@4" always puts caret to 3:4.
do you have steps to repeat the bug?
maybe file needs to be opened first at different line + closed, so history saves the different pos.
do you have steps to repeat the bug?
maybe file needs to be opened first at different line + closed, so history saves the different pos.
-
- Posts: 2245
- Joined: 25.08.2021 18:15
Re: opening text file using command line parameters to line and column occassionally doesn't scroll the file for cursor
confirmed.
i made a fix.
beta for win x64 is in the 2nd post here
https://github.com/Alexey-T/CudaText/di ... t-10155801
pls test it.
i made a fix.
beta for win x64 is in the 2nd post here
https://github.com/Alexey-T/CudaText/di ... t-10155801
pls test it.
Re: opening text file using command line parameters to line and column occassionally doesn't scroll the file for cursor
I'm using the 32 bit version, I'll have to download the 64 bit to test and confirm
-
- Posts: 2245
- Joined: 25.08.2021 18:15
Re: opening text file using command line parameters to line and column occassionally doesn't scroll the file for cursor
if you have x64 CPU better use x64 version, it can open bigger texts and bigger count of tabs.
Re: opening text file using command line parameters to line and column occassionally doesn't scroll the file for cursor
I've installed cudatext-windows-amd64-1.214.6.4.zip and used the cudatext-w.zip cudatext.exe and py/cudatext.py and tested and found the following:
When a file is opened via commandline to a particular line and column that although the cursor is located on the correct line and column but the last line position that the file was last located appears but a second attempt to open the same file via command line to the same line and position scrolls to that position correctly and likewise any further attempts to open the same file to a different line and position scrolls to that line and however if the tab is closed and the above steps repeated the same issue occurs.
When a file is opened via commandline to a particular line and column that although the cursor is located on the correct line and column but the last line position that the file was last located appears but a second attempt to open the same file via command line to the same line and position scrolls to that position correctly and likewise any further attempts to open the same file to a different line and position scrolls to that line and however if the tab is closed and the above steps repeated the same issue occurs.
-
- Posts: 2245
- Joined: 25.08.2021 18:15
Re: opening text file using command line parameters to line and column occassionally doesn't scroll the file for cursor
sorry, I'm puzzled. can you write: how to see the issue after simple steps?
Re: opening text file using command line parameters to line and column occassionally doesn't scroll the file for cursor
I created a test text file and 3 batch files to illustrate but strangely these are behaving correctly, sorry I'll have to examine the scenario more closely and get back to you on this.