Comments (15)
Very well! Let's keep this open for a while longer. There may be some more refinements to be made. Will keep you posted.
from denote.
Hello @atanasj!
If I understand this correctly: you want the front matter to stay as-is and have the file name be renamed according to that data, right?
If so, check the command denote-rename-file-using-front-matter
. Documented here: https://protesilaos.com/emacs/denote#h:3ab08ff4-81fa-4d24-99cb-79f97c13a373
[ Try it with a test file before operating on your actual data. ]
from denote.
Thanks for that, I did try that, but it did not work. I get the message:
denote-rename-file-using-front-matter: No front matter for title and/or keywords
The format of the yaml
front matter looks like below:
---
date: 2017-07-25T05:38:27+0000
identifier: "20170725T053827"
title: "IASP - Special Interest Group: Suicidal Behaviour in Adolescents"
tags: ["Treatment"]
url: https://iasp.info/suicidal_behaviour_in_adolescents.php
source: web.clip
---
from denote.
Yes, I forgot to mention that the file name must already have an identifier. It should, at the very least, be named 20170725T053827.md
.
We will need to update the command to work on any file that ends with one of our supported extensions. Will look into it now.
from denote.
Okay… that worked after I renamed the file to that. I could probably fudge something on the command line to rename using the identifier, but if it is built in, all the better! Thanks for being so responsive!
from denote.
Yes, it should be provided by Denote. There is no reason to keep the current restriction.
from denote.
That would be awesome!
from denote.
@atanasj You are pulling directly from git, right? If so, please check the latest commit 1bdd0eb
. I just tried it with sample.md and valid front matter and got the expected renamed name.
from denote.
@protesilaos, yes! That works as expected. 😄
from denote.
Okay… I seem to be having problems in marking and bulk renaming in dired
.... I have ranger
installed, so not sure if this is causing an issue... However, I disabled the ranger
and it still did not work. The message I get is:
No marked files; aborting
Could it be something with my setup? I am also using evil
, however the problem persists in emacs-mode
within doomemacs
.
from denote.
Which command did you use? The error most likely is internal to Denote.
from denote.
I am using denote-dired-rename-marked-files-using-front-matter
from denote.
I just pushed a change. It basically relaxes the condition of what counts as a writable file. Same idea with what I did for the single file renaming. Please try commit 46f123c
.
from denote.
WORKING! Nice job! This solves the issue for me, so I'll gratefully close! 😄
from denote.
Very well! Thanks again for your feedback!
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.