lite-xl/data/core/doc
Francesco Abbate 708c2983ef Create new document if file doesn't exist
If a non-existing file is specified with the command "core:open-file"
a new document is opened with the given filename provided the directory
already exists.

The flag new_file is set to true in the Doc instance.

The file will be actually created only when the "save" command is used.

The document will be marked with the "*" event when no changes are done
to mean that it is a new file and is not yet saved.

The function common.normalize_path now process the .. and . in the
filename. Before was not needed because system.absolute_path already
get rid of them but now we need to have the absolute path of files
that not yet exists so we cannot use system.absolute_path.
2021-05-10 16:44:27 +02:00
..
highlighter.lua Fixed bug in Highlighter.invalidate() when setting first_invalid_line 2020-06-02 22:50:03 +01:00
init.lua Create new document if file doesn't exist 2021-05-10 16:44:27 +02:00
search.lua Initial commit 2019-12-28 11:17:56 +00:00
translate.lua Changed block movement to mimic word movement 2020-05-28 13:55:25 +01:00