diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-09 12:58:20 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-09 12:58:20 +0000 |
commit | 28e8f73ae2d90009fd62cd60f97c2643ba44de68 (patch) | |
tree | dd381874612b06d380a05c01c6c4b510c861d885 /runtime | |
parent | 68cc2b8a37197872e737fb61244069e13b7227a2 (diff) | |
download | vim-git-28e8f73ae2d90009fd62cd60f97c2643ba44de68.tar.gz |
patch 8.2.4335: no autocommand event triggered before changing directoryv8.2.4335
Problem: No autocommand event triggered before changing directory. (Ronnie
Magatti)
Solution: Add DirChangedPre. (closes #9721)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/autocmd.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index 37b4a3d9c..c410ae67e 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -326,6 +326,7 @@ Name triggered by ~ |FileChangedRO| before making the first change to a read-only file |DiffUpdated| after diffs have been updated +|DirChangedPre| before the working directory will change |DirChanged| after the working directory has changed |ShellCmdPost| after executing a shell command @@ -738,6 +739,11 @@ DiffUpdated After diffs have been updated. Depending on what kind of diff is being used (internal or external) this can be triggered on every change or when doing |:diffupdate|. + *DirChangedPre* +DirChangedPre The working directory is going to be changed, + as with ||DirChanged|. The pattern is like + with |DirChanged|. The new directory can be + found in v:event.directory. *DirChanged* DirChanged The working directory has changed in response to the |:cd| or |:tcd| or |:lcd| commands, or |