private/default: add :pwd[!] command (copy pwd to clipboard)

This commit is contained in:
Henrik Lissner 2018-02-02 21:21:20 -05:00
parent 8c5286f2dc
commit 49a45ec0c8
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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)