workflowish


Ⅰ. 插件描述

A todo "plugin" for Vim, inspired by https://workflowy.com/

Ⅱ. 基本信息

创建日期:  2012-03-02
使用用户:  14
Github星:  112
插件作者:  Łukasz Korecki

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'lukaszkorecki/workflowish'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'lukaszkorecki/workflowish'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'lukaszkorecki/workflowish'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/lukaszkorecki/workflowish

Ⅳ. 文档说明

# Workflowish

Build Status

Simple TODO list plugin for Vim, inspired by Workflowy.com

Screenshot

vimshot

Why?

It started with a tweet

tweetshot

Here's what was "attached":

# vi: fen foldmethod=indent :
* lol
  * lol
    * wat
    * wut
+---  2 lines: * wee ------------------------------------------------------
    * meh
  * ouch

Then I started hacking on a little plugin-ish thing and came up with workflowish

folded

How?

By defining a simple syntax in Vim and using brilliant folding capabilities workflowish can simulate 99% of Workflowy's features.

Features?

  • searching (Vim is pretty good at it)
  • deleting (as above)
  • folding and a zoom/focus mode

    • zq to focus on current item / toggle off
    • zp move focus to parent item
    • za toggles folding. See Vim wiki: Folding
  • notes (just add \ in the beginning of the line to start a comment)
  • vimgrep for filtering lines
  • todos:

    • a todo which is not completed is a line which starts with *
    • completed todo starts with a -
  • convert from workflowy plain text export

    • in a .wofl file or after :set ft=workflowish, run :call workflowish#convert_from_workflowy() to convert the whole buffer
  • split windows in vim makes it easy to organize big lists

Thanks to the long running tradition, workflowish files have .wofl extension.

Installing

Use Tim Pope's Pathogen.

New to Pathogen? It's easy. You "install a plugin" by putting its files in a directory. i.e. cd ~/.vim/bundle && git clone https://github.com/lukaszkorecki/workflowish but please, read the Pathogen README.)

Optional configuration tweak

This is not necessary for most users, but if you're a perfectionist you can do it. Add this to your .vimrc to fix an edge-case with folding single-items:

autocmd BufWinLeave *.wofl mkview
autocmd BufWinEnter *.wofl silent loadview

Legal

MIT (c) Workflowish Team

Maintainers

15 Jimmie Elvenmark
10 Łukasz Korecki

4 hangtwentyy

添加新评论