Repository navigation
xTerminal 3.1.0.0
xTerminal v3.1.0.0 - Release notes
xTerminal 3.1.0.0 adds command parameter completion, C# project and solution support in the built-in editor, and more reliable file and directory completion after command options.
Command completion
- Type a command and part of a supported parameter, then press Tab to complete it. For example,
hash -sha2completes tohash -sha256, andwget --ncompletes towget --noping. - Press Tab repeatedly to cycle through matching parameters and wrap back to the first match. For example,
ls -ccycles through-c,-cf,-cd, and-ct. - Parameter completion replaces only the final argument, preserving earlier arguments, spacing, and the prompt. Editing the input starts a fresh set of matches.
- Expanded
lsfile-path completion to suggest both files and directories.
C# projects and solutions in xte
- Open
.csproj,.sln, and.slnxfiles directly withxte. The editor opens a source file, preferringProgram.cs, and starts its file explorer in the project or solution directory. - Opening a
.csfile automatically discovers its owning project, including linked source files found through a nearby solution. - C# completion and diagnostics now use other source files in the project, project references, implicit/global usings, compile exclusions, and restored NuGet compile assemblies. Analysis includes unsaved changes in the active file.
- Use
:e <path>to switch to another file, project, or solution. Use:projector:project reloadto show the owning project and refresh its sources and references. New completion requests also pick up external source changes after a short cache interval. - Use
xte -raw <file>or:e -raw <path>to edit a project or solution file directly as plain text.:project editopens the explicitly selected solution or the owning project for editing; save with:w. - Added plain-text syntax mode through
-syntax textand:syntax text, with language diagnostics and completion disabled.
Examples:
xte MySolution.sln
xte MySolution.slnx
xte src/MyApp/MyApp.csproj
xte -raw src/MyApp/MyApp.csproj
Fixes and improvements
- Fixed repeated Tab presses losing the original parameter matches or changing earlier input.
- Unrecognized parameters beginning with
-leave the input unchanged instead of triggering file completion. - Fixed file and directory completion after parameters, such as
xte -raw someFi,cat -o output.txt someFi, andls -d someDir. Press Tab twice to begin path completion. - Path completion preserves earlier arguments and spacing, handles quoted paths with spaces, and supports nested and absolute paths. It also works through aliases for supported commands.
- Added file and directory suggestions for
xte, including after-raw. - Updated command help and parameter suggestions for the revised
chain,env, andnotesyntax.
Upgrade notes
The chain, env, and note commands now require a leading dash on their subcommands. Update saved scripts and aliases that use the old forms:
| Previous syntax | New syntax |
|---|---|
chain create, chain run, chain add |
chain -create, chain -run, chain -add |
chain show, chain list, chain del |
chain -show, chain -list, chain -del |
env get, env set, env del |
env -get, env -set, env -del |
env addval, env delval |
env -addval, env -delval |
env load, env export |
env -load, env -export |
note add, note list, note del, note clear |
note -add, note -list, note -del, note -clear |
The env -t <scope> option is unchanged; for example, use env -t user -get PATH.
C# project support
Project discovery supports ordinary SDK-style and legacy project items using Debug/AnyCPU and the first target framework. It does not execute custom MSBuild imports, targets, or source generators.
Run dotnet restore for project packages, then use :project in the editor to refresh references. Opening a project does not build it or restore packages automatically. The editor's :nuget commands manage source-file package directives rather than .csproj PackageReference entries. The xte -new option creates source files; open existing projects and solutions without it.
What's Changed
Full Changelog: v3.0.9.1...v3.1.0.0