aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_vimdoc.py
diff options
context:
space:
mode:
authorGregory Anders <greg@gpanders.com>2022-11-05 13:37:05 -0600
committerGregory Anders <greg@gpanders.com>2022-11-17 08:23:41 -0700
commitf1922e78a1df1b1d32779769432fb5586edf5fbb (patch)
treec80eece970f5b42cf04ad2161a655f33638ec7ce /scripts/gen_vimdoc.py
parent9736605672e8648bbe8739a6fdd1c315183bce40 (diff)
downloadrneovim-f1922e78a1df1b1d32779769432fb5586edf5fbb.tar.gz
rneovim-f1922e78a1df1b1d32779769432fb5586edf5fbb.tar.bz2
rneovim-f1922e78a1df1b1d32779769432fb5586edf5fbb.zip
feat: add vim.secure.read()
This function accepts a path to a file and prompts the user if the file is trusted. If the user confirms that the file is trusted, the contents of the file are returned. The user's decision is stored in a trust database at $XDG_STATE_HOME/nvim/trust. When this function is invoked with a path that is already marked as trusted in the trust database, the user is not prompted for a response.
Diffstat (limited to 'scripts/gen_vimdoc.py')
-rwxr-xr-xscripts/gen_vimdoc.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/gen_vimdoc.py b/scripts/gen_vimdoc.py
index e77d3ea286..a720f055ed 100755
--- a/scripts/gen_vimdoc.py
+++ b/scripts/gen_vimdoc.py
@@ -131,6 +131,7 @@ CONFIG = {
'filetype.lua',
'keymap.lua',
'fs.lua',
+ 'secure.lua',
],
'files': [
'runtime/lua/vim/_editor.lua',
@@ -140,6 +141,7 @@ CONFIG = {
'runtime/lua/vim/filetype.lua',
'runtime/lua/vim/keymap.lua',
'runtime/lua/vim/fs.lua',
+ 'runtime/lua/vim/secure.lua',
],
'file_patterns': '*.lua',
'fn_name_prefix': '',
@@ -166,6 +168,7 @@ CONFIG = {
'filetype': 'vim.filetype',
'keymap': 'vim.keymap',
'fs': 'vim.fs',
+ 'secure': 'vim.secure',
},
'append_only': [
'shared.lua',