lite-xl/data/core/commands
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
..
command.lua Initial commit 2019-12-28 11:17:56 +00:00
core.lua Create new document if file doesn't exist 2021-05-10 16:44:27 +02:00
doc.lua Create new document if file doesn't exist 2021-05-10 16:44:27 +02:00
drawwhitespace.lua Implement unicode character replacements 2021-04-01 18:05:59 +02:00
files.lua Add command to create a directory in a new category "files" 2020-12-30 11:52:26 +01:00
findreplace.lua Added resetting of selection on intermediate find-text failure 2020-06-04 14:04:46 +01:00
root.lua Fix error introduced with commit c0ad86d 2021-03-18 15:46:44 +01:00