private/default: add :pwd[!] command (copy pwd to clipboard)
This commit is contained in:
parent
8c5286f2dc
commit
49a45ec0c8
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue