feat(per-directory-history): add a PER_DIRECTORY_HISTORY_AUTO_TOGGLE config option

* `PER_DIRECTORY_HISTORY_AUTO_TOGGLE` if set to true, when you change
  directories, the mode will be toggled to match the mode that was used 
  the last time you were in the directory.


Signed-off-by: Hiram Chirino <hiram@hiramchirino.com>
This commit is contained in:
Hiram Chirino 2024-10-03 18:44:34 -04:00
commit 66f595427f
2 changed files with 45 additions and 6 deletions

View file

@ -35,6 +35,9 @@ toggle set the `PER_DIRECTORY_HISTORY_TOGGLE` environment variable.
function above (default `^G`)
* `PER_DIRECTORY_HISTORY_PRINT_MODE_CHANGE` is a variable which toggles whether
the current mode is printed to the screen following a mode change (default `true`)
* `PER_DIRECTORY_HISTORY_AUTO_TOGGLE` if set to true, when you change
directories, the mode will be toggled to match the mode that was used
the last time you were in the directory.
## History