Maximus5 / conemu-old-issues

Old issues imported from googlecode. Project was moved to
https://conemu.github.io
6 stars 1 forks source link

Support quoted -new_console:t:"my title" or, option to display current path in tab title #1475

Open Maximus5 opened 9 years ago

Maximus5 commented 9 years ago

Originally reported on Google Code with ID 1475

Sometimes I go to a folder in FAR Manager and start a new window to execute a very-long-run
batch file or PHP script. Until now, I did it like this: 

start something.bat

But unfortunately cmd.exe does not process pretty ANSI X3.64 outputs and would be nice
to run in a ConEmu tab with some useful tab title. I trying to use ConEmu features,
so I made a User menu item in FAR Manager:

cmd.exe -new_console:t:!\ 

This works well while current path not constains space(s)... ConEmu maybe could support
quoting on -new_console arguments!

------

More universal solution would be something macro or special character or whatever which
causes tab title to display current directory of the root process.

In this way we could open a cmd.exe in a new tab and it's title dynamically changing
as we walk into folders.

------
P.S.:

I also tried this:

conemu  /Title Kommand /Single /cmd cmd.exe

But it does not set tab's title...

Reported by nanofoxxx on 2014-02-16 16:14:13

Maximus5 commented 9 years ago
1. ConEmu supports quotation.
cmd.exe "-new_console:t:!\"

2. "Current directory" is the shell but not the terminal feature. PowerShell, for example,
does NOT call WinApi's SetCurrentDirectory at all!
But! It is already possible to show %CD% in the tab title with ANSI or GuiMacro. PowerShell
and cmd examples: http://superuser.com/a/634830/139371

3. "/Title" changes ConEmu title to some fixed text. Only.

Reported by ConEmu.Maximus5 on 2014-02-16 17:56:06

Maximus5 commented 9 years ago
You are UNBELIVEABLE great! I don't know how I did lived without this great feature
before :) (I mean that prompt-based tab-title)

-----------

I not open another topic for this bug: quoting not works well - I type:

cmd "-new_console:t:my title"

...and tab's title will be:

my title"

(notice ending «"»)

-----------

Moreover, this will NOT set tab's icon:

cmd "-new_console:C:c:\my\art\gfx\icons\CMD.ico"

This WILL set icon:

cmd "-new_console:C:c:\my\art\gfx\icons\CMD.ico

(notice last missing «"»)

Reported by nanofoxxx on 2014-02-17 13:23:08