Comments (3)
Interesting idea! I have not had the chance to experiment with it. Let's leave it here for the time being and we can resume after the release of Denote version 3.0.0
and the subsequent bugfix phase.
from denote.
Currently using something like this
(defun my/denote-org-extras-merge-note-to-another ()
"Merge the current note into another selected note as a subtree."
(interactive)
(when (denote-filename-is-note-p buffer-file-name)
(let* ((other-note (denote-file-prompt))
(current-note-type (denote-filetype-heuristics buffer-file-name))
(current-note-title (denote-retrieve-title-or-filename buffer-file-name current-note-type))
(current-note-keywords (denote-extract-keywords-from-path buffer-file-name))
(current-note-content (condition-case nil ;; handling case when current note is empty
(denote-org-extras-dblock--get-file-contents buffer-file-name t)
(error ""))))
(with-current-buffer (find-file-noselect other-note)
(goto-char (point-max))
(insert (concat "\n* " current-note-title "\n"))
(insert current-note-content)
(save-buffer))
(delete-file buffer-file-name)
(kill-buffer)
(find-file other-note)
(denote-keywords-add current-note-keywords t)
(message "Merged current note into %s" (file-name-nondirectory other-note)))))
from denote.
from denote.
Related Issues (20)
- Prevent newline between front matter and templates HOT 2
- question: why IDENTIFIER and not ID HOT 2
- New fontification is not limited to Denote files HOT 3
- Identifier showing up in keyword section when creating/renaming denote files HOT 2
- Ignored Files Regexp HOT 9
- Denote disappears after doom emacs is restarted HOT 2
- Dynamic block is not working HOT 3
- Nested dynamic blocks breaks the update functionality HOT 4
- denote-journal-extras-new-or-existing-entry creates new file every time HOT 9
- denote-file-prompt shouldn't match archive files ? HOT 3
- denote-add-links doesn't use titles as descriptions inside silos HOT 9
- Denote seems to interfere with magit on Emacs 29.3 HOT 2
- Show entries in Calendar HOT 1
- Rename existing files after changes to denote-file-name-components-order? HOT 3
- markdown links in org files are opened in an external app HOT 4
- `denote-rename-buffer-mode` breaks Org capture detection HOT 6
- Support using functions in `denote-templates` HOT 4
- Title as first element causes shell problems due to leading `--` HOT 6
- Proposal: add frontmatter normalization functions HOT 2
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.