lite-xl/data/core
Francesco Abbate 527b11029e 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-06-04 16:03:46 +02:00
..
commands Create new document if file doesn't exist 2021-06-04 16:03:46 +02:00
doc Create new document if file doesn't exist 2021-06-04 16:03:46 +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-06-04 16:03:46 +02:00
config.lua Improve user feedback for big directories (#223) 2021-05-27 08:28:58 +02:00
docview.lua support for font changing in the syntax highlighter 2021-05-26 19:16:56 +02:00
init.lua Create new document if file doesn't exist 2021-06-04 16:03:46 +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 Added multiline support for LogView's messages 2020-05-06 00:06:27 +01:00
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 Initial commit 2019-12-28 11:17:56 +00:00
regex.lua Add PCRE to support regular expressions 2021-06-02 21:27:00 +02:00
rootview.lua Scale fonts context menu (#246) 2021-06-03 22:49:37 +02:00
start.lua Update changelog and release number 2021-05-27 13:46:51 +02:00
statusview.lua Do not assume doc.indent_info is present 2021-03-05 23:47:36 +01:00
strict.lua Initial commit 2019-12-28 11:17:56 +00:00
style.lua Use FiraSans regular for UI 2021-05-27 13:49:33 +02:00
syntax.lua Added file-header pattern support to `syntax` 2020-06-08 16:11:22 +01:00
titleview.lua Make non-borderless mode work 2021-04-12 19:05:30 +02:00
tokenizer.lua Add PCRE to support regular expressions 2021-06-02 21:27:00 +02:00
view.lua Minor simplification of animation rate adjustment 2021-03-20 17:00:43 +01:00