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