Files Editor Usage¶
The Files Editor fills the center of the Administration application. Several files can be opened at the same time. Each file is then opened in a tab.
Select files editor by clicking on the tab headers.
By default, the editor selection is linked to the files tree selection: if you select a file editor, it is automatically selected in the files tree (not the other way around). Disable this behavior by clicking on the (Un)Link selection icon at the top of the Files Manager.
Close file editors by clicking on the icon at the right of the tab header.
You can also close all tabs, or other tabs than the current one, by right-clicking on the File Editor header.
It displays the following contextual menu:
Edit File Content¶
The File Editor tab's title is in Italic when the content is being edited (a
* character is also appended at the end of the file name).
The title style comes back to normal when the file is saved, either automatically after a few seconds of inactivity, or manually by pressing CTRL + S.
Several Kraken users can edit files at the same time, but there is no concurrency management: if someone else as pending modifications and you save or delete a file, he might loose them.
Expand the Editor¶
Expand a file editor by double clicking on its tab header:
Ths minimizes all other application tabs (the Files Manager, notifications panel, etc).
Keyboard Mapping (Shortcuts)¶
In addition to the CTRL + S shortcut used to save the file content, the following mappings are supported.
||Copy the selected text|
||Cut the selected text|
||Paste the previously cut/copied text|
||(Un)Comment the current line|
||Delete the current line|
The default text file editor is a code editor that uses Ace.
Some file types have custom editors:
.markdownfiles are parsed and displayed as HTML by default. A button on the top right corner lets you switch between Edit and View modes,
docker-compose.ymlfiles come with special buttons to execute commands,
- Load test debug files display the HTTP request sent and the corresponding response,
- Gatling .scala scripts display buttons to run or debug load tests.