lukaszkorecki / workflowish

A todo "plugin" for Vim, inspired by https://workflowy.com/
http://www.vim.org/scripts/script.php?script_id=3959
MIT License
123 stars 13 forks source link

Changing the .wofl format to make comments compatible with workflowy #10

Open TheGrandmother opened 8 years ago

TheGrandmother commented 8 years ago

The format workflowy uses looks like this:

Cool bullet

- Another even cooler bullet
  "A cool comment"
  - Another rather okay bullet
    "Comments!"
    - Wokflowy <3 Vim
  - [COMPLETE] A very "meh" bullet
    "Although it is completed"

I don't really se why the .wolf format doesn't conform to this syntax?

Having the .wofl format conform to the workflowy syntax would be awesome since one could then easily keep ones workflowy and workflowish in sync easier.

If there is some reason why .wofl should not conform to this I could volunteer to write a conversion script for the plugin. I have always wanted to learn vimscript anyway :)

lukaszkorecki commented 8 years ago

Having moved to Emacs (and org-mode) I have no opinion on this :-)

@flugsio @hangtwenty thoughts?

TheGrandmother commented 8 years ago

"Having moved to Emacs" ^-^

lukaszkorecki commented 8 years ago

@TheGrandmother and I don't even use any vi emulation layer

TheGrandmother commented 8 years ago

@lukaszkorecki ...

flugsio commented 8 years ago

That's the export format (do they support import?), i feel the [COMPLETE] thingy is to verbose.

I think it would be quite easy for you to have the workflowy format, create a fork and modify the regexes https://github.com/lukaszkorecki/workflowish/blob/master/syntax/workflowish.vim

Not sure if anything else would break. There isn't many features, most of them rely on the indentation. I did have a shortcut for toggling complete-status, but now I just use r to replace the character and I like it better.

I haven't seen the quotes before. I gave up on workflowy many years ago while waiting for an api, and now I don't have any reason to use it, so the format maybe changed.

There is a conversion TO workflowish already, basically ugly regexps https://github.com/lukaszkorecki/workflowish/blob/master/ftplugin/workflowish.vim#L265 but at least it's tested ;) https://github.com/lukaszkorecki/workflowish/blob/master/t/convert_from_workflowy.vim Feel free to fix it if broken, and maybe adding a reverse conversion.

TheGrandmother commented 8 years ago

If you just copy paste text formatted correctly it gets converted in to workflowy bullets :)

Cool! I'll look in to fixing it.