Coder Social home page Coder Social logo

esensar / vimwiki-reviews-lua Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 40 KB

Simple periodical review extension for vimwiki(https://github.com/vimwiki/vimwiki). - Moved to https://codeberg.org/vimwiki-reviews/vimwiki-reviews-lua

License: MIT License

Lua 73.51% Shell 2.87% Vim Script 23.61%
lua neovim vim vimwiki

vimwiki-reviews-lua's Introduction

Vimwiki reviews

Simple extension for vimwiki enabling weekly, monthly and yearly reviews. Check out VimL version for Vim support.

Requirements

Installation

Install using favourite plugin manager. This plugin depends on plenary.nvim.

  1. Using Packer.nvim
use {
  'https://codeberg.org/vimwiki-reviews/vimwiki-reviews-lua.git',
  requires = { 'vimwiki/vimwiki', 'nvim-lua/plenary.nvim' }
}

or if vimwiki and plenary are already listed:

use 'https://codeberg.org/vimwiki-reviews/vimwiki-reviews-lua.git'

Then install via :PackerInstall or :PackerSync

  1. Using Plug
Plug 'vimwiki/vimwiki'
Plug 'nvim-lua/plenary.nvim'
Plug 'https://codeberg.org/vimwiki-reviews/vimwiki-reviews-lua.git'

Then install via :PlugInstall

Usage

Plugin is meant to integrate well with usual vimwiki commands and keymaps. By default, plugin stored reviews in reviews subdirectory inside vimwiki directory. It generates index named reviews.ext in that directory.

Commands

Weekly reviews

:VimwikiWeeklyReview, :VimwikiNextWeeklyReview and :VimwikiPrevWeeklyReview open up weekly review for current vimwiki (count may be passed as first argumeny to select vimwiki).

:VimwikiWeeklyTemplate opens up template file for weekly reviews for current vimwiki (count may be passed as first argumeny to select vimwiki). If no template file exists, it is created. If no file exists at time of creation of reviews, default template is used.

Monthly reviews

:VimwikiMonthlyReview, :VimwikiNextMonthlyReview and :VimwikiPrevMonthlyReview open up monthly review for current vimwiki (count may be passed as first argumeny to select vimwiki).

:VimwikiMonthlyTemplate opens up template file for monthly reviews for current vimwiki (count may be passed as first argumeny to select vimwiki). If no template file exists, it is created. If no file exists at time of creation of reviews, default template is used.

Yearly reviews

:VimwikiYearlyReview, :VimwikiNextYearlyReview and :VimwikiPrevYearlyReview open up yearly review for current vimwiki (count may be passed as first argumeny to select vimwiki).

:VimwikiYearlyTemplate opens up template file for yearly reviews for current vimwiki (count may be passed as first argumeny to select vimwiki). If no template file exists, it is created. If no file exists at time of creation of reviews, default template is used.

Reviews index

:VimwikiReviewIndex opens reviews index file and automatically generates content for current vimwiki (count may be passed as first argumeny to select vimwiki).

Keymaps

Plugin creates keymaps by default which can be disabled by setting g:vimwiki_reviews_disable_maps option to 1.

By default, these are very similar to default maps for vimwiki:

  • <Leader>wrww invokes :VimwikiWeeklyReview
  • <Leader>wrwp invokes :VimwikiPrevWeeklyReview
  • <Leader>wrwn invokes :VimwikiNextWeeklyReview
  • <Leader>wrtw invokes :VimwikiWeeklyTemplate
  • <Leader>wrmm invokes :VimwikiMonthlyReview
  • <Leader>wrmp invokes :VimwikiPrevMonthlyReview
  • <Leader>wrmn invokes :VimwikiNextMonthlyReview
  • <Leader>wrtm invokes :VimwikiMonthlyTemplate
  • <Leader>wryy invokes :VimwikiYearlyReview
  • <Leader>wryp invokes :VimwikiPrevYearlyReview
  • <Leader>wryn invokes :VimwikiNextYearlyReview
  • <Leader>wrty invokes :VimwikiYearlyTemplate
  • <Leader>wri invokes :VimwikiReviewIndex

All of the maps are mapped to corresponding <Plug> mappings, which are named the same as commands used. For example:

<Leader>wrww maps to <Plug>VimwikiWeeklyReview which invokes :VimwikiWeeklyReview

Templates

Template filles will just be copied over to newly created reviews. Currently templates support %date% template which will be replaced with date of review.

License

MIT

vimwiki-reviews-lua's People

Contributors

esensar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vimwiki-reviews-lua's Issues

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.