← Back to team overview

zim-wiki team mailing list archive

Re: CLI?


On Fri, Oct 26, 2012 at 12:01 AM, Svenn Are Bjerkem
<svenn.bjerkem@xxxxxxxxxxxxxx> wrote:
> On 24 October 2012 13:17, Jaap Karssenberg <jaap.karssenberg@xxxxxxxxx> wrote:
>> On Wed, Oct 24, 2012 at 12:44 PM, John Geoffrey <gmkeros@xxxxxxxxx> wrote:
>>> I was thinking about a ncurses interface. But the general idea was that I
>>> would be able to write, open, and edit zim pages in the cli, instead of
>>> having to import them manually after writing.
>> How do you see the use case? Would this ncurses interface be the only
>> interface you use, or do you use it to edit pages while you still use
>> the Gtk interface to browse the data etc. ?
>> In the 2nd case I would suggest looking into an extension for your
>> editor of choice (vim / emacs / ...) to do a bit of syntax
>> highlighting of zim's wiki syntax and maybe show a list of pages on
>> the side. Since you use the gtk version for other stuff, you can keep
>> it simple.
> I am using vim plugins for things like trac, git, dokuwiki and
> wordpress and find these a great step forward when writing and
> documenting code. I use zim for daily journal and tracker. Sometimes I
> find copy-paste from vim to zim a bit tedious due to the differing use
> of copy-paste in the applications. The dokuvimki plugin comes with a
> bunch of embedded python code to use modified xmlrpc calls to the
> wiki. I haven't checked how easy it is to write my own wrapper around
> any zim api to circumvent the GUI to access and create new pages from
> vim. Depends on how tided the GUI is with the rest of the code.

Thanks for pointing out dokuvimki, I did know it existed, and frankly
I was unaware of how easy it is to put python extensions in vim.

At first glance non of the functions used by this plugin require code
that is in the GUI modules. So I think it would be rather
straightforward to write a python module for zim that has the same API
as dokuwikixmlrpc, then modify the dokivimki plugin to use that module
and we are all set.

Unfortunately no time for hacking this weekend, but maybe I can have a
stab at the interface module next week.



Follow ups