Re: [Zim-wiki] Win32: popup cmd windows; ditaa plugin; toolbar icons

2012-10-25 Thread klo uo
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 klo...@gmail.com 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


Re: [Zim-wiki] Win32: GUI with native controls?

2012-10-25 Thread klo uo
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] CLI?

2012-10-25 Thread Svenn Are Bjerkem
On 24 October 2012 13:17, Jaap Karssenberg jaap.karssenb...@gmail.com wrote:
 On Wed, Oct 24, 2012 at 12:44 PM, John Geoffrey gmke...@gmail.com 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