neovim/runtime
Justin M. Keyes 29fe883aa9
feat: ignore swapfile for running Nvim processes #25336
Problem:
The swapfile "E325: ATTENTION" dialog is displayed when editing a file
already open in another (running) Nvim. Usually this behavior is
annoying and irrelevant:
- "Recover" and the other options ("Open readonly", "Quit", "Abort") are
  almost never wanted.
- swapfiles are less relevant for "multi-Nvim" since 'autoread' is
  enabled by default.
  - Even less relevant if user enables 'autowrite'.

Solution:
Define a default SwapExists handler which does the following:
1. If the swapfile is owned by a running Nvim process, automatically
   chooses "(E)dit anyway" (caveat: this creates a new, extra swapfile,
   which is mostly harmless and ignored except by `:recover` or `nvim -r`.
2. Shows a 1-line "ignoring swapfile..." message.
3. Users can disable the default SwapExists handler via `autocmd! nvim_swapfile`.
2023-10-04 06:31:25 -07:00
..
autoload fix(clipboard): don't pass --foreground to wl-copy (#25481) 2023-10-03 11:24:33 +08:00
colors vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
compiler vim-patch:fc93594d562d 2023-09-13 17:23:45 +02:00
doc feat: ignore swapfile for running Nvim processes #25336 2023-10-04 06:31:25 -07:00
ftplugin vim-patch:347459423903 2023-09-27 22:20:03 +02:00
indent vim-patch:e30d8e4ce01d 2023-09-17 22:52:56 +02:00
keymap vim-patch:e8d6f03f6a61 2023-08-23 20:36:16 +01:00
lua feat: ignore swapfile for running Nvim processes #25336 2023-10-04 06:31:25 -07:00
macros vim-patch:e8d6f03f6a61 2023-08-23 20:36:16 +01:00
pack/dist/opt refactor(termdebug): reindent some things 2023-08-25 11:24:52 +01:00
plugin feat(treesitter): add lang parameter to the query editor (#25181) 2023-09-16 19:05:59 +02:00
queries feat(lsp): use treesitter for stylize markdown 2023-09-19 14:47:37 +01:00
spell
syntax vim-patch:54f70cf0780a 2023-09-27 22:20:03 +02:00
tools
tutor fix(tutor): Tutor steps don't work on Windows #25251 2023-09-26 06:31:35 -07:00
CMakeLists.txt refactor(build): move the last generator from scripts/ to src/nvim/generators 2023-04-21 16:46:35 +02:00
delmenu.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
filetype.lua fix(filetype): make sure buffer is valid before call nvim_buf_call (#24922) 2023-08-30 10:14:58 -05:00
ftoff.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
ftplugin.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
ftplugof.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
indent.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
indoff.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
macmap.vim
makemenu.vim vim-patch:acb91d3905cf 2023-09-02 11:08:29 +02:00
menu.vim vim-patch:e059fae10044 2023-08-24 11:33:06 +09:00
mswin.vim vim-patch:e978b4534a5e (#24697) 2023-08-13 13:25:10 +01:00
neovim.ico
nvim.appdata.xml NVIM v0.9.0 2023-04-07 13:26:29 +02:00
nvim.desktop
nvim.png
optwin.vim vim-patch:0b8b145bf8bf 2023-08-31 10:58:54 +02:00
synmenu.vim vim-patch:acb91d3905cf 2023-09-02 11:08:29 +02:00