Skip to content

Automaticaly synchronize vimwiki at read and write

Notifications You must be signed in to change notification settings

jerryyin/vimwiki-sync

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 

Repository files navigation

vimwiki-sync

This is a fork of vimwiki-sync, the original plugin automatically synchronised Vimwiki notes into a local git repository, with all changed files being automatically committed. This fork provides several improvements. These include:

  • Fully handle all supported (configured) extension and wiki paths
  • Refactored vimscript
  • Asynchronous operations (depends on vim-dispatch, and your personal sync.sh in notes directory)

A sample of sync.sh

#!/bin/bash

gstatus=`git status --porcelain`

# chdir to the directory of the script
cd "$(dirname "${BASH_SOURCE[0]}")

if [ ${#gstatus} -ne 0 ]
then
    git add --all
    git commit -m "Auto update: $gstatus"
    git pull --rebase
    git push
fi

About

Automaticaly synchronize vimwiki at read and write

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%