Code Monkey home page Code Monkey logo

Comments (5)

kristijanhusak avatar kristijanhusak commented on June 3, 2024 1

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.

karampok avatar karampok commented on June 3, 2024

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.

kristijanhusak avatar kristijanhusak commented on June 3, 2024

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.

kristijanhusak avatar kristijanhusak commented on June 3, 2024

@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.

kristijanhusak avatar kristijanhusak commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.