Skip to content

xTerminal 3.1.0.0

Choose a tag to compare

@0x78654C 0x78654C released this 12 Oct 03:23
· 16 commits to main since this release
94240de

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 -sha2 completes to hash -sha256, and wget --n completes to wget --noping.
  • Press Tab repeatedly to cycle through matching parameters and wrap back to the first match. For example, ls -c cycles 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 ls file-path completion to suggest both files and directories.

C# projects and solutions in xte

  • Open .csproj, .sln, and .slnx files directly with xte. The editor opens a source file, preferring Program.cs, and starts its file explorer in the project or solution directory.
  • Opening a .cs file 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 :project or :project reload to 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 edit opens the explicitly selected solution or the owning project for editing; save with :w.
  • Added plain-text syntax mode through -syntax text and :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, and ls -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, and note syntax.

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