Table of Contents
favorite configuration
disable warning when pasting multiple lines
Copy pasting multiple lines in vim gives the following warning
Warning! Pasting multi-line text involves sending <Enter> keypresses to console! Continue?
Disable it by doing
Settings -> Keys & Macro -> Paste -> -> Confirm critical actions -> Multi-line paste: avoid unexpected command execution by <Enter> keypress -> uncheck
copy paste multiple lines
Settings -> Keys & Macro -> Paste -> -> Pasting text behaviour (with exception of Far Manager) -> Paste mode #2 (Shift+Insert) -> Multi lines
solves | New lines lost when pasting into ipython
check for new stable version on startup
Settings -> General -> Update -> Update settings -> Do automatic check on -> check Startup box -> uncheck Hourly box -> Preferred release type -> select Stable radio button
dummy
tasks
tags | conemu star an ssh session, specify startup directory for ssh
To start a git bash terminal
> -cur_console:d:C:\Users\raju "%ProgramFiles%\Git\git-cmd.exe" --no-cd --command=usr/bin/bash.exe -l -i
To start two git bash terminals in two directories
> -cur_console:d:C:\Users\raju\dir1 "%ProgramFiles%\Git\git-cmd.exe" --no-cd --command=usr/bin/bash.exe -l -i -cur_console:d:C:\Users\raju\dir2 "%ProgramFiles%\Git\git-cmd.exe" --no-cd --command=usr/bin/bash.exe -l -i
To start an ssh session
> -cur_console:d:C:\Users\raju "%ProgramFiles%\Git\git-cmd.exe" --no-cd --command=usr/bin/ssh.exe username@server
To start an ssh session and go to a directory
> -cur_console:d:C:\Users\raju "%ProgramFiles%\Git\git-cmd.exe" --no-cd --command=usr/bin/ssh.exe -t username@server "cd ~/dir1 && bash"
To name the tabs, add something like -cur_console:n:t:blah
, -cur_console:n:t:“blah blah”
. For example
> -cur_console:d:C:\Users\raju "%ProgramFiles%\Git\git-cmd.exe" --no-cd --command=usr/bin/ssh.exe -t username@server "cd ~/dir1 && bash" -cur_console:n:t:"Tab name"
See also:- https://github.com/tovletoglou/comenu-pane-templates → search for “Task examples”
run task from command line
/C/Program\ Files\ \(x86\)/GitHub/ConEmuPack/ConEmu.exe -run {taskname}
grouping windows for alt tab
tags | conemu alt tab, group tabs, club windows
If there are N conemu windows with M tabs in each (on average), the following setting will let you cycle through N icons instead of N*M icons.
Settings -> General -> Task bar -> Taskbar buttons -> Active console only (ConEmu window)
Sample use case 1:- I usually open a separate conemu window per “task” and multiple tabs within each window for a “subtask”.
Sample use case 2:- Say we are working on two machines (ex:- dev and uat). We can open two conemu windows for each of them. On each machine we can have three tabs pointing to three different directories, for example source code, input, and output. With the default settings, clicking on the conemu icon in the taskbar or alt+tab will show 6 conemu icons. But with the above setting, we will only see 2 icons.
See also:- https://github.com/cmderdev/cmder/issues/758
launch conemu windows
$ cat launch_windows.bat REM Sample script to launch different conemu task windows. REM You can either double click this file in file explorer or create a shortcut REM to it on desktop and double click there. REM start /B is like Linux's & (which backgrounds the jobs). REM If you do not use it, then {task2} will be started only after all the REM windows from {task1} are exited. start /B cmd.exe /c ""C:\Program Files (x86)\GitHub\ConEmuPack\ConEmu.exe" -run {task1}" start /B cmd.exe /c ""C:\Program Files (x86)\GitHub\ConEmuPack\ConEmu.exe" -run {task2}" start /B cmd.exe /c ""C:\Program Files (x86)\GitHub\ConEmuPack\ConEmu.exe" -run {task3}" cd /D "%~dp0" start /B cmd.exe /c ""C:\Program Files (x86)\GitHub\ConEmuPack\ConEmu.exe" -Title notes -run @%cd%\task_notes.txt" REM The launching shell remains open and has to be manually closed. Afterwards, REM see if there is a way to close it automatically.
where task1, task2, task3 are the conemu tasks specified on the “Tasks” page of “Settings” dialog.
The task_notes.txt is a taskfile stored in the same directory as that of the batch script. It contains a list of tabs to be launched in a conemu window.
$ cat task_notes.txt > -cur_console:d:C:\Users\raju\ideas "%ProgramFiles%\Git\git-cmd.exe" --no-cd --command=usr/bin/bash.exe -l -i -cur_console:n:t:"ideas" > -cur_console:d:C:\Users\raju\thoughts "%ProgramFiles%\Git\git-cmd.exe" --no-cd --command=usr/bin/bash.exe -l -i -cur_console:n:t:"thoughts"
Ref:- https://conemu.github.io/en/ConEmuArgs.html - explains about the -run argument.
useful links
- https://github.com/Maximus5/ConEmu/releases - release history
- Useful for “how many conemu releases were there between 210422 and 210627?”
disable new preview version available popup
Settings -> General -> Update -> Update settings -> Do automatic check on -> uncheck Startup and Hourly boxes