Comments (7)
I'll have to read the Denote manual how it treats subdirs, It is certainly feasible, Only two functions in citar-denote are directory-specific.
from citar-denote.
Excellent - I have pushed this version.
from citar-denote.
Hi Colin, I am about release a new version (which allows multiple notes per entry and multiple entries per note), so I am happy to weave this in as well.
What is the denote-subdir
variable?
from citar-denote.
Another question. I don't use subdirectories so cannot test your suggestion.
When you use multiple folders, does the denote-directory-files-matching-regexp
function list all notes in all folders? I use this function to check for reference keys.
from citar-denote.
What is the denote-subdir variable?
That was just a dummy variable for the sample function I gave above. I figure since not everyone uses subdirs better to have the option to not show the subdir prompt.
When you use multiple folders, does the denote-directory-files-matching-regexp function list all notes in all folders?
As far as I can tell it does. I haven't tested it extensively but it picks up the references that are properly formatted in my refs-dir
subdirectory.
from citar-denote.
I think it is as easy as you indicated. I added:
(defcustom citar-denote-subdir 't
"Ask for a subdirectory when creating a new bibliographic note.")
And changed the creation function as suggested:
(defun citar-denote-create-note (key &optional _entry)
"Create a bibliography note for `KEY' with properties `ENTRY'.
The file type for the note to be created is determined by `denote-file-type'.
When `citar-denote-subdir' is non-nil, prompt for a subdirectory."
(denote
(read-string "Title: " (citar-get-value "title" key))
(citar-denote-keywords-prompt)
citar-denote-file-type
(when citar-denote-subdir (denote-subdirectory-prompt)))
(citar-denote-add-reference key citar-denote-file-type))
Can you test and confirm that this is what you need? If so, then I will commit the new version.
from citar-denote.
Yes -- that works well! Thanks!
from citar-denote.
Related Issues (13)
- Using specific directory for citar notes HOT 3
- Feature request: Add support for citations in the backlinks buffer ? HOT 4
- reference key as target-finder? HOT 11
- Running citar-create-note doesn't add a "#+reference" HOT 5
- Author (year) as title HOT 31
- Add additional information from bibliographic entry into note, with pre-defined formatting? HOT 4
- Create a denote note including the citekey and bib keyword in one step. HOT 6
- Miss candidate with citar-denote-find-citation HOT 6
- Obsolete symbols, some further integration HOT 5
- add an easy way to insert a link to the note of a given reference? HOT 7
- double "#+title" in notes created throught the citar interface HOT 8
- citar-denote-generate-title: Wrong number of arguments: (1 . 1), 3 HOT 8
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 citar-denote.