Files
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
..
2023-08-13 13:25:10 +01:00
2023-09-13 17:23:45 +02:00
2023-09-27 22:20:03 +02:00
2023-09-17 22:52:56 +02:00
2023-08-23 20:36:16 +01:00
2023-08-23 20:36:16 +01:00
2023-09-27 22:20:03 +02:00
2022-08-20 10:04:55 +02:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2023-09-02 11:08:29 +02:00
2023-08-24 11:33:06 +09:00
2023-08-13 13:25:10 +01:00
2023-04-07 13:26:29 +02:00
2023-08-31 10:58:54 +02:00
2023-09-02 11:08:29 +02:00