Re: [Zim-wiki] CLI?
On Fri, Oct 26, 2012 at 12:01 AM, Svenn Are Bjerkem wrote: > On 24 October 2012 13:17, Jaap Karssenberg wrote: >> On Wed, Oct 24, 2012 at 12:44 PM, John Geoffrey 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. Regards, Jaap ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Win32: popup cmd windows; ditaa plugin; toolbar icons
On Thu, Oct 25, 2012 at 8:28 PM, klo uo wrote: > Changing line 156 in zim/applications.py: > > > p = subprocess.Popen(argv, cwd=cwd, stdout=open(os.devnull, 'w'), > stderr=subprocess.PIPE) > > > to: > > > if os.name == 'nt': > # http://code.activestate.com/recipes/409002/ > startupinfo = subprocess.STARTUPINFO() > startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW > p = subprocess.Popen(argv, cwd=cwd, stdout=open(os.devnull, 'w'), > stderr=subprocess.PIPE, startupinfo=startupinfo) > else: > p = subprocess.Popen(argv, cwd=cwd, stdout=open(os.devnull, 'w'), > stderr=subprocess.PIPE) > > > stops popup windows, and works great. As it should ;) Thanks, will add that fix to the trunk. Regards, Jaap ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] CLI?
On 24 October 2012 13:17, Jaap Karssenberg wrote: > On Wed, Oct 24, 2012 at 12:44 PM, John Geoffrey 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. -- Svenn ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Win32: GUI with native controls?
Figured it out I wasn't aware that I had ".gtkrc-2.0" file in my %USERPROFILE% folder, put by some application perhaps Everything smooth, now that plugins doesn't pop cmd windows and Zim looks like rest of OS GUI Cheers :) ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Win32: GUI with native controls?
On Wed, Oct 24, 2012 at 1:15 AM, Greg Warner wrote: > Use "--standalone" to get zim to work with pythonw.exe. > > My windows instance of zim looks native to me and I don't recall doing > anything special. Thanks for the tip Greg, Now I can run without attached console, but GTK looks the same unfortunately. Do you maybe have any other idea, where from PyGTK reads it's configuration? ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Win32: popup cmd windows; ditaa plugin; toolbar icons
Changing line 156 in zim/applications.py: p = subprocess.Popen(argv, cwd=cwd, stdout=open(os.devnull, 'w'), stderr=subprocess.PIPE) to: if os.name == 'nt': # http://code.activestate.com/recipes/409002/ startupinfo = subprocess.STARTUPINFO() startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW p = subprocess.Popen(argv, cwd=cwd, stdout=open(os.devnull, 'w'), stderr=subprocess.PIPE, startupinfo=startupinfo) else: p = subprocess.Popen(argv, cwd=cwd, stdout=open(os.devnull, 'w'), stderr=subprocess.PIPE) stops popup windows, and works great. As it should ;) On Sun, Oct 21, 2012 at 11:22 PM, klo uo wrote: > 1. plugin commands (insert equation, insert dot graph, etc) open popup cmd > windows when executed which I think looks bad. I browsed plugin folder and > it seems like plugins call "zim.applications.Application" module for command > execution, but this module is unavailable for user tweaks. I know that I can > download Zim source, but then I have to install all dependencies which makes > the task undesired. So my question is, is there any way I can remedy popup > cmd windows while executing plugins? ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp