aboutsummaryrefslogtreecommitdiff
path: root/init.lua
Commit message (Collapse)AuthorAgeFilesLines
* stop further WIN_OPEN event handling if we abortedFlorian Fischer2024-05-041-1/+4
| | | | | Closing the window invalidates the handle passed to further event handlers probably causing them to crash.
* remove obsolete event handling codeFlorian Fischer2024-05-041-26/+1
|
* init.lua: no need to defer to handler apparentlyMr Alin2024-05-041-11/+2
|
* init.lua: working versionAlin Mr2024-05-041-64/+21
|
* initial draft supporting autoclose and abortFlorian Fischer2024-05-041-5/+77
| | | | | | Currently this breaks with my config which sets window options during WIN_OPEN events which causes a UI_DRAW event closing the window during its WIN_OPEN event.
* improve promptFlorian Fischer2024-05-041-11/+28
| | | | | Present more information in a new prompt window. Use vis:pipe to support functioning arrow keys in vis-menu.
* make formatFlorian Fischer2024-05-031-1/+1
|
* fix choice detectionFlorian Fischer2024-05-031-1/+1
| | | | This slipped through while amending 526873be.
* init.lua: clean up on QUIT (handle :cq)Alin Mr2024-05-031-0/+9
|
* show locking pid on conflict; clearer promptAlin Mr2024-05-031-5/+6
|
* init.lua: use vis:exit()Alin Mr2024-05-031-1/+1
|
* init.lua: map filenames to lockfilesAlin Mr2024-05-031-5/+6
| | | | also solves re-locking a file we own (e.g. no-arg `:e`)
* init.lua: simplify 'yes' detectionAlin Mr2024-05-031-10/+5
|
* split lock file functions into separate file to enable testingFlorian Fischer2024-05-031-74/+13
|
* init.lua: x%y and x/y should not map to same lockAlin Mr2024-05-031-1/+2
|
* init.lua: re-expand whenever M.directory changesAlin Mr2024-05-031-2/+3
|
* init.lua: create & expand M.dir: only onceAlin Mr2024-05-031-2/+12
|
* run make formatFlorian Fischer2024-05-031-2/+6
|
* init.lua: echo -> printfAlin Mr2024-05-021-2/+1
|
* return early if no file is openedFlorian Fischer2024-05-021-0/+2
| | | | | Reported-By: Matěj Cepl <mcepl@cepl.eu> Tested-By: Alin Mr <almr.oss@outlook.com>
* use more native Lua code instead of os.executeFlorian Fischer2024-05-021-7/+11
| | | | Suggested-by: Matěj Cepl <mcepl@cepl.eu>
* store lock files in XDG_STATE_HOMEFlorian Fischer2024-05-021-1/+1
| | | | | Replace the previous wrong combination of XDG_CACHE_HOME and the default location of XDG_DATA_HOME.
* initial commitFlorian Fischer2024-05-021-0/+121