From fd98b44e6a71a6ac43580a059d66b0327a95c99d Mon Sep 17 00:00:00 2001 From: Emily Bourke Date: Thu, 27 Jul 2023 14:35:08 +0100 Subject: [PATCH] tweak(workspaces): prefill current name on rename This change uses completing-read to get the new name from the user when renaming workspaces, to allow them to more easily make a small change to the existing name of a workspace. --- modules/ui/workspaces/autoload/workspaces.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/workspaces/autoload/workspaces.el b/modules/ui/workspaces/autoload/workspaces.el index 2c306d1d1..678cae5b8 100644 --- a/modules/ui/workspaces/autoload/workspaces.el +++ b/modules/ui/workspaces/autoload/workspaces.el @@ -221,7 +221,7 @@ workspace." ;;;###autoload (defun +workspace/rename (new-name) "Rename the current workspace." - (interactive (list (read-from-minibuffer "New workspace name: "))) + (interactive (list (completing-read "New workspace name: " (list (+workspace-current-name))))) (condition-case-unless-debug ex (let* ((current-name (+workspace-current-name)) (old-name (+workspace-rename current-name new-name)))