User Tools

Site Tools


conemu_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
conemu_notes [2021/01/24 05:19] – [grouping windows for alt tab] rajuconemu_notes [2023/07/30 00:09] (current) – [copy paste multiple lines] admin
Line 1: Line 1:
 +===== favorite configuration =====
 +==== disable warning when pasting multiple lines ====
 +Copy pasting multiple lines in vim gives the following warning
 +<code>
 +Warning!
 +
 +Pasting multi-line text involves
 +sending <Enter> keypresses to console!
 +
 +Continue?
 +</code>
 +Disable it by doing
 +<code>
 +Settings -> Keys & Macro -> Paste ->
 +-> Confirm critical actions
 +-> Multi-line paste: avoid unexpected command execution by <Enter> keypress
 +-> uncheck
 +</code>
 +
 +==== copy paste multiple lines ====
 +<code>
 +Settings -> Keys & Macro -> Paste ->
 +-> Pasting text behaviour (with exception of Far Manager)
 +-> Paste mode #2 (Shift+Insert)
 +-> Multi lines
 +</code>
 +
 +solves | New lines lost when pasting into ipython
 +
 +Ref:- https://github.com/Maximus5/ConEmu/issues/1809
 +
 +==== check for new stable version on startup ====
 +<code>
 +Settings -> General -> Update
 +-> Update settings
 +-> Do automatic check on
 +  -> check Startup box
 +  -> uncheck Hourly box
 +-> Preferred release type
 +  -> select Stable radio button
 +</code>
 +===== dummy =====
 ==== tasks ==== ==== tasks ====
 tags | conemu star an ssh session, specify startup directory for ssh tags | conemu star an ssh session, specify startup directory for ssh
Line 56: Line 98:
 <code> <code>
 $ cat launch_windows.bat $ cat launch_windows.bat
-REM Script to launch different conemu task windows by double clicking in file +REM Sample script to launch different conemu task windows
-REM explorer.+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 & If you do not use it, then {uat} will only be +REM start /B is like Linux's & (which backgrounds the jobs). 
-REM started when all the windows from {PC} are exited. +REM If you do not use it, then {task2} will be started only after all the 
-start /B cmd.exe /c ""C:\Program Files (x86)\GitHub\ConEmuPack\ConEmu.exe" -run {PC}" +REM windows from {task1} are exited. 
-start /B cmd.exe /c ""C:\Program Files (x86)\GitHub\ConEmuPack\ConEmu.exe" -run {uat}" +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 {notes}"+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 The launching shell remains open and has to be manually closed. Afterwards,
 REM see if there is a way to close it automatically. REM see if there is a way to close it automatically.
 +</code>
 +
 +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.
 <code> <code>
 +$ 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"
 +</code>
 +
 +Ref:- https://conemu.github.io/en/ConEmuArgs.html - explains about the -run argument.
 +
 +==== useful links ====
 +  * https://conemu.github.io/en/KeyboardShortcuts.html
 +  * 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 ====
 +<code>
 +Settings -> General -> Update
 +-> Update settings
 +-> Do automatic check on
 +-> uncheck Startup and Hourly boxes
 +</code>
  
-Here PC, uat, notes are conemu tasks that launch a conemu window with multiple tabs of their own. 
conemu_notes.1611465567.txt.gz · Last modified: 2021/01/24 05:19 by raju