Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command line option -d and saved workspace #497

Open
eldmos opened this issue Aug 22, 2018 · 1 comment
Open

command line option -d and saved workspace #497

eldmos opened this issue Aug 22, 2018 · 1 comment

Comments

@eldmos
Copy link

eldmos commented Aug 22, 2018

hi,

I'm wondering about the following scenario:

for more convenient use with different folder locations I added a registry key for windows shell integration which allows (in Windows explorer) to open a console window (= new tab) from the current selected directory. as a result I use -d command line parameter to have Console.exe's tabs running with a startup directory.

at the same time I'd like to have all former tabs restored whenever I newly start the program.

steps to reproduce

  1. enable: Edit -> Settings -> Behavior -> More... -> Save workspace on exit
  2. open two tabs with different locations
  3. close Console.exe
  4. from windows command line run:
    Console.exe -d '3rd_directory'

actual behavior

  • the two former opened tabs are restored from workspace, '3rd_directory' is not added as a new tab
  • (with step 4 above) when adding command line parameter -t with a dedicated console, indeed '3rd_directory' gets added but no former tabs are restored.

expected behavior

if no instance of Console.exe is running the two former opened tabs are restored from saved workspace and '3rd_directory' is added as a new tab - this is of course with single instance of Console.exe.

is this the intended way of using these options together and is there a way to overcome this? many thanks in advance.

DiagnoseReport.txt

@cbucher
Copy link
Owner

cbucher commented Aug 27, 2018

-d specifies the startup directory (of the current startup tab definition)
I think command line syntax doesn't clearly separate tab definitions.

If ConsoleZ command line contains startup tabs, then you want to start a new workspace (saved workspace is not loaded).

Console.exe -d '3rd_directory'
should start ConsoleZ with only a default tab with startup directory '3rd_directory'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants