From de45d327382494b75e76019104a053ac072aa237 Mon Sep 17 00:00:00 2001 From: Benjamin Wolff Date: Sat, 30 Mar 2024 11:46:54 +0100 Subject: [PATCH 1/3] add session lens delete shortcut to readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 49d8df5..8315853 100644 --- a/README.md +++ b/README.md @@ -311,7 +311,7 @@ vim.keymap.set("n", "", require("auto-session.session-lens").search_session }) ``` -*Note:* hitting `` on an open session-lens picker will automatically try to restore the previous session opened. This can give you a nice flow if you're constantly switching between two projects. +*Note:* hitting `` on an open session-lens picker will automatically try to restore the previous session opened. This can give you a nice flow if you're constantly switching between two projects. Additionally, `` will delete the currently selected session. Sometime after `telescope.nvim` has been started, you'll want to call `lua require("telescope").load_extension "session-lens"` so that command completion works for `:Telescope session-lens` commands. From 5b94abb3f494aa7d4f5b97edd0fd1ff4889577b7 Mon Sep 17 00:00:00 2001 From: Benjamin Wolff Date: Sat, 30 Mar 2024 11:55:35 +0100 Subject: [PATCH 2/3] use the word highlighted instead of selected to not confuse with active session --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8315853..e5f922c 100644 --- a/README.md +++ b/README.md @@ -311,7 +311,7 @@ vim.keymap.set("n", "", require("auto-session.session-lens").search_session }) ``` -*Note:* hitting `` on an open session-lens picker will automatically try to restore the previous session opened. This can give you a nice flow if you're constantly switching between two projects. Additionally, `` will delete the currently selected session. +*Note:* hitting `` on an open session-lens picker will automatically try to restore the previous session opened. This can give you a nice flow if you're constantly switching between two projects. Additionally, `` will delete the currently highlighted session. Sometime after `telescope.nvim` has been started, you'll want to call `lua require("telescope").load_extension "session-lens"` so that command completion works for `:Telescope session-lens` commands. From f3a1ed6a2081f4c36e7fd8e31ff8f0d98bc975f2 Mon Sep 17 00:00:00 2001 From: Benjamin Wolff Date: Sat, 30 Mar 2024 12:01:27 +0100 Subject: [PATCH 3/3] use a list to display the shortcuts --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e5f922c..3cf26f5 100644 --- a/README.md +++ b/README.md @@ -311,7 +311,9 @@ vim.keymap.set("n", "", require("auto-session.session-lens").search_session }) ``` -*Note:* hitting `` on an open session-lens picker will automatically try to restore the previous session opened. This can give you a nice flow if you're constantly switching between two projects. Additionally, `` will delete the currently highlighted session. +The following shortcuts are available when the session-lens picker is open +* `` restores the previously opened session. This can give you a nice flow if you're constantly switching between two projects. +* `` will delete the currently highlighted session. This makes it easy to keep the session list clean. Sometime after `telescope.nvim` has been started, you'll want to call `lua require("telescope").load_extension "session-lens"` so that command completion works for `:Telescope session-lens` commands.