- In WSL, the following will open the current directory in the right-pane of an existing TC, or open a new one and update the right-pane accordingly.
Caveat: this command only works in "Windows" folders, but not "Linux" folder created within WSL. More conditions are necessary to make a full-scale launcher that opens up PWD in TC for all folders accessible through WSL.
Code: Select all
"$(wslpath "c:\Program Files\totalcmd\TOTALCMD.EXE")" -c /O /R=$(wslpath -w "$PWD")
- In Gvim on Windows, the following mapping shall enable F6 to launch current directory in TC in the right-pane.
Caveat: more conditions can be added so that things work universally, say, for vims launched within WSL as well. This is for future work.
Code: Select all
nnoremap <F6> :!start "c:\Program Files\totalcmd\TOTALCMD.EXE" /O /R=%:p:h<CR>