CLI configuration
The configuration of Telosys-CLI is defined in the file telosys-cli.cfg. This file is located in the directory where Telosys-CLI has been installed. It can be edited with any text editor.
For now, this file simply allows you to define a specific external editor that will be launched for all "edit" commands (eg "eb", "ecfg", etc.)
Telosys-CLI comes with its own text editor, but this editor is quite basic and requires a graphical interface (eg GNOME or KDE for Linux). So you might prefer to set another text editor.
Telosys allows you to define a command to launch your favorite text editor :     "Visual Source Code", "Atom", "Sublime Text", "Notepad++", etc

Text editor configuration

Use the EditorCommand propterty to define the command that will be launched by Telosys-CLI.
The value is the OS command to execute to launch the editor. If the executable file is accessible via the "PATH", you can use it as a simple command (without full path). Otherwise, you need to find where the editor is installed and use the full path.
The variable $FILE is used to represent the file to edit.

Examples

Visual Studio Code ( executable file is "code" )
1
EditorCommand = code $FILE
2
EditorCommand = D:/Tools/Microsoft VS Code/code.exe $FILE
Copied!
Atom editor ( executable file is "atom" )
1
EditorCommand = atom $FILE
2
EditorCommand = D:/Tools/atom/atom.exe $FILE
Copied!
Sublime Text ( executable file is "subl" )
1
EditorCommand = subl $FILE
2
EditorCommand = D:/Tools/SublimeText/subl.exe $FILE
Copied!
Notepad++ ( executable file is "notepad++" )
1
EditorCommand = notepad++ $FILE
2
EditorCommand = C:/Program Files (x86)/Notepad++/notepad++.exe $FILE
Copied!
Linux Mint editors
1
EditorCommand = /usr/bin/xed $FILE
2
EditorCommand = /usr/bin/gnome-terminal -e "vi $FILE"
3
EditorCommand = /usr/bin/gnome-terminal -e "nano $FILE"
Copied!
Linux Lubuntu editors
1
EditorCommand = /usr/bin/leafpad $FILE &
2
EditorCommand = /usr/bin/lxterminal -e "vi $FILE"
3
EditorCommand = /usr/bin/lxterminal -e "nano $FILE"
Copied!
Last modified 8mo ago