CD directory => immediate addition on directory history

Jun 7, 2008
121
0
Hi

Did the act of

CD directory

=> immediate addition as part of directory history

get into v11 beta?

I have been looking around OPTIONS, configuration, Whats New to see if you enable this, somehow. So far, cant see it.

Thanks

Stephen Howe
 

rconn

Administrator
Staff member
May 14, 2008
12,345
150
> Did the act of
>
> CD directory
>
> => immediate addition as part of directory history
>
> get into v11 beta?

No -- it would have required a complete rewrite of the CD / CDD code, as
well as part of the parser. It's on the suggestion list for v12, but it's
much more difficult to implement than you suspect.

Rex Conn
JP Software
 
May 20, 2008
11,400
99
Syracuse, NY, USA
On Fri, 02 Oct 2009 19:28:21 -0500, rconn <> wrote:

|---Quote---
|> Did the act of
|>
|> CD directory
|>
|> => immediate addition as part of directory history
|>
|> get into v11 beta?
|---End Quote---
|No -- it would have required a complete rewrite of the CD / CDD code, as
|well as part of the parser. It's on the suggestion list for v12, but it's
|much more difficult to implement than you suspect.

I'd like it too, but only because I often want to start a new TCC and go where I
was when I closed some earlier instance. Could you stuff the CWD into the
history when a non-pipe, non-transient instance terminated. [Sure, I could do
that in tcexit, and I could accomplish the OP's goal with one of the special
aliases.]
--
- Vince
 
May 20, 2008
3,515
4
Elkridge, MD, USA
vefatica wrote:
| rconn wrote:
|| Steve Howe
||| Did the act of
|||
||| CD directory
|||
||| => immediate addition as part of directory history
|||
||| get into v11 beta?
||
|| No -- it would have required a complete rewrite of the CD / CDD
|| code, as well as part of the parser. It's on the suggestion list
|| for v12, but it's much more difficult to implement than you suspect.
|
| I'd like it too, but only because I often want to start a new TCC
| and go where I was when I closed some earlier instance. Could you
| stuff the CWD into the history when a non-pipe, non-transient
| instance terminated. [Sure, I could do that in tcexit, and I could
| accomplish the OP's goal with one of the special aliases.]

I just updated my POST_EXEC alias to include the command "dirhistory /a
%_cwd". It does exactly what Steve Howe (and I) always desired. Along the
way I discovered that the DIRHISTORY command option /T does not work in
either 11.0.21 or 10.0.76. I achieved the same result, but much slower,
piping to TAIL.

A function @DIRHISTORY (similar to @DIRSTACK) might be useful.

It would be useful to be able to examine the current attributes of the
HISTORY and DIRHISTORY tables (order, duplicates, etc.).

REX:
I am too lazy to search HELP. Please verify my understanding that PRE_INPUT,
PRE_EXEC and POST_EXEC are never executed for the right side of a pipe.
--
Steve
 

rconn

Administrator
Staff member
May 14, 2008
12,345
150
vefatica wrote:
| rconn wrote:
|| Steve Howe
||| Did the act of
|||
||| CD directory
|||
||| => immediate addition as part of directory history
|||
||| get into v11 beta?
||
|| No -- it would have required a complete rewrite of the CD / CDD
|| code, as well as part of the parser. It's on the suggestion list
|| for v12, but it's much more difficult to implement than you suspect.
|
| I'd like it too, but only because I often want to start a new TCC
| and go where I was when I closed some earlier instance. Could you
| stuff the CWD into the history when a non-pipe, non-transient
| instance terminated. [Sure, I could do that in tcexit, and I could
| accomplish the OP's goal with one of the special aliases.]

I just updated my POST_EXEC alias to include the command "dirhistory /a
%_cwd". It does exactly what Steve Howe (and I) always desired. Along the
way I discovered that the DIRHISTORY command option /T does not work in
either 11.0.21 or 10.0.76. I achieved the same result, but much slower,
piping to TAIL.

A function @DIRHISTORY (similar to @DIRSTACK) might be useful.

It would be useful to be able to examine the current attributes of the
HISTORY and DIRHISTORY tables (order, duplicates, etc.).

REX:
I am too lazy to search HELP. Please verify my understanding that PRE_INPUT,
PRE_EXEC and POST_EXEC are never executed for the right side of a pipe.
--
Steve

DIRHISTORY /T has been fixed for build 23.

Features that "might be useful" get put at the bottom (the very, very bottom) of the suggestion list. If you actually have a use (and an example) for it, it'll get bumped up.

I have no idea what you want for the "current attributes" of the history lists. (IMO that is definitely a job either for a custom filter or a plugin..)

The PRE_INPUT, PRE_EXEC, and POST_EXEC behavior is documented in the help for ALIAS.
 
May 20, 2008
11,400
99
Syracuse, NY, USA
On Sun, 04 Oct 2009 22:03:14 -0500, rconn <> wrote:

|I discovered that the DIRHISTORY command option /T does not work in
|either 11.0.21 or 10.0.76.

And it's not mentioned in the quick help (/?).

And in the CHM help, its entry should probably say "/Tn" in a couple places.
--
- Vince
 
May 20, 2008
3,515
4
Elkridge, MD, USA
rconn wrote:
| S. Fabian:
|| A function @DIRHISTORY (similar to @DIRSTACK) might be useful.
||
|| It would be useful to be able to examine the current attributes of
|| the HISTORY and DIRHISTORY tables (order, duplicates, etc.).

| Features that "might be useful" get put at the bottom (the very,
| very bottom) of the suggestion list. If you actually have a use
| (and an example) for it, it'll get bumped up.
|
| I have no idea what you want for the "current attributes" of the
| history lists. (IMO that is definitely a job either for a custom
| filter or a plugin..)

Dynamic information: current size, free space, entry count; the choices
made in the OPTION dialog: in the "Command History" section of the Command
Line page for (command) HISTORY, and their equivalents for DIRHISTORY.
Since HELP no longer includes the names of the directives set by OPTION,
users without access to the V8 help file cannot programmatically obtain
these settings. Using the OPTION dialog is not possible in batch files
imported from other users.

|| I am too lazy to search HELP. Please verify my understanding that
PRE_INPUT,
}} PRE_EXEC and POST_EXEC are never executed for the right side of a pipe.
|
| The PRE_INPUT, PRE_EXEC, and POST_EXEC behavior is documented in the
| help for ALIAS.

What may be implied but not explicitly stated in alias.htm is that
PRE_EXEC is performed before any pipes required by the new command line are
opened, and POST_EXEC is performed after such pipes, if any, have already
been closed. Obviously, at least now after I reread that section, PRE_INPUT
would need to be an oracle to know about pipes in a command not yet entered.
Nest year? Next century?
--
Steve
 

rconn

Administrator
Staff member
May 14, 2008
12,345
150
> | I have no idea what you want for the "current attributes" of the
> | history lists. (IMO that is definitely a job either for a custom
> | filter or a plugin..)
>
> Dynamic information: current size, free space, entry count; the
> choices made in the OPTION dialog: in the "Command History" section
> of the Command Line page for (command) HISTORY, and their equivalents
> for DIRHISTORY.

Why would any of that be of use?

Nobody's ever asked for any of those, so at best it seems to be of very
limited interest. A plugin could do it, if any plugin author wants to try.

Rex Conn
JP Software
 

samintz

Scott Mintz
May 20, 2008
1,503
16
Solon, OH, USA
How about this?

function DIRHISTORY=`%@EXECSTR[%1,dirhistory]`

echo %@DIRHISTORY[0]

-Scott

Steve F$BaC(Bi$BaO(B <> wrote on 10/03/2009 07:14:16 AM:


> vefatica wrote:
> | rconn wrote:
> || Steve Howe
> ||| Did the act of
> |||
> ||| CD directory
> |||
> ||| => immediate addition as part of directory history
> |||
> ||| get into v11 beta?
> ||
> || No -- it would have required a complete rewrite of the CD / CDD
> || code, as well as part of the parser. It's on the suggestion list
> || for v12, but it's much more difficult to implement than you suspect.
> |
> | I'd like it too, but only because I often want to start a new TCC
> | and go where I was when I closed some earlier instance. Could you
> | stuff the CWD into the history when a non-pipe, non-transient
> | instance terminated. [Sure, I could do that in tcexit, and I could
> | accomplish the OP's goal with one of the special aliases.]
>
> I just updated my POST_EXEC alias to include the command "dirhistory /a
> %_cwd". It does exactly what Steve Howe (and I) always desired. Along
the

> way I discovered that the DIRHISTORY command option /T does not work in
> either 11.0.21 or 10.0.76. I achieved the same result, but much slower,
> piping to TAIL.
>
> A function @DIRHISTORY (similar to @DIRSTACK) might be useful.
>
> It would be useful to be able to examine the current attributes of the
> HISTORY and DIRHISTORY tables (order, duplicates, etc.).
>
> REX:
> I am too lazy to search HELP. Please verify my understanding that
PRE_INPUT,

> PRE_EXEC and POST_EXEC are never executed for the right side of a pipe.
> --
> Steve
>
>
>
>
 
Similar threads
Thread starter Title Forum Replies Date
fishman@panix.com HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
D How to use multi-line DO to loop through first level directory names Support 5
D ParentDirectory does not update directory history Support 6
samintz CDD to non-existent directory hangs Support 2
gworley rd (Remove Directory) gives interesting error: Support 2
D Directory History Window with wildcard search Support 3
D How to? Skip removing directory (RMDIR) without error message Support 2
gentzel Directory stack empty when running TCEXIT? Support 9
vefatica Disable extended directory searches (completely)? Support 8
M WAD "Pictures" directory is empty in TCC but not in CMD or Explorer Support 4
G Local Directory Corruption Support 11
Jay Sage Directory Alias Access to FTP Servers Support 2
Joe Caverly DIRectory Colorization in v25 Help File Support 0
K copy changing destination current directory Support 1
thorntonpg option /u not working The directory name is invalid Support 5
J built in file explorer - how do i go back "up" the directory? Support 2
vefatica Extended directory searches? Support 6
Joe Caverly Using a Directory Alias with @iniwrite fails Support 14
A Installer /extract: extracts into current directory if target not exists Support 12
Charles Dye Ctrl-Shift-Up doesn't update directory history Support 1
G Extended directory search not working Support 4
CWBillow Editing in the root directory of windows 10 Support 6
D Directory stack empty Support 1
J directory or folder to start in Support 2
M How to unlock a directory Support 1
Alpengreis Fixed TCMD FileExplorer Start-Directory problem Support 4
R V19 - At startup, TCC save directory in the directory history list Support 2
C Touch command — I Need to touch matching files in another directory. Support 5
nickles Move takecommand.18.0.key location to installation directory Support 4
fishman@panix.com Extended Directory Searches are not working for me in CDD Support 9
vefatica TCMD's current directory? Support 4
J How to set working directory Support 10
nickles How to? Follow a JUNCTION type directory link Support 9
Steve Pitts WAD Strange output from DEL of a non-existent directory Support 7
I tab completion with directory commands Support 7
vefatica Start-up directory for new tabs? Support 7
cgunhouse Problem with CALL and Directory Aliases in V17 Support 9
vefatica FFIND /S, find directory with specified name? Support 7
David Wilbanks How to make new tab open in same directory as previous tab? Support 4
H WAD Wild Card in Directory @shfolder[25] acting differently Support 3
M How to? List path getting short file and directory names... Support 10
A How to? Can't change directory ("cd") into system hidden files Support 13
mfarah How to? So I want a custom directory for the plugins... Support 16
D Why doesn't ffind find directory? Support 3
T dir /h error in empty directory Support 22
S directory history locks up TCC Support 3
B Why Does @GETDIR Repeat Selected Directory Name In Returned Value Support 7
ed neff How to? exit TCC/Take Command to a new directory Support 10
Jake Default directory Support 3
Frank ZIP: howto store directory in the zip-file Support 20

Similar threads