Comments (5)
This is now added. You can define it like this:
org_capture_templates = {
j = {
description = 'Log entry',
template = '* %?',
target = '~/org/work-log.org',
datetree = true,
-- Or if you want to pick a date
datetree = { time_prompt = true }
},
},
from orgmode.
Many thanks it works very nice. Two small questions (no idea if org-mode supports that or not), would it possible the org file to be reversed? Like the newest day always on top and the oldest on the bottom? Also is is it possible to have week number? Thanks
from orgmode.
Orgmode doesn't support that out of the box, there is package to do that (https://github.com/akirak/org-reverse-datetree). I'll see if we can extend the functionality here to support the reversed datetree and providing custom formatting for each level. I'll keep you posted.
from orgmode.
@karampok Support for reversed datetree was added. Just pass reversed flag to the datetree opts:
org_capture_templates = {
j = {
description = 'Log entry',
template = '* %?',
target = '~/org/work-log.org',
datetree = { reversed = true }
},
},
I'll be adding support for custom date formats next.
from orgmode.
Support for different date trees was added in #693.
You can select presets like day
, month
and week
, or create a custom one. Documentation is here #693
from orgmode.
Related Issues (20)
- Actions on text objects are not performed if the cursor is positioned before the text object HOT 2
- "Add new headline" moves cursor one line too much HOT 2
- Make refile heading finder case insensitive
- Clipboard expansion fails when URL encoding is contained HOT 1
- [plugin] org-roam.nvim progress & discussion HOT 158
- Add a note to the entry (org-agenda-add-note)
- Date/Time prompts in Capture Templates HOT 1
- Loading org file causes expected string, got table error HOT 5
- Orgmode mappings for increment/decrement date part under cursor are inverted HOT 2
- Huge performance drop after tree-sitter drop HOT 9
- Keep empty line between folded headlines
- No agenda entries found HOT 6
- Orgmode as filetype plugin throws error HOT 9
- Add support for citations
- Application of colorscheme breaks todo keyword highlighting HOT 3
- uuidgen does not exist on Windows HOT 2
- Windwos path with Colon (:) (ex: E:\repoes\README.md) can't open
- Error (freezes nvim) when opening file with code block name in different case (e.g. "Python", "JSON", "R"): `no such language: R` HOT 1
- Context is lost when archiving headline with level >1 HOT 2
- Make Virtual Indentation (indent mode) support `set wrap` 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 orgmode.