Comments (4)
Some user might do that and then wonder whey
denote-link
doesn't
work.
True. Will remove this part.
Additionally, if there is no identifier match,
denote-link
throws an
error with backtrace i.e. it's not an elegantuser-error
.
Better fix this then to fail gracefully. I will most likely not be able
to do this right now, as I am about to go bed. Tomorrow for sure!
from denote.
Better fix this then to fail gracefully. I will most likely not be able to do this right now, as I am about to go bed. Tomorrow for sure!
I believe I fixed this while also moving the relevant code to its own file instead of keeping it in denote-link.el
. The relevant part:
(defun denote-retrieve--search (regexp)
"Search for REGEXP in the current buffer."
(save-excursion
(save-restriction
(widen)
(goto-char (point-min))
(re-search-forward regexp nil t 1)
(match-string-no-properties 1))))
(defun denote-retrieve--find-value (regexp)
"Return value from REGEXP by searching the file."
(or (denote-retrieve--search regexp)
(user-error "Cannot retrieve %s" regexp)))
from denote.
Thanks! I'll close this issue then.
from denote.
Thank you!
from denote.
Related Issues (20)
- sort by title outside of denote-directory HOT 5
- I use `denote-rename-file` as my main file renaming UI HOT 6
- `denote--edit-front-matter-p` docstring vs behavior HOT 1
- Possible to create a denote file outside denote-directory? HOT 5
- markdown links HOT 3
- Commit 232bd90 does not only apply to signatures HOT 13
- is it possible to create single tag with multiple words seperated by delimter? HOT 3
- Backlink buffer aware of org heading HOT 2
- Can't add link to file from within org-capture: "The current file type is not recognized by Denote" HOT 8
- Problem due to overloading `no-confirm` for "save" HOT 7
- How can I figure out which version of denote is currently used? HOT 4
- Templates are not working in denote-org-capture-with-prompts HOT 5
- Cannot add a denote link in `org-add-log-note` HOT 2
- update the link description if the target title is changed HOT 7
- Announcement: Some upcoming features available in my fork HOT 14
- Add support for adding keywords and/or removing keywords when using `denote-dired-rename-marked-files`
- org-display-inline-images doesn't work for denote: links HOT 2
- Allow listing backlinks for denote files that are not notes HOT 3
- denote-org-extras-convert-links-to-file-type ignores value of org-link-file-path-type HOT 5
- Cusomizing the used token character for the title field separator HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from denote.