LIBRARY and file name completion?

May 20, 2008
11,388
99
Syracuse, NY, USA
I am here.

Code:
d:\tc25\library> d
2019-09-03  13:40              51  doperl.lib
2019-07-17  23:57             789  tl.lib

If I type

Code:
library /r <Tab>

my command line turns into

[/code]library /r doperl[/code]

and more Tab's do nothing. It'll do that even if I'm in another directory!

1. Where's it getting "doperl" in the first place? [doperl.lib contains a "doperl" library routine.]

2. Why doesn't it do ANY file name completion?
 
Hey @vefatica , on my system, it seems to be grabbing the first LIBRARY function that I have.

If I do;
Code:
c:\program files\jpsoft\tcmd25\library>library /f
0107 {
@set eventday=01-07
@set eventname=Orthodox Christmas
setevent
}

I am presented with the first Library function of my list. Now, if I do;
Code:
c:\program files\jpsoft\tcmd25\library>dir

Volume in drive C is unlabeled    Serial number is acb2:6a48
Directory of  C:\Program Files\JPSoft\TCMD25\library\*

2019-08-15  15:50         <DIR>    .
2019-08-15  15:50         <DIR>    ..
2018-05-07   5:39           5,009  astronomy.library
2018-05-03   7:29           2,028  datesubs.library
2019-05-07  16:51          11,687  dbf.library
2018-03-13  17:33             133  test.btm
2019-06-14  17:00           1,470  times.library
2019-06-03  16:23             415  vb.library
2019-04-05   9:01           2,302  vfp.library
              23,044 bytes in 7 files and 2 dirs    40,960 bytes allocated
     352,970,031,104 bytes free

c:\program files\jpsoft\tcmd25\library>library 0107
0107

c:\program files\jpsoft\tcmd25\library>ffind /t"0107" *.library

---- C:\Program Files\JPSoft\TCMD25\library\datesubs.library
0107 {

Like yourself, tab completion has the same effect here.

Joe
Code:
     _x64: 1
   _admin: 1
_elevated: 1

TCC  25.00.15 x64   Windows 10 [Version 10.0.18362.295]
OS Name:                   Microsoft Windows 10 Pro
OS Version:                10.0.18362 N/A Build 18362
 
May 20, 2008
11,388
99
Syracuse, NY, USA
Code:
c:\program files\jpsoft\tcmd25\library>library /f
0107 {
@set eventday=01-07
@set eventname=Orthodox Christmas
setevent
}

Did that get snipped? Here, "library /f" shows ALL of my library routines (and it looks like you have a few).
 
May 20, 2008
11,388
99
Syracuse, NY, USA
This is better in build 17. After "LIBRARY /R" it completes file names. But I wonder about the function name completion mechanism.

After "LIBRARY /F", <Tab> completes the name of the first function it finds. After "LIBRARY /F partial_name" <Tab> completes the first matching function name. But in either case, another <Tab> does nothing. Is that WAD? Experience with file name completion makes me expect (naively) that more <Tab>s would give me more matches if there are any.
 
Similar threads
Thread starter Title Forum Replies Date
Joe Caverly LIBRARY /F in v28 Support 0
Joe Caverly LIBRARY and Pipes Support 2
Joe Caverly How to? Get name of current LIBRARY function? Support 4
Joe Caverly Documentation Replace internal command with LIBRARY command Support 0
Joe Caverly No blank line in TEXT...ENDTEXT in a LIBRARY function Support 8
cgunhouse Ctrl-C from within a library function Support 6
vefatica Continued lines (^) in a library routine? Support 5
vefatica '}' in a library function? Support 3
vefatica Library functions and line continuations? Support 4
Joe Caverly @NAME supports library functions Support 2
Joe Caverly Update ENDLOCAL to include LIBRARY Support 0
Joe Caverly Debugging a LIBRARY function Support 10
J Documentation Make tcc great again - what's the benefit of LIBRARY? Support 6
J History file load hangs if file has complete garbage in it... Support 1
jdanielp Cannot step into and/or call another .bat file when debugging .bat file Support 2
thorntonpg file explorer - short cut keys Support 1
JohnQSmith New online help file wrong logo Support 7
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
samintz How to? swap endianness in a binary file Support 12
vefatica `Back quotes` - command line vs. batch file Support 5
fpefpe How to? batch file size Support 2
Jay Sage Issues With TCMD File Explorer Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
Joe Caverly @FILESIZE and NTFS File Stream Support 1
Joe Caverly Embedding an .EXE (or other file) into a .BTM Support 8
U Command help on file names Support 5
S Concatenate all playlists into 1 file Support 22
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
Joe Caverly Rename file that begins with Emoji Support 7
Joe Caverly PSHELL and NTFS File Streams Support 2
P Kill all other instances of tcc from a btm batch file Support 2
D ffind hangs on large file Support 18
Alpengreis Documentation Minor issue in help file for view /E Support 1
fpefpe batch file ending early Support 18
J Licesne file location Support 1
K robocopy cancelling batch file processing Support 28
Jay Sage TCMD Crashes with "tctoolbar /c /r file" Support 5
A Unable to pass batch file arguments unaltered Support 18
MikeBaas How to...extract a string from a .json-file? Support 10
D What does the file "..\Everything\Run history.csv" store? Support 5
H Takecommand.pdf failed not a pdf file Support 6
Joe Caverly DIRectory Colorization in v25 Help File Support 0
C show file description? with dir? Support 8
D When copying/moving, appending " (2)" to filename when the target file already exist. Support 7
R How to? Dir specific file search patterns with spaces in the pathnames? Support 6
Joe Caverly _EXPANSION in help file Support 0
Stefan Hassel Installation file TC 24.02 Build 47 is actually version 25.00.1 Support 10
vefatica Are @FILEDATE[file] and @FILEDATE[file,u] ever different? Support 2
K_Meinhard Help file error Support 1
Joe Caverly JOBMONITOR in Help File Support 1

Similar threads