From f38842dd341e718f883a57ac2cf1aee65323b58a Mon Sep 17 00:00:00 2001 From: Ronnie Magatti Date: Fri, 21 Jun 2024 01:53:51 -0600 Subject: [PATCH 1/2] ci: Update GitHub Actions and commit message format - Update the `checkout` action to version `v4` - Update the `git-auto-commit-action` to version `v5` --- .github/workflows/docgen.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docgen.yml b/.github/workflows/docgen.yml index db0291b..dcdb6a9 100644 --- a/.github/workflows/docgen.yml +++ b/.github/workflows/docgen.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest name: emmylua to vimdoc steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Generating help run: | @@ -18,7 +18,7 @@ jobs: ./lemmy-help ./lua/auto-session/init.lua ./lua/auto-session/autocmds.lua ./lua/auto-session/session-lens/init.lua ./lua/auto-session/session-lens/actions.lua > doc/${{env.PLUGIN_NAME}}.txt - name: Commit - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 with: branch: ${{ github.head_ref }} commit_message: "chore(docs): auto-generate vimdoc" From 77a3466d11c7d14db8028e2139ecb7fc06b64f2a Mon Sep 17 00:00:00 2001 From: rmagatti Date: Fri, 21 Jun 2024 07:54:19 +0000 Subject: [PATCH 2/2] chore(docs): auto-generate vimdoc --- doc/auto-session.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/auto-session.txt b/doc/auto-session.txt index 99fc8ea..5bf1443 100644 --- a/doc/auto-session.txt +++ b/doc/auto-session.txt @@ -9,6 +9,7 @@ defaultConf *defaultConf* {auto_session_create_enabled} (boolean|nil) Enables/disables auto creating new sessions {auto_save_enabled?} (boolean) Enables/disables auto saving session {auto_restore_enabled?} (boolean) Enables/disables auto restoring session + {auto_restore_lazy_delay_enabled?} (boolean) Automatically detect if Lazy.nvim is being used and wait until Lazy is done to make sure session is restored correctly. Does nothing if Lazy isn't being used. Can be disabled if a problem is suspected or for debugging {auto_session_suppress_dirs?} (table) Suppress auto session for directories {auto_session_allowed_dirs?} (table) Allow auto session for directories, if empty then all directories are allowed except for suppressed ones {auto_session_use_git_branch?} (boolean) Include git branch name in session name to differentiate between sessions for different git branches @@ -20,6 +21,7 @@ luaOnlyConf *luaOnlyConf* Fields: ~ {cwd_change_handling} (CwdChangeHandling) {bypass_session_save_file_types?} (table) List of file types to bypass auto save when the only buffer open is one of the file types listed + {close_unsupported_windows?} (boolean) Whether to close windows that aren't backed by a real file {silent_restore} (boolean) Whether to restore sessions silently or not {log_level?} (string|integer) "debug", "info", "warn", "error" or vim.log.levels.DEBUG, vim.log.levels.INFO, vim.log.levels.WARN, vim.log.levels.ERROR @@ -57,6 +59,9 @@ AutoSession.get_latest_session() *AutoSession.get_latest_session* (string|nil) +AutoSession.session_exists_for_cwd() *AutoSession.session_exists_for_cwd* + + *AutoSession.AutoSaveSession* AutoSession.AutoSaveSession({sessions_dir?}) AutoSaveSession