Move copy path (to wrong file)
This commit is contained in:
@@ -357,15 +357,6 @@ only the description"
|
|||||||
(kill-new markdown-link)
|
(kill-new markdown-link)
|
||||||
(message "Copied %s" markdown-link)))
|
(message "Copied %s" markdown-link)))
|
||||||
|
|
||||||
(defun qwan/copy-filename ()
|
|
||||||
"Push the file name of the currently visited buffer to the kill ring."
|
|
||||||
(interactive)
|
|
||||||
(unless buffer-file-name
|
|
||||||
(error "The current buffer doesn't visit a file"))
|
|
||||||
|
|
||||||
(kill-new buffer-file-name)
|
|
||||||
(message "Copied %s" buffer-file-name))
|
|
||||||
|
|
||||||
(defun qwan/relative-path-to-attachments (full-path)
|
(defun qwan/relative-path-to-attachments (full-path)
|
||||||
(substring full-path (string-search "/attachments" full-path 0)))
|
(substring full-path (string-search "/attachments" full-path 0)))
|
||||||
(require 'ert)
|
(require 'ert)
|
||||||
@@ -454,6 +445,10 @@ only the description"
|
|||||||
(add-load-path! "~/.doom.d/mostalive")
|
(add-load-path! "~/.doom.d/mostalive")
|
||||||
(require 'my-org-roam)
|
(require 'my-org-roam)
|
||||||
|
|
||||||
|
(add-load-path! "~/.doom.d/qwan")
|
||||||
|
(require 'qwan-blog)
|
||||||
|
|
||||||
|
|
||||||
;; org-roam v1 port to v2, insert node without opening buffer
|
;; org-roam v1 port to v2, insert node without opening buffer
|
||||||
(map!
|
(map!
|
||||||
:leader
|
:leader
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
;;; qwan/qwan-blog.el -*- lexical-binding: t; -*-
|
||||||
|
;;;
|
||||||
|
|
||||||
|
(provide 'qwan-blog)
|
||||||
|
|
||||||
|
|
||||||
|
(defun qwan/copy-filename ()
|
||||||
|
"Push the file name of the currently visited buffer to the kill ring."
|
||||||
|
(interactive)
|
||||||
|
(unless buffer-file-name
|
||||||
|
(error "The current buffer doesn't visit a file"))
|
||||||
|
|
||||||
|
(kill-new buffer-file-name)
|
||||||
|
(message "Copied %s" buffer-file-name))
|
||||||
|
|
||||||
Reference in New Issue
Block a user