Comments (5)
Strange... It seems to work on my end. Just invoked your command:
+++
title = "Testing this with denote-md command"
date = 2022-06-12T17:52:12+03:00
tags = ["testing"]
identifier = "20220612T175212"
+++
Note that the (file-name-directory (buffer-file-name))
in denote-md
does not work when called form the *scratch*
buffer (my initial test). But that is not related to the denote-file-type
.
from denote.
Oops, sorry for this noise. I had denote-file-type
set to nil
in a project .dir-locals.el. I think that denote internally creates a temp buffer and so the .dir-locals.el settings kick in there.
from denote.
I got a backtrace:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
file-name-directory(nil)
(let ((denote-directory (file-name-directory (buffer-file-name))) (denote-file-type 'markdown-toml)) (call-interactively #'denote))
denote-md()
funcall-interactively(denote-md)
call-interactively(denote-md record nil)
command-execute(denote-md record)
execute-extended-command(nil "denote-md" nil)
funcall-interactively(execute-extended-command nil "denote-md" nil)
call-interactively(execute-extended-command nil nil)
command-execute(execute-extended-command)
from denote.
Note that the (file-name-directory (buffer-file-name)) in denote-md does not work when called form the scratch buffer (my initial test).
Correct. I make sure I always call it from a file buffer (it was a quick way for me to change the denote directory.
from denote.
Oops, sorry for this noise.
No worries!
.dir-locals.el settings
We should elaborate on this in the section about creating those user-level commands. It will be useful, especially for the denote-directory
.
from denote.
Related Issues (20)
- A `denote-filetype-heuristics` variant to help other code HOT 5
- 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
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.