Page 1 of 1

[REQ] Two small Lister feature requests

Posted: 2006-11-02, 18:54 UTC
by lalonso
1. A Go To Line function for text mode, even notepad has this!
2. A shortcut to reopen the file with the default F4 editor, so when you decide you need to edit a file you're viewing in lister you don't have to close windows and re-find the file.

TC7 is looking great so far, but these two small things would make it even better!

Posted: 2006-11-02, 21:56 UTC
by icfu
1. A Go To Line function for text mode, even notepad has this!
http://www.ghisler.ch/board/viewtopic.php?t=9805

You have to realize the difference between the lister and Notepad. "even Notepad" is just an inadequate comparison. Notepad is an editor, lister is a viewer which can preview files of any size without any delay.

Are you aware of lister plugins? If you need line numbering, you can use Syn for example:
http://www.totalcmd.net/plugring/syn.html

If you only need a viewer you can try Scintilla Lister (needs SciTE installation though):
http://www.totalcmd.net/plugring/SciLister.html
2. A shortcut to reopen the file with the default F4 editor, so when you decide you need to edit a file you're viewing in lister you don't have to close windows and re-find the file.
There is an AHK script for that:
http://www.ghisler.ch/wiki/index.php/AutoHotkey:_Start_Notepad_In_Lister

Icfu

Posted: 2006-11-03, 18:19 UTC
by lalonso
I'm not interested in line numbers, that would not be practical.

However, going to a specific line in a file is similar algorithm-wise to doing a find, so it wouldn't be much of a stretch. It doesn't have to be instantaneous for large files. As for comparing it to notepad, obviously they're very different - lister is my favorite Total Commander feature, mainly because it seeks around the file instead of loading it all into memory.

As far as AutoHotKey goes, I'm aware things like that exist, wanting to install them on my machine is another matter. If it was a plugin, maybe, but Total Commander's strength comes from not needing to install 30 external programs to do simple file management.

Posted: 2006-11-03, 18:54 UTC
by icfu
I have linked a thread above, please take the time to read it.

No matter if you display line numbers or not: They have to be calculated for a Goto line feature! But, calculating line numbers for monster files without creating an index for future reference which will then enable Goto line without any delay (ListXP supports that!) I would call a gimmick and unworthy implementation.
As far as AutoHotKey goes, I'm aware things like that exist, wanting to install them on my machine is another matter. If it was a plugin, maybe, but Total Commander's strength comes from not needing to install 30 external programs to do simple file management.
I am tired to explain advantages permanently, that's why a link is in my signature to the AHK section in TC Wiki.
You don't need to install AHK, there's an archive available.
You can compile your scripts to Exe.

TC's strength is the plugin system but plugins are "installed" as well. AHK can save your time in a second, for some internal solutions you have to wait months or years, maybe forever. This is why I use AHK. Not because I am against internal solutions but because I prefer to solve problems yesterday, not tomorrow. ;)

Good luck

Icfu

Posted: 2006-11-04, 02:05 UTC
by Raymond
[OT]
2icfu
Just noticed your signature and got the WCMD_ENG.LNG file.:D It's the latest one, right?
I agree that TC setup package should include this file.

Posted: 2006-11-04, 03:25 UTC
by icfu
It's the latest I know at least, taken from a posting of ghisler in a thread buried somewhere in the TC 7 forums now. ;)

Nice to hear that the link serves its purpose – but I was sure he does. Thousands of discriminated English speaking users don't even know that they can adjust the strings, because the English language file has always been so damned hidden as if it was the Holy Grail... :)

Icfu
[/OT]

Posted: 2006-11-04, 08:36 UTC
by Flint
[OT]
Just a little addition. ;)
icfu wrote:It's the latest I know at least, taken from a posting of ghisler in a thread buried somewhere in the TC 7 forums now.
It's not buried too deep however. ;)
Additional languages for TC7 beta 1
[/OT]

Posted: 2006-11-04, 14:34 UTC
by icfu
You are a spoilsport. ;)

Icfu