Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

add extensions to autocomplete tab key and other

Nov
3
0
Hi, I've searched the forum ana everything but I haven't found how to add popular extension to tab autocomplete, i.e. .mkv or .mp3, so when I complete the .mkv file it will launch windows associated program automatically.
It will works if I write the filename alone by itself so i need just the autocomplete.

The other configuration i need is to enable backspace as go up one level in TCC file explorer.

Thanks for your help
 
Hi, I've searched the forum ana everything but I haven't found how to add popular extension to tab autocomplete, i.e. .mkv or .mp3, so when I complete the .mkv file it will launch windows associated program automatically.
It will works if I write the filename alone by itself so i need just the autocomplete.

One way is to create an environment variable. The variable name is the extension, including the leading dot; the value is the command to open that file type. For example, set .html=chrome.exe

Once you've got it figured out, you can add the SET command to your TCSTART.BTM file so it runs every time you start TCC.
 
One way is to create an environment variable. The variable name is the extension, including the leading dot; the value is the command to open that file type. For example, set .html=chrome.exe
Where is that in the help?
 
Thanks. That page doesn't mention completion. And the "Customizing file name completion" page doesn't mention executable extensions. Is there any connection between the two?
 
Try help filename-completion; scroll down to the very bottom.

There's so much stuff in the help file, it becomes difficult to remember where you found some gem.
 
One way is to create an environment variable. The variable name is the extension, including the leading dot; the value is the command to open that file type. For example, set .html=chrome.exe

Once you've got it figured out, you can add the SET command to your TCSTART.BTM file so it runs every time you start TCC.
Thank you, is there any way to check all autocomplete enabled extension in TCMD?
Otherwise, is there a way to enable to tab autocomplete any file in a folder regardless of extension so I can choose the one I know it works?

and how about the backspace key related question?
thanks again
 
Thank you, is there any way to check all autocomplete enabled extension in TCMD?
Otherwise, is there a way to enable to tab autocomplete any file in a folder regardless of extension so I can choose the one I know it works?

You can list environment variables starting with a dot with set .*
Additionally, regular executables will be included: .BTM .CMD .BAT .EXE and maybe .COM .PIF .LNK

That said, if I want to bypass the 'executable files' check, I just type a space as the first character on the command line. The executable-file-only limitation is only at the start of the command line; even a single space is enough to suppress it.

and how about the backspace key related question?
thanks again

I agree that would be a nice thing to have, but I don't know how to accomplish it. I suspect it would involve subclassing the control, which would be a feature request for a future version.
 
You can list environment variables starting with a dot with set .*
Additionally, regular executables will be included: .BTM .CMD .BAT .EXE and maybe .COM .PIF .LNK

That said, if I want to bypass the 'executable files' check, I just type a space as the first character on the command line. The executable-file-only limitation is only at the start of the command line; even a single space is enough to suppress it.



I agree that would be a nice thing to have, but I don't know how to accomplish it. I suspect it would involve subclassing the control, which would be a feature request for a future version.
Clever trick, thanks again
 
Back
Top