From d5d47d4d7a0b7c396f1bddffe8c5eddc355ce60a Mon Sep 17 00:00:00 2001 From: #!/bin/genesis Date: Fri, 3 Sep 2021 19:44:03 +0300 Subject: [Feature]: Add new which-key command for switching to the last buffer (#1440) * Add new which-key command for switching to last buffer * chore(whichkey) Rework buffer descriptions Co-authored-by: Luc Sinet --- lua/core/which-key.lua | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'lua/core/which-key.lua') diff --git a/lua/core/which-key.lua b/lua/core/which-key.lua index 8f2f2a5a..5ceffb57 100644 --- a/lua/core/which-key.lua +++ b/lua/core/which-key.lua @@ -72,25 +72,26 @@ M.config = function() ["h"] = { "nohlsearch", "No Highlight" }, b = { name = "Buffers", - j = { "BufferPick", "jump to buffer" }, - f = { "Telescope buffers", "Find buffer" }, - w = { "BufferWipeout", "wipeout buffer" }, + j = { "BufferPick", "Jump" }, + f = { "Telescope buffers", "Find" }, + b = { "b#", "Previous" }, + w = { "BufferWipeout", "Wipeout" }, e = { "BufferCloseAllButCurrent", - "close all but current buffer", + "Close all but current", }, - h = { "BufferCloseBuffersLeft", "close all buffers to the left" }, - l = { + l = { "BufferCloseBuffersLeft", "Close all - left" }, + r = { "BufferCloseBuffersRight", - "close all BufferLines to the right", + "Close all - right", }, D = { "BufferOrderByDirectory", - "sort BufferLines automatically by directory", + "Sort by directory", }, L = { "BufferOrderByLanguage", - "sort BufferLines automatically by language", + "Sort by language", }, }, p = { -- cgit v1.2.3 From 8a168ed8773d8e46b9912a57fdd7ef10303872f1 Mon Sep 17 00:00:00 2001 From: Luc Sinet Date: Fri, 3 Sep 2021 22:10:48 +0200 Subject: Revert back buffer bindings (#1458) --- lua/core/which-key.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua/core/which-key.lua') diff --git a/lua/core/which-key.lua b/lua/core/which-key.lua index 5ceffb57..458e1634 100644 --- a/lua/core/which-key.lua +++ b/lua/core/which-key.lua @@ -80,10 +80,10 @@ M.config = function() "BufferCloseAllButCurrent", "Close all but current", }, - l = { "BufferCloseBuffersLeft", "Close all - left" }, - r = { + h = { "BufferCloseBuffersLeft", "Close all to the left" }, + l = { "BufferCloseBuffersRight", - "Close all - right", + "Close all to the right", }, D = { "BufferOrderByDirectory", -- cgit v1.2.3