mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
private/default: add :pwd[!] command (copy pwd to clipboard)
This commit is contained in:
@ -10,6 +10,13 @@
|
||||
(interactive "<!>")
|
||||
(doom/open-scratch-buffer bang))
|
||||
|
||||
(evil-define-command doom:pwd (bang)
|
||||
(interactive "<!>")
|
||||
(if (not bang)
|
||||
(pwd)
|
||||
(kill-new default-directory)
|
||||
(message "Copied to clipboard")))
|
||||
|
||||
|
||||
;;
|
||||
;; Commands
|
||||
@ -65,6 +72,7 @@
|
||||
;; Project navigation
|
||||
(ex! "a" #'projectile-find-other-file)
|
||||
(ex! "cd" #'+default:cd)
|
||||
(ex! "pwd" #'doom:pwd)
|
||||
(cond ((featurep! :completion ivy)
|
||||
(ex! "ag" #'+ivy:ag)
|
||||
(ex! "agc[wd]" #'+ivy:ag-cwd)
|
||||
|
Reference in New Issue
Block a user