lite-xl/data/core
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
..
commands Create new document if file doesn't exist 2021-05-10 16:44:27 +02:00
doc Create new document if file doesn't exist 2021-05-10 16:44:27 +02:00
command.lua Implement unicode character replacements 2021-04-01 18:05:59 +02:00
commandview.lua Do not close command view on open-file is file is invalid or it is a directory 2021-05-05 08:04:51 +02:00
common.lua Create new document if file doesn't exist 2021-05-10 16:44:27 +02:00
config.lua Disable borderless window by default 2021-04-21 09:05:15 +02:00
docview.lua Support for changing fonts per syntax group (#178) 2021-05-05 23:08:10 +02:00
init.lua Create new document if file doesn't exist 2021-05-10 16:44:27 +02:00
keymap-macos.lua Fix keymap binding on macos 2021-04-21 01:42:56 -07:00
keymap.lua Fix keymap binding on macos 2021-04-21 01:42:56 -07:00
logview.lua
modkeys-generic.lua Add macos keybindings 2021-04-21 09:48:30 +02:00
modkeys-macos.lua Add macos keybindings 2021-04-21 09:48:30 +02:00
nagview.lua Implement multi-lines for NagView 2021-04-07 23:46:45 +02:00
object.lua
rootview.lua Fix resizing problem for nested nodes 2021-05-06 15:35:40 +02:00
start.lua Prepare release 1.16.9 2021-05-06 17:08:56 +02:00
statusview.lua
strict.lua
style.lua Support for changing fonts per syntax group (#178) 2021-05-05 23:08:10 +02:00
syntax.lua
titleview.lua Make non-borderless mode work 2021-04-12 19:05:30 +02:00
tokenizer.lua Nested Syntax Highlighting (#160) 2021-05-01 11:45:30 +02:00
view.lua