LIST - enhancements

Jun 7, 2008
121
0
Hi

I guess I am too late for version 12 and this should be elsewhere but I posting in Support just in case someone says, "you can already do that with TCC Version 11".
:D

1. Is it possible to configure TCC so that it considers the left-most column as Column 1? I have quite a few file specifications where fields are mentioned as starting from 1, and it would be nice if there is some kind of key toggle that just means the header displays from 1 (positional) rather than 0-based (offset and C/C++). I can do the mental arithmetic but I would rather not.

2. Left and Right scroll by 8 columns. Can I configure this to be a smaller number (like 1)? The idea is if I know a field starts at position 233 in a text file, I can position it so that it is flush with LIST's left column. I can then press down, up, pgup, pgdn watching the field. If the field is 7 characters in from the left, it is harder to do so.

Cheers

Stephen Howe
 
May 20, 2008
3,515
4
Elkridge, MD, USA
----- Original Message -----
From: "Stephen Howe" <>
| I guess I am too late for version 12 and this should be elsewhere but I
posting in Support just in case someone says, "you can already do that with
TCC Version 11".
| :D
|
| 1. Is it possible to configure TCC so that it considers the left-most
column as Column 1? I have quite a few file specifications where fields are
mentioned as starting from 1, and it would be nice if there is some kind of
key toggle that just means the header displays from 1 (positional) rather
than 0-based (offset and C/C++). I can do the mental arithmetic but I would
rather not.

Sorry, not available. Virtually all features work with offsets, not
positions. Since one often needs column numbers for some uses, and offsets
for other uses, it would be a nice enhancement to be able to switch
dynamically. Another, similar issue is that one often needs to move the
reference point to a position other than the left margin dynamically, as
when determining the position and width of each field in tabular output
(which you may need to create, or parse, or modify).

| 2. Left and Right scroll by 8 columns. Can I configure this to be a
smaller number (like 1)? The idea is if I know a field starts at position
233 in a text file, I can position it so that it is flush with LIST's left
column. I can then press down, up, pgup, pgdn watching the field. If the
field is 7 characters in from the left, it is harder to do so.

You can change that with the TabStops option or in the OPTION dialog
ADVANCED options tab Tabs entry, valid range 1 .. 32. But shifting the
display left by 232 columns (as your example above would require) would
seemingly take forever when done by hand 1 column at a time. A real
enhancement for your purposes would be the ability to insert "virtual
separators" (horizontal or vertical lines at selected positions in the
display, with the line and column counters passing over them, making the
visual pattern recognition easy even when not at the edge of the display.
Couple this with a dynamic selection of both horizontal tab size (when
looking at imported source code, the indentation levels are not always
obvious, one needs to play with them to see what the originator used) and
explicit dynamic selection of source column to be dislpayed at the left side
of the display area, best done by some kind of "command" mode for display
adjustment.
--
Steve
 
Jun 7, 2008
121
0
----- Original Message -----
You can change that with the TabStops option or in the OPTION dialog
ADVANCED options tab Tabs entry, valid range 1 .. 32. But shifting the
display left by 232 columns (as your example above would require) would
seemingly take forever when done by hand 1 column at a time.
Steve

Aaahhh. but I would use Ctrl-Left Arrow and Ctrl-Right Arrow to advance 40 characters.

So Ctrl-Right Arrow 5 times and then Left Arrow a few times back seems good while in LIST.

Thanks Steve

Cheers

Stephen Howe
 
Jun 7, 2008
121
0
----- Original Message -----
You can change that with the TabStops option or in the OPTION dialog
ADVANCED options tab Tabs entry, valid range 1 .. 32.
Steve

Steve

I tried this both variations. And neither had any effect on Left/Right Arrow in LIST. It seems fixed at 8 columns adjustment.

Thanks

Stephen Howe
 
May 20, 2008
11,400
99
Syracuse, NY, USA
On Fri, 04 Jun 2010 16:35:48 -0400, Stephen Howe <> wrote:

|I tried this both variations. And neither had any effect on Left/Right Arrow in LIST. It seems fixed at 8 columns adjustment.

Mine is set at 4; I get 8. If, in LIST, I press [Tab] I can specify a new tab
width. Whatever I specify, I get 8.
--
- Vince
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,461
88
Albuquerque, NM
prospero.unm.edu
On Fri, 04 Jun 2010 16:35:48 -0400, Stephen Howe <> wrote:

|I tried this both variations. And neither had any effect on Left/Right Arrow in LIST. It seems fixed at 8 columns adjustment.

Mine is set at 4; I get 8. If, in LIST, I press [Tab] I can specify a new tab
width. Whatever I specify, I get 8.
--
- Vince

The TabStops directive, and the little dialog that the Tab key brings up, control the expansion of tab characters in the text file to spaces. They don't have anything to do with horizontal scrolling.
 
May 20, 2008
3,515
4
Elkridge, MD, USA
----- Original Message -----
From: "Charles Dye" <>
| The TabStops directive, and the little dialog that the Tab key brings up,
control the expansion of tab characters in the text file to spaces. They
don't have anything to do with horizontal scrolling.

You are correct, more careful reading of V8 HELP topic "tabstops.htm"
and V11 HELP topic "iniadvaceddlg.htm" verifies that issue. It leaves no
user control on the amount of horizontal scrolling at all. :-(
OTOH the TAB key provides the dynamic change of tab expansion I
mentioned earlier in this thread, a feature I had never discovered. What I
really would like to see is the ability to provide a list of tabstops, as
you could in old typewriters, and is clumsily emulated in MS Word (allows
stops defined by absolute size, regardless of font size).
--
Steve
 
Jun 28, 2008
69
2
Chicago
www.pement.org
What I
really would like to see is the ability to provide a list of tabstops, as
you could in old typewriters, and is clumsily emulated in MS Word (allows
stops defined by absolute size, regardless of font size).

If you have no objection to using GNU text tools (available at http://gnuwin32.sourceforge.net/packages/coreutils.htm ), you might benefit from the expand/unexpand utilities, which expand and compress instances of TABs in a file to a desired size or list of tab stops.

Help menu:
Code:
[0]> expand --help
Usage: expand [OPTION]... [FILE]...
Convert tabs in each FILE to spaces, writing to standard output.
With no FILE, or when FILE is -, read standard input.

Mandatory arguments to long options are mandatory for short options too.
  -i, --initial       do not convert tabs after non blanks
  -t, --tabs=NUMBER   have tabs NUMBER characters apart, not 8
  -t, --tabs=LIST     use comma separated list of explicit tab positions
      --help     display this help and exit
      --version  output version information and exit

Report bugs to &lt;bug-coreutils@gnu.org&gt;<bug-coreutils@gnu.org><bug-coreutils@gnu.org>
So you can do something like this:
Code:
expand -t 11,19,22,38 yourfile | list /s
I know that it's not a native JP Software solution, but it may meet your needs.
</bug-coreutils@gnu.org></bug-coreutils@gnu.org>
 
Similar threads
Thread starter Title Forum Replies Date
FreezerBurnt ANSI Prompt messes up list output. Support 39
Phileosophos PDIR to list filenames without extensions? Support 2
T Is there a way to maintain the position in the environment list, while debugging? Support 10
Alpengreis List command: text truncated in find box (german) Support 9
L LIST's pop-up search loses focus in a Windows Terminal window Support 15
A List windows with titles matching given pattern? Support 2
C How to make list of drive contents when shutdown PC / Everything.exe Support 7
D _USBS list misses flash drives that @USB recognizes. Support 7
Phileosophos LIST edit not invoking my specified editor Support 4
cxxl WAD Mouse movement sluggish when using TCC list Support 3
Oz Solomon Problem with "list" Support 14
P Strange mouse behavior with list Support 2
T Invalid attach tabs list Support 10
M A list of issues .. Support 17
J Documentation New help system: "skip word list" Support 11
WavSlave Fixed LIST /U not working in TCC v19 Support 5
R V19 - At startup, TCC save directory in the directory history list Support 2
C cosmetic issue with LIST's (I) Support 9
Stefano Piccardi list of TCC commands for external editors Support 4
vefatica Get a list of all files with alternate streams? Support 11
Joe Caverly LIST /T (search for Text) Support 2
Joe Caverly ListColors for LIST Support 1
M How to? List path getting short file and directory names... Support 10
C How to? List empty folders Support 21
S How to? Use wild cards in include list without duplicate processing Support 49
vefatica Fixed No text in List View! Support 4
D Folder/List view changed in v15 Support 8
S list seems to loose focus v15 Support 2
A How to? Filter history list with unicode chars Support 0
N WAD Take Command and UNCs for Folder List Support 10
S TCMD No List-View with Libraries? Support 5
M Sync folder/list view with command window? Support 2
vefatica New directory not moved to end of list Support 2
vefatica LIST and TYPE show UTF8 BOM Support 4
M Problem with the "List" command... Support 19
vefatica DO f in /L <list of file names>? Support 6
C list jpsoft file Support 2
A How to? Filter a list by numeric number within filename Support 28
M Just an out-of-curiosity question the List command vs. the @Lines function... Support 13
Dmitry L. Kobyakov Fixed The Take Command File List Panel shows 0 for all file sizes at DVD Support 4
M WAD A case where the "List" command is clearly not working at all... Support 4
Joe Caverly LIST scrollbar Support 2
R TC 13 / you forgot to list a new feature Support 2
S BDEBUGER: watch list limit? Support 4
T "L" (LIST) not working in TCC's examples.btm Support 3
rconn Suggestion list for next major version Support 0
M FFIND and LIST does not work for UTF-8 fles Support 10
D LIST command wierdness with empty Unicode file Support 1
JohnQSmith List View refresh Support 6
S Using TCC list with KatMouse Support 9

Similar threads