Skip to content
/ yae Public

Yet another editor. Console-based text editor tool for .NET Core CLI.

License

Notifications You must be signed in to change notification settings

daredever/yae

Repository files navigation

yae - yet another editor

Console-based text editor tool for .NET Core CLI.

Nuget packages:

  • Yae.Core - Console-based text editor
    NuGet Version

  • Yae.Tool - Console-based text editor tool for .NET Core CLI
    NuGet Version

  • Yae.Templates - Templates to use when creating *.cs files
    NuGet Version

Yae uses .NET Core CLI toolchain for installing.

Install

 dotnet tool install -g Yae.Tool
 dotnet new -i Yae.Templates

Uninstall

dotnet tool uninstall -g Yae.Tool
dotnet new -u Yae.Templates

Run tool

Options:

  • get help : --help
  • get version : --version
  • open file : -f | --file <FILE>
  • set editor lines per page count : -n | --count <COUNT>

Examples:

yae -h
yae -v
yae -f file.txt
yae -f C:\file.txt
yae -n 30 -f C:\file.txt

Use templates

There are 4 file templates:

  • Class
  • Enum
  • Interface
  • Struct

All of them create files with a base type content in the current directory.

Options:

  • set namespace (default current directory) : -n <NAMESPACE>
  • set output (default current directory) : -o <OUTPUT>
  • set type name : -t <TYPE_NAME>

Examples:

dotnet new class -t Car
dotnet new enum -t Color
dotnet new interface -t IPerson
dotnet new struct -t Point

Demo

Try it out:

mkdir YaeDemo
cd YaeDemo
dotnet new console
dotnet new class -t MyClass
yae -f MyClass.cs

Editor window:

editor