/neorg-timelog

Neorg module to allow logging time

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

neorg-timelog [WIP]

Neorg module to allow logging time

Install

For packer users -

  use {
    'nvim-neorg/neorg',
    -- ...
    requires = {
      -- ...
      {'phenax/neorg-timelog'},
    }
  }

Config

require('neorg').setup {
  load = {
    -- ...
    ['external.timelog'] = {
      config = {
        time_format = '%Y-%m-%d %H:%M:%S', -- Default config
      }
    }
  },
}

Usage

  • Add an empty @timelog data tag with a name
@timelog routine
@end
  • Run :Neorg timelog insert routine to update timelog with the name routine
  • Run :Neorg timelog insert * to update all timelogs in buffer
  • Run :Neorg timelog export ./log.json to export all timelogs from current buffer