dorukkilitcioglu / persistd

Persist your virtual desktop over multiple reboots
GNU Affero General Public License v3.0
0 stars 0 forks source link

Add support for ConEmu on Windows #6

Closed dorukkilitcioglu closed 6 years ago

dorukkilitcioglu commented 6 years ago

ConEmu is my Terminal of choice when working with Windows. There needs to be support for the following actions:

I don't necessarily know how secure it is to save your whole history.

dorukkilitcioglu commented 6 years ago

Ideas

Open a new window with tabs

Use a startup command file. For example, create startup.txt with the contents:

>E:\Source\FARUnicode\trunk\unicode_far\Debug.32.vc\far.exe
*/BufferHeight 400 cmd
/BufferHeight 1000 powershell

and run ConEmu using

conemu.exe /cmd @startfile.txt

(From the FAQ) Each line in the file corresponds to a launched command. You may specify the console buffer height using the /BufferHeight parameter. If the line starts with ">", this tab will be active on startup. If the line starts with "*", this command will be ran with administrator privileges.

Get current state of each tab

I feel like the only way to get this is to run some commands on each shell, which is probably impossible. I don't necessarily feel like this is of utmost importance. You can always specify a bunch of actions you want to do when you open a shell in the startup command file, or even just make a specific command for that in ConEmu.

Close the window

This is straightforward, because ConEmu is nice and creates a new process for each window.

dorukkilitcioglu commented 6 years ago

As mentioned above, I won't be implementing the Get current state of each tab part, since a) I haven't found any good way of doing it, and b) you can have setup instructions per tab in your startfile anyway.