From 3f3bfdf27371fa080fe843d3fce92af8539ffe41 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 24 Apr 2026 05:15:54 -0400 Subject: [PATCH] refactor(evil): remove unused, redundant, or defunct ex commands - The gist module was removed some time ago - There is no merit to a :http ex command (just use `M-x httpd-start`). - There is no merit to git ex commands (in their current form, at least). - The :sw[iper] command was too niche. A more generalized command (maybe similar to/based on `+default/search-buffer`) would be appropriate, but that's for another day. --- modules/editor/evil/+commands.el | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/modules/editor/evil/+commands.el b/modules/editor/evil/+commands.el index 551627fce..13e05272e 100644 --- a/modules/editor/evil/+commands.el +++ b/modules/editor/evil/+commands.el @@ -21,7 +21,6 @@ ;; TODO: (evil-ex-define-cmd "go[ogle]" #'doom:google-search) (evil-ex-define-cmd "lo[okup]" #'+lookup:online) (evil-ex-define-cmd "dash" #'+lookup:dash) -(evil-ex-define-cmd "http" #'httpd-start) ; start http server (evil-ex-define-cmd "repl" #'+eval:repl) ; invoke or send to repl (evil-ex-define-cmd "h[elp]" #'+evil:help) @@ -29,17 +28,6 @@ (evil-ex-define-cmd "sh[ell]" #'+eshell:run) (evil-ex-define-cmd "pad" #'+evil:open-scratch-buffer) -;;; GIT -(evil-ex-define-cmd "gist" #'+gist:send) ; send current buffer/region to gist -(evil-ex-define-cmd "gistl" #'+gist:list) ; list gists by user -(evil-ex-define-cmd "gbrowse" #'+vc/browse-at-remote) ; show file/region in github/gitlab -(evil-ex-define-cmd "gissues" #'forge-browse-issues) ; show github issues -(evil-ex-define-cmd "git" #'magit-status) ; open magit status window -(evil-ex-define-cmd "gstage" #'magit-stage) -(evil-ex-define-cmd "gunstage" #'magit-unstage) -(evil-ex-define-cmd "gblame" #'magit-blame) -(evil-ex-define-cmd "grevert" #'+vc-gutter/revert-hunk) - ;;; Dealing with buffers (evil-ex-define-cmd "k[ill]" #'kill-current-buffer) (evil-ex-define-cmd "k[ill]all" #'+evil:kill-all-buffers) @@ -55,12 +43,6 @@ (evil-ex-define-cmd "cd" #'+evil:cd) (evil-ex-define-cmd "pwd" #'+evil:pwd) -(evil-define-command +evil:swiper (&optional search) - "Invoke `swiper' with SEARCH, otherwise with the symbol at point." - (interactive "") - (swiper-isearch search)) -(evil-ex-define-cmd "sw[iper]" #'+evil:swiper) - (cond ((modulep! :completion ivy) (evil-ex-define-cmd "pg[rep]" #'+ivy:project-search) (evil-ex-define-cmd "pg[grep]d" #'+ivy:project-search-from-cwd))