comparison runtime/doc/autocmd.txt @ 27617:269f89efb06a v8.2.4335

patch 8.2.4335: no autocommand event triggered before changing directory Commit: https://github.com/vim/vim/commit/28e8f73ae2d90009fd62cd60f97c2643ba44de68 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 9 12:58:20 2022 +0000 patch 8.2.4335: no autocommand event triggered before changing directory Problem: No autocommand event triggered before changing directory. (Ronnie Magatti) Solution: Add DirChangedPre. (closes #9721)
author Bram Moolenaar <Bram@vim.org>
date Wed, 09 Feb 2022 14:00:05 +0100
parents 3649b5a6b1b6
children 179c118424a6
comparison
equal deleted inserted replaced
27616:431c6a7a1f8b 27617:269f89efb06a
324 |FileChangedShell| Vim notices that a file changed since editing started 324 |FileChangedShell| Vim notices that a file changed since editing started
325 |FileChangedShellPost| After handling a file changed since editing started 325 |FileChangedShellPost| After handling a file changed since editing started
326 |FileChangedRO| before making the first change to a read-only file 326 |FileChangedRO| before making the first change to a read-only file
327 327
328 |DiffUpdated| after diffs have been updated 328 |DiffUpdated| after diffs have been updated
329 |DirChangedPre| before the working directory will change
329 |DirChanged| after the working directory has changed 330 |DirChanged| after the working directory has changed
330 331
331 |ShellCmdPost| after executing a shell command 332 |ShellCmdPost| after executing a shell command
332 |ShellFilterPost| after filtering with a shell command 333 |ShellFilterPost| after filtering with a shell command
333 334
736 *DiffUpdated* 737 *DiffUpdated*
737 DiffUpdated After diffs have been updated. Depending on 738 DiffUpdated After diffs have been updated. Depending on
738 what kind of diff is being used (internal or 739 what kind of diff is being used (internal or
739 external) this can be triggered on every 740 external) this can be triggered on every
740 change or when doing |:diffupdate|. 741 change or when doing |:diffupdate|.
742 *DirChangedPre*
743 DirChangedPre The working directory is going to be changed,
744 as with ||DirChanged|. The pattern is like
745 with |DirChanged|. The new directory can be
746 found in v:event.directory.
741 *DirChanged* 747 *DirChanged*
742 DirChanged The working directory has changed in response 748 DirChanged The working directory has changed in response
743 to the |:cd| or |:tcd| or |:lcd| commands, or 749 to the |:cd| or |:tcd| or |:lcd| commands, or
744 as a result of the 'autochdir' option. 750 as a result of the 'autochdir' option.
745 The pattern can be: 751 The pattern can be: