[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote a76b7fb0b8 193/355: Make plain text links the sa
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote a76b7fb0b8 193/355: Make plain text links the same as Org's |
Date: |
Sun, 26 Jun 2022 23:58:23 -0400 (EDT) |
branch: externals/denote
commit a76b7fb0b813839894f5fb25fbd6d4d6018a9c50
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Make plain text links the same as Org's
The plan is to recommend using org-open-at-point-global for such cases.
If we use a custom format for plain text, we lose that valuable feature.
---
denote-link.el | 8 --------
1 file changed, 8 deletions(-)
diff --git a/denote-link.el b/denote-link.el
index fed424e60a..3ae410795c 100644
--- a/denote-link.el
+++ b/denote-link.el
@@ -102,30 +102,22 @@ and/or the documentation string of `display-buffer'."
(defconst denote-link--format-markdown "[%2$s](denote:%1$s)"
"Format of Markdown link to note.")
-(defconst denote-link--format-text "[[%2$s] [%1$s]]"
- "Format of plain text link to note.")
-
(defconst denote-link--regexp-org
(concat "\\[\\[" "denote:" "\\(?1:" denote--id-regexp "\\)" "]" "\\[.*?]]"))
(defconst denote-link--regexp-markdown
(concat "\\[.*?]" "(denote:" "\\(?1:" denote--id-regexp "\\)" ")"))
-(defconst denote-link--regexp-text
- (concat "\\[\\[" ".*?]" "\s?" "\\[" "\\(?1:" denote--id-regexp "\\)" "]]"))
-
(defun denote-link--file-type-format (file)
"Return link format based on FILE format."
(pcase (file-name-extension file)
("md" denote-link--format-markdown)
- ("txt" denote-link--format-text)
(_ denote-link--format-org))) ; Includes backup files. Maybe we can
remove them?
(defun denote-link--file-type-regexp (file)
"Return link regexp based on FILE format."
(pcase (file-name-extension file)
("md" denote-link--regexp-markdown)
- ("txt" denote-link--regexp-text)
(_ denote-link--regexp-org)))
(defun denote-link--format-link (file pattern)
- [elpa] externals/denote ce41b421ef 147/355: Update denote-retrieve symbols in denote-link, (continued)
- [elpa] externals/denote ce41b421ef 147/355: Update denote-retrieve symbols in denote-link, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 0e75e46b32 138/355: Improve denote-dired-rename-file, ELPA Syncer, 2022/06/26
- [elpa] externals/denote cdb7f554f2 160/355: Remove extra parenthesis from sample configuration, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 88e64be2cb 176/355: Fix plain text link format, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 7fab21926d 183/355: Process 'find' output in denote-retrieve, ELPA Syncer, 2022/06/26
- [elpa] externals/denote ecc7922a77 169/355: BREAKING remove support for hardcoded backlinks, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 49a2932d42 189/355: Implement denote-link-add-links, ELPA Syncer, 2022/06/26
- [elpa] externals/denote a7a0bf0255 207/355: Tweak doc string, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 2338ee4698 181/355: Refine how identifier is retrieved from file names, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 1a124c2be6 204/355: Make 'denote:' link follow links like 'file:', ELPA Syncer, 2022/06/26
- [elpa] externals/denote a76b7fb0b8 193/355: Make plain text links the same as Org's,
ELPA Syncer <=
- [elpa] externals/denote 683180bcfc 206/355: Remove superfluous function and var, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 2e56f06381 201/355: Install aliases for certain commands, ELPA Syncer, 2022/06/26
- [elpa] externals/denote f8b2d44508 203/355: Depend on Emacs 27.2, not 27.1, ELPA Syncer, 2022/06/26
- [elpa] externals/denote a0525a0154 216/355: Do not try front matter rewrite on non-notes, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 74962d17f2 217/355: Improve denote-retrieve error handling, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 5228b1bb17 231/355: Sort 'denote-link-add-links' contents, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 75cf3d31d0 288/355: Accept optional BEG and END for buttonization, ELPA Syncer, 2022/06/26
- [elpa] externals/denote b651200fdf 236/355: Include "hackability" in the manual's overview, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 55140b83f4 275/355: Clarify point about org-roam database, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 6a254238f9 296/355: Mark buttonization task as done, ELPA Syncer, 2022/06/26