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

Windows Terminal Support #2877

Closed
wants to merge 70 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
274cce1
optimize for speed
daxgames Feb 11, 2023
56f45a8
add debugging of path adds
daxgames Feb 12, 2023
7e50f50
add vendor/user_init.optional.cmd
daxgames Feb 12, 2023
727a99b
shared or user user_init.cmd
daxgames Feb 12, 2023
02154a8
Update to only collext cmder env vars
daxgames Feb 12, 2023
1e623ec
auto generate cmd user_init.cmd
daxgames Feb 12, 2023
3a2e747
add cleanup of unused env vars
daxgames Feb 18, 2023
9cbc184
cleanup
daxgames Feb 18, 2023
615ba5f
Delete user_init.optional.cmd
daxgames Feb 18, 2023
f1e2fb5
prevent timer results every time.
daxgames Feb 27, 2023
e0b6943
add bypass
daxgames Mar 5, 2023
c4d9365
x
daxgames Mar 11, 2023
f08ad62
Merge branch 'master' of https://github.com/cmderdev/cmder into more_…
daxgames Mar 11, 2023
42568b7
Document '--' command line argument
daxgames Mar 12, 2023
b46f726
Merge branch 'master' into more_speed_2
May 8, 2023
9a851da
Merge remote-tracking branch 'upstream/master' into more_speed_2
May 18, 2023
b2135cd
don't error if vim slias exists
May 30, 2023
dac3090
Merge remote-tracking branch 'origin/more_speed_2' into more_speed_2
May 30, 2023
7b55dab
Merge remote-tracking branch 'upstream/master' into more_speed_2
May 30, 2023
86b9fb2
Add ability to launch git bash from external Installed git whwen usin…
Jun 5, 2023
ea0a9bb
Merge branch 'master' into more_speed_2
Jun 5, 2023
4bf6598
fix multiuser user_init.cmd creation
daxgames Jul 3, 2023
294f85e
fixes
daxgames Jul 3, 2023
3ca0379
sync
daxgames Jul 3, 2023
cd92c9f
cleanup
daxgames Jul 3, 2023
5311b25
Merge remote-tracking branch 'upstream/master' into more_speed_2
daxgames Jul 4, 2023
3ced7a2
'.gitignore
daxgames Jul 4, 2023
4129084
add comment to clink.lua explaining /c [folderpath]
daxgames Jul 8, 2023
b47cf43
Merge pull request #14 from cmderdev/master
daxgames Jul 25, 2023
9b446b3
Merge remote-tracking branch 'upstream/master' into more_speed_2
daxgames Jul 28, 2023
52e1a02
Merge remote-tracking branch 'upstream/master' into more_speed_2
daxgames Aug 11, 2023
bd857ba
Merge remote-tracking branch 'origin/more_speed_2' into more_speed_2
daxgames Aug 11, 2023
6b330b8
allow launching windows terminal w/cmder from cmder
daxgames Aug 11, 2023
e52fa81
Merge branch 'more_speed_2' of https://github.com/daxgames/cmder into…
daxgames Aug 11, 2023
94ea2da
make it work with windows terminal
daxgames Sep 22, 2023
7c04ee9
fixes
daxgames Sep 22, 2023
968beb8
Add initial Windows Terminal support
daxgames Sep 25, 2023
d75ba7b
Merge branch 'master' of https://github.com/cmderdev/cmder into windo…
daxgames Sep 25, 2023
74c183c
Add initial Windows Terminal support
daxgames Sep 25, 2023
2728f36
fix
daxgames Sep 25, 2023
19fe75c
Merge branch 'master' into windows_terminal
daxgames Sep 25, 2023
7db6297
fix
daxgames Sep 25, 2023
759d0ed
fix
daxgames Sep 25, 2023
63bab36
fix
daxgames Sep 25, 2023
7fa041d
fix
daxgames Sep 25, 2023
7d3e691
add start_git_bash.cmd
daxgames Sep 25, 2023
8bb2c5d
Update Cmder command line help
daxgames Sep 25, 2023
e24f653
add pack code for windows terminal releases
daxgames Sep 25, 2023
cb54352
Merge branch 'master' of https://github.com/cmderdev/cmder into windo…
daxgames Sep 25, 2023
ab10e83
sync and add windows terminal to sources.
daxgames Sep 25, 2023
ad21915
Add pack code for windows terminal
daxgames Sep 25, 2023
3671a6e
pack and build all
daxgames Sep 25, 2023
3cc22ca
pack and build all
daxgames Sep 25, 2023
58db4e3
pack and build all
daxgames Sep 25, 2023
01da2fe
turn off /t in windows terminal defaults
daxgames Sep 25, 2023
ddad83c
PR Review requested changes
daxgames Sep 26, 2023
43a5e7e
PR Review requested changes
daxgames Sep 26, 2023
9c834b6
Merge branch 'master' into development
DRSDavidSoft Nov 9, 2023
678b482
Merge branch 'master' into windows_terminal
daxgames Nov 11, 2023
2ab6bcd
cleanup
daxgames Nov 11, 2023
01c41a9
Merge branch 'master' into more_speed_2
daxgames Nov 11, 2023
f69e622
Merge branch 'master' into development
daxgames Nov 11, 2023
86091b7
properly set CMDER_ROOT for windows terminal bash
daxgames Nov 12, 2023
9a40419
Merge pull request #2896 from daxgames/more_speed_2
DRSDavidSoft Nov 21, 2023
8025b5b
Merge branch 'development' into windows_terminal
DRSDavidSoft Nov 21, 2023
f0c18f1
Update Cmder.bat
daxgames Nov 23, 2023
08fd69b
PR - Requested Changes
daxgames Nov 23, 2023
26e684f
PR - Requested Changes
daxgames Nov 23, 2023
30718ab
Merge remote-tracking branch 'origin/windows_terminal' into windows_t…
daxgames Nov 23, 2023
c85d9d6
Add Monokai, Default to One Half Dark
daxgames Jan 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,31 @@ jobs:
- name: Build Cmder Launcher
shell: pwsh
working-directory: scripts
run: .\build.ps1 -Compile -verbose
run: .\build.ps1 -Compile -verbose -terminal all

- name: Pack the built files
shell: pwsh
working-directory: scripts
run: .\pack.ps1 -verbose
run: .\pack.ps1 -verbose -terminal all

- name: Upload artifact (cmder_wt.zip)
uses: actions/upload-artifact@v3
with:
path: build/cmder_wt.zip
name: cmder_wt.zip
if-no-files-found: error

- name: Upload artifact (cmder_wt.7z)
uses: actions/upload-artifact@v3
with:
path: build/cmder_wt.7z
name: cmder_wt.7z

- name: Upload artifact (cmder_wt_mini.zip)
uses: actions/upload-artifact@v3
with:
path: build/cmder_wt_mini.zip
name: cmder_wt_mini.zip

- name: Upload artifact (cmder.zip)
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -82,8 +101,11 @@ jobs:
with:
files: |
build/cmder.zip
build/cmder_wt.zip
build/cmder.7z
build/cmder_wt.7z
build/cmder_mini.zip
build/cmder_wt_mini.zip
build/hashes.txt
draft: true
generate_release_notes: true
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,10 @@ launcher/src/version.rc2
.vs/*
.vscode
.idea
.vagrant/
scripts/packer/iso/*.iso
!scripts/packer/floppy/*.exe
scripts/packer/packer_cache
scripts/packer/output-*
*.box

74 changes: 60 additions & 14 deletions Cmder.bat
Original file line number Diff line number Diff line change
@@ -1,20 +1,66 @@
@echo off

SET CMDER_ROOT=%~dp0

:: Remove Trailing '\'
@if "%CMDER_ROOT:~-1%" == "\" SET CMDER_ROOT=%CMDER_ROOT:~0,-1%

if not exist "%CMDER_ROOT%\config\user_ConEmu.xml" (
if not exist "%CMDER_ROOT%\config" mkdir "%CMDER_ROOT%\config" 2>nul
copy "%CMDER_ROOT%\vendor\ConEmu.xml.default" "%CMDER_ROOT%\config\user_ConEmu.xml" 1>nul
if %errorlevel% neq 0 (
echo ERROR: CMDER Initialization has Failed
exit /b 1
)
set CMDER_TERMINAL=conemu
if exist "%CMDER_ROOT%\vendor\windows-terminal\windowsterminal.exe" (
SET CMDER_TERMINAL=windows-terminal
)

if exist "%~1" (
start %~dp0/vendor/conemu-maximus5/ConEmu.exe /Icon "%CMDER_ROOT%\icons\cmder.ico" /Title Cmder /LoadCfgFile "%~1"
) else (
start %~dp0/vendor/conemu-maximus5/ConEmu.exe /Icon "%CMDER_ROOT%\icons\cmder.ico" /Title Cmder /LoadCfgFile "%CMDER_ROOT%\config\user_ConEmu.xml"
if NOT "%~1" == "" (
SET CMDER_TERMINAL=%~1
shift
)

:: Remove Trailing '\'
if "%CMDER_ROOT:~-1%" == "\" SET CMDER_ROOT=%CMDER_ROOT:~0,-1%

if not exist "%CMDER_ROOT%\config" md "%CMDER_ROOT%\config" 2>nul

call :%CMDER_TERMINAL%
exit /b

:conemu
if not exist "%CMDER_ROOT%\config\user_ConEmu.xml" (
copy "%CMDER_ROOT%\vendor\ConEmu.xml.default" "%CMDER_ROOT%\config\user_ConEmu.xml" 1>nul
if %errorlevel% neq 0 (
echo ERROR: CMDER Initialization has Failed
exit /b 1
)
)

if exist "%~1" (
start %cmder_root%\vendor\conemu-maximus5\ConEmu.exe /Icon "%CMDER_ROOT%\icons\cmder.ico" /Title Cmder /LoadCfgFile "%~1"
) else (
start %cmder_root%\vendor\conemu-maximus5\ConEmu.exe /Icon "%CMDER_ROOT%\icons\cmder.ico" /Title Cmder /LoadCfgFile "%CMDER_ROOT%\config\user_ConEmu.xml"
)
exit /b

:windows-terminal
if not exist "%CMDER_ROOT%\vendor\windows-terminal\settings" md "%CMDER_ROOT%\vendor\windows-terminal\settings" 2>nul
if not exist "%CMDER_ROOT%\vendor\windows-terminal\.portable" echo "This makes this installation of Windows Terminal portable" >"%CMDER_ROOT%\vendor\windows-terminal\.portable" 2>nul

if exist "%CMDER_ROOT%\config\user_windows_terminal_settings.json" (
if not exist "%CMDER_ROOT%\vendor\windows-terminal\settings\settings.json" (
echo "Copying user Windows Terminal settings to '%CMDER_ROOT%\vendor\windows-terminal\settings\settings.json'..."
copy "%CMDER_ROOT%\config\user_windows_terminal_settings.json" "%CMDER_ROOT%\vendor\windows-terminal\settings\settings.json" 1>nul
)
) else if not exist "%CMDER_ROOT%\config\user_windows_terminal_settings.json" (
if not exist "%CMDER_ROOT%\config" mkdir "%CMDER_ROOT%\config" 2>nul
echo "Copying default Windows Terminal settings to '%CMDER_ROOT%\config'..."
copy "%CMDER_ROOT%\vendor\windows_terminal_default_settings.json" "%CMDER_ROOT%\config\user_windows_terminal_settings.json" 1>nul
echo "Copying default Windows Terminal settings to '%CMDER_ROOT%\vendor\windows-terminal\settings\settings.json'..."
copy "%CMDER_ROOT%\vendor\windows_terminal_default_settings.json" "%CMDER_ROOT%\vendor\windows-terminal\settings\settings.json" 1>nul

if %errorlevel% neq 0 (
echo ERROR: CMDER Initialization has Failed
exit /b 1
)
) else if exist "%cmder_root%\vendor\windows-terminal\settings\settings.json" (
copy "%cmder_root%\vendor\windows-terminal\settings\settings.json" "%CMDER_ROOT%\config\user_windows_terminal_settings.json"
)

start %cmder_root%\vendor\windows-terminal\windowsterminal.exe
exit /b


2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ The Cmder's user interface is also designed to be more eye pleasing, and you can
| `/SINGLE` | Start Cmder in single mode. |
| `/START [start_path]` | Folder path to start in. |
| `/TASK [task_name]` | Task to start after launch. |
| `/X [ConEmu extras pars]` | Forwards parameters to ConEmu |
| `-- [ConEmu extras pars]` | Forwards ALL remaining parameters to ConEmu. |

## Context Menu Integration

Expand Down
Loading
Loading