Is it possible to send a line from the "command input" window to the tab without pressing "Enter", w

Apr 28, 2011
13
0
Hello -

I was wondering if it's possible to send the current line in the Command Input window to the current tab for execution - but *without* pressing the Enter key, which has the side effect of placing a newline in the Command Input window, in addition to sending the current line to the tab.

This would make it possible to save frequently-used commands in the Command Input window and reuse them simply by sending them to the tab for execution, but without adding (and then having to remove) newlines every time.

As a secondary question, is it possible to disable having "Enter" send the current line in the Command Input window to the tab, so that it's possible to use the Command Input area as a scratch area where you're free to create many ill-formed lines as you build up commands you plan to execute later, pressing Enter during the course of this scratch-work without fear that the current line will be sent down to the open tab?

Thanks,
Dan.
 

rconn

Administrator
Staff member
May 14, 2008
12,356
150
Hello -

I was wondering if it's possible to send the current line in the Command Input window to the current tab for execution - but *without* pressing the Enter key, which has the side effect of placing a newline in the Command Input window, in addition to sending the current line to the tab.

No.

This would make it possible to save frequently-used commands in the Command Input window and reuse them simply by sending them to the tab for execution, but without adding (and then having to remove) newlines every time.

You can reuse previous commands by moving the cursor to the line in the Command Input window and pressing Enter.

I don't know why you're trying to avoid the newlines -- are you trying to put multiple commands on one line and only execute part of it?

As a secondary question, is it possible to disable having "Enter" send the current line in the Command Input window to the tab, so that it's possible to use the Command Input area as a scratch area where you're free to create many ill-formed lines as you build up commands you plan to execute later, pressing Enter during the course of this scratch-work without fear that the current line will be sent down to the open tab?

No, but you could use the IDE window for that.
 
May 20, 2008
11,411
99
Syracuse, NY, USA
On Thu, 28 Apr 2011 19:50:50 -0400, rconn <> wrote:

|You can reuse previous commands by moving the cursor to the line in the Command Input window and pressing Enter.
|
|I don't know why you're trying to avoid the newlines

Doing that inserts a newline in the command input window and makes a mess of it.
I had that gripe long ago when first tried the command input window but not
being a regular user of TCMD I didn't complain about it.

It's even worse if you press [Enter] when the cursor is in the middle of a line
in the CIW; it executes the whole line and inserts a newline wherever the cursor
was. Better might be (haven't thought it out) only insert the newline if the
insertion point is at the end of a line (else just execute the line).
 
Apr 28, 2011
13
0
Thanks for the replies -

I fully agree with vefatica. It seems somehow obvious to me why you don't want a newline to be entered just because you wanted to reuse a command. I have been reusing commands frequently, and I'm just in the habit of pressing "backspace" to remove the newline that is entered whenever I want to reuse a command.

Wouldn't most users be annoyed by this? Why not have a separate hotkey available to actually just reuse the command on the line, without having a newline forced into your life?

:)

Thanks,
Dan.
 
May 30, 2008
235
2
I agree.

This is the main reason I don't use the "command input" window.

Instead I rely on the old and familiar "history recall" functionality, even if "command input" could potentially be more efficient and comfortable sometimes.
 
Similar threads
Thread starter Title Forum Replies Date
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
M Is bash-like filename completion possible? Support 3
vefatica DO /P ... is this possible ... ? Support 5
I Possible Bug: History /n Returns Nothing Support 3
Jay Sage WAD Possible Bug in Batch Parameters Support 7
M @FileSize - How is this possible? Support 10
S Is restartable TCMD download possible? Support 6
H Possible V16 documentation error? Support 2
The Wizard WAD Possible Incorrect COMSPEC handling Support 2
S How to? Is it possible for the IDE to start without plugins? Support 3
A How to? Is it possible to freeze one side of the console? Support 19
Vasilich How to? debugging files that use CALL command - possible?? Support 3
wbiebel Can this be possible: TCEXIT is not executed? Support 21
Frank VIEWing multiple files possible? Support 4
C Possible caching problem with http files Support 7
S Dir - case selection possible?? Support 3
T Possible to delete the new standard tab? Support 1
noahcoad Possible Bug? Launching 4nt.exe Goes Hairwire Support 10
G possible bug in SETDOS Support 4
M Something that does not seem possible... Support 2
D Is this possible, and how Support 0
T How can I send a simple parameter to a script, in tc 25? Support 2
vefatica Can KEYSTACK send Alt-1 (Alt-2 ...)? Support 6
F Can't send keystrokes to application Support 25
B How to? Send backslash with keystack Support 1
D Documentation Using "send all input to other tabs" Support 11
CWBillow Send Command-line with prompt? Support 6
electrotype keyboard shotcuts to send commands to a TCC tab? Support 8
T VIEW only works from command line Support 14
vefatica `Back quotes` - command line vs. batch file Support 5
Phileosophos Is there any way to open the Take Command options dialog from the command line? Support 8
Phileosophos Command-line Editing Shortkeys That Fail Support 6
D How to use multi-line DO to loop through first level directory names Support 5
D Open Windows 10 Photos app from command line Support 11
Peter Murschall Single-line Do-CMD is a bit uncooperative. Support 6
Jesse Heines Strange Line Wrapping Behavior Support 14
fpefpe How to? command echo in title line/bar Support 2
vefatica Command line DO with no closing parenthesis? Support 9
R Long commands retrieved from command history have blank line when wrapped Support 20
M No line wraps if last line of the screen buffer is reached Support 5
Joe Caverly No blank line in TEXT...ENDTEXT in a LIBRARY function Support 8
R CMDebug, dark theme, current line Support 7
vefatica IDE - when breakpoint is on a blank line? Support 3
D Double Quote in TC Tool Bar Button Command line Support 3
Joe Caverly Expand all aliases on the command line Support 2
vefatica How do I do this with a multiple-line DO? Support 7
Jay Sage Cannot Postion Cursor in Command Line Using Mouse Support 7
vefatica Windows 10 and line wrapping selection? Support 6
vefatica IDE.EXE's command line? Support 19
x13 TPIPE /REPLACE - Remove line (including EOL) Support 3

Similar threads