Welcome!

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

SignUp Now!

Recent content by forbin

  1. forbin

    Disable line wrap in TCC window?

    @David_Wolfe - there are a couple of options that you could use to maybe accomplish something close to what you want: Pipe to VIEW Diddle the registry directly. By piping to the VIEW command, you can easily turn word wrap on/off and do a lot of other things. That's what I would more strongly...
  2. forbin

    TCC, Bash, and Shebang!

    I have an interesting puzzle to solve. We use "Git for Windows" and "Git Extensions" for our source code control. Those install MinGW64 and Cygwin so that they have a very Linux-like environment available to them. I want to write some hooks and additional utilities, but I don't want to write...
  3. forbin

    How to use the USB (portable) key?

    Joe Caverly to the rescue! As usual.... :-)
  4. forbin

    How to use the USB (portable) key?

    Uhh.... I've finally gotten around to updating my portable drive to TC v28. And I've forgotten how to get it to recognize the USB portable key file! Derp... derp... derp... I've generated the key file and it's in my F:\JTB\TCmd_v28 directory (where TC is installed). But when I start it...
  5. forbin

    How to? Use LIST to list all files that FFIND found

    So, you want to list the content of the files that contain "stuff to look for", without getting other files, is that correct? If so, you can do it with the clipboard; note that @CON: doesn't work here. (ffind /s /b /t"stuff to look for" *.py > CLIP:) & list @CLIP:
  6. forbin

    DIR output is backwards, any way to change it?

    I just tripped over this again and realized I made it sound harder than it actually is. Have the BTM file iterate over all the filenames (wildcard expanded) from the command line. Keep the longest width, then build a PDIR command string in a variable and execute it via @EXEC[] or @EXECSTR[]...
  7. forbin

    DIR output is backwards, any way to change it?

    If you want to be ambitious, you can write a BTM file that caches the file information in one or more arrays in memory, keeping track of the maximum filename width as you go, and then generates the output lined up accordingly. 15-20 years ago, I would have probably written it and posted it...
  8. forbin

    Interesting TPIPE sort algorithm artifact

    :smile: Not necessarily. Say, for example, that I am given a mailing list. I don't want to completely reformat it (if I did, I'd probably use AWK). But the order of the entries is entirely random. And the field order is: Firstname,Mid,Lastname,Address,City,State,Country,PostalCode So, by your...
  9. forbin

    Change Default Prompt

    Sigh... :: ELPATH.BTM :: For author, licensing, revision history, see the end of file. @LOADBTM ON @echo off SETLOCAL :: If not manually set by the user, set max prompt path length to a little more :: than half the current width of the screen. If PL is negative, assume we want :: (screen...
  10. forbin

    Change Default Prompt

    For some reason it's not letting me upload ELPATH.BTM. Trying again. If it doesn't let me do it separately, I guess I'll have to post it as a code snippet?
  11. forbin

    Change Default Prompt

    Forgot above that the elider is in a separate batch file. Also, you'll need the _SH setter if you want to use ColorPrompt.btm "as is."
  12. forbin

    Change Default Prompt

    This is what some of the prompts look like: The length that triggers an elided path can of course be tweaked in the code. As can the length that it reduces to. I have both of mine set somewhat wide.
  13. forbin

    Change Default Prompt

    Sorry, I thought for sure I had attached it! Tryiing again! [If at first you don't succeed... skydiving may not be the right sport for you...]
  14. forbin

    Grab list of files then pass filenames on the command line

    Yeah, I'd forgotten all about @EXPAND[], and this will handle the majority of cases! Ugh, except at least one: the recursive descent example above. I'll keep digging for an improved way of handling that one case, and I'll post it here for others (if someone else doesn't beat me to it!) Vince...
  15. forbin

    Grab list of files then pass filenames on the command line

    Grab list of files then pass filenames on the command line -- preferably on the same command line! Does anyone know of a convenient "coding metaphor" or pattern for doing the following? Assume I have some external program, for example, a programmer's editor (let's call it "Ed" for...
Back
Top