2012年6月19日火曜日

Vim Scheduler (viske.vim)

Overview

You can manage your tasks and todos with graphical time-line calendar on Vim. You can synchronize viske schedule with Google Calendar as well.


How to Use

Preparation

Create a directory to save task file. default directory path is "$HOME/Schedule/". You can change the directory path by setting "g:ViskeDir"

Start / Exit

  • Start: input ":Viske"
  • Quit: input "q" in normal mode. changed tasks are saved automatically.

Registration of Tasks

  1. Select the period on the time-line at which you want to make a task using visual mode.
  2. Enter a Return
  3. The cursor moves to sub-window and it becomes insert mode.
  4. Input your task.
  5. Enter a "Ctrl+r"

the sentence following ">" becomes a summary that is diplayed on the main window. You can describe more details below second line.

The minimum time unit is 30 minutes on main window. If you want to appoint accurate start and end time of tasks, you can edit the time directly in sub window.

Type of Task

During inputing a task in sub-window, you can appoint a type of a task with adding a "mark" at the head of a sentence. Types of tasks can be changed by setting "g:ViskeTaskTypeLabel"

markType
*Whole day
*+Todo
*!Todo(Important)
*+Todo(Done)
noneTask1
#Task2 (Leaving)
!Task3 (Important)
%Task4 (Meeting)
+Task5 (Private)

Keymappings

Main Window (top of the screen)
Keydesclocation
qquit after saveall
Qquit without saveall
RSave & Load tasksall
j, kMove cursor to upward/downward time-lineall
J, KMove cursor to upward/downward time-line or tasksall
h, lProceed cursor to 30 minutes later / earlierall
H, LProceed cursor to an hour later / earlierall
<, >Move a task to 30 minutes later / earlieron tasks
(, )Set the start time of a task ahead / back 30 minuteson tasks
{, }Set the end time of a task ahead / back 30 minuteson tasks
yyYank a taskon tasks
pPaste a taskon time-lines
ddDelete a taskon tasks
ccChange a taskon tasks
*Change a task type to Task1on tasks
#Change a task type to Task2on tasks
!Change a task type to Task3on tasks
+Change a task type to Task4on tasks
%Change a task type to Task5on tasks
+Change a whole day task to TODOwhole day task
*Change a TODO to whole day taskon TODO
-Make a status of TODO doneon TODO
!Make a status of TODO importanton TODO
Sub-Window (left bottom on the screen)
KeyDescMode
Ctrl+NSet start/end time ahead 15 minutesinsert
Ctrl+PSet start/end time back 15 minutesinsert
Ctrl+EToggle the target time (start/end time)insert
Ctrl+RRegister a taskall
Ctrl+ReturnRegister a taskall
ReturnRegister a tasknormal
Ctrl+WCancel inputing taskall
Calendar-Window
KeyDesc
ReturnJump to the date under cursor
Ctrl+NGo ahead next month
Ctrl+PGo ahead previous month

Commands

Commanddesc
:ViskeStart the Viske.
:ViskePrevMonthShow Previous month.
:ViskeNextMonthShow Next month.

Settings

VariablesDescExample
g:ViskeSubWinHeightHeight of the Sub-Window7
g:ViskeCalWinWidthWidth of the Calendar-Window25
g:ViskeDira directory path to save task files/var/Schedule/
g:ViskecutDownMsgTrim the summary of tasks or not0(default),1(trimming)
g:ViskeStartTimeStart time of a day8
g:ViskeEndTimeEnd time of a day20
g:ViskeWidthFuzzyAcceptable length that run over a screen4
g:ViskeLangLanguage setting"jp"
g:ViskeTaskTypeLabelDisplay name of each task typerefer following
g:ViskeDayLabelDisplay name of a dayrefer following

To modify the display name of tasks or days, you can refer following example of setting in vim.rc

let g:ViskeTaskTypeLabel=['\ ', 'seminar', 'family', 'job', 'canceled', 'TODO']
let g:ViskeDayLabel = ['S', 'M', 'Tu', 'W', 'Th', 'F', 'S']

Color Scheme

Viske includes color scheme for 256 color terms.viske.bright256 has a bright background color and viske.dark256 has a dark background color.

colorscheme desert256 "General Colorscheme
colorscheme viske.dark256 "Viske Colorscheme

If you want to customize each color of Viske, you can reffer the below image.


Screen shots

gVim default color

16 default color

colorscheme: bright256

colorscheme: dark256

Download / Install

with Vundle

add the bellow setting to your vim.rc, and input command ":BundleInstall" on vim.

Bundle 'vimyum/viske'

without Vundle

Download from below site(GitHub) and deploy properly.

https://github.com/vimyum/viske

0 件のコメント:

コメントを投稿