Re: [Zim-wiki] Using Zim as document editor

2023-01-21 Thread Joseph Reagle

Hi Johan, FYI: there's been a long-standing issue for Zim to move to the 
markdown format, and supposedly some work has been done, but I don't know the 
status:

https://github.com/zim-desktop-wiki/zim-desktop-wiki/issues/26

A method of converting any format is certainly an interesting idea.

Please see my comments after your text (below).

On 1/21/23 09:34, Johan Vromans wrote:

While this works nice for transparently loading/storing of alien documents
there's still one important feature missing: zim uses the timestamp of the
zim document to detect external changes and this timestamp is not updated
when external tools modify the alien document.


Do you mean Zim regularly polls the files (via something like 
`os.path.getmtime(path)`) within the Zim folder? If the user were to register 
other filetypes (e.g., json) could it not simply watch those files within the 
Zim folder as well?


___
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] Zim 0.75 released !

2022-10-04 Thread Joseph Reagle

Carlo Cabrera (@carlocab on Github) seems to be the main person for the Brew, 
not sure if they are on this list. Since 0.75 showed up in Brew faster than in 
the [official releases][or] -- for which there's still no MacOS package -- I 
didn't know if the releases went to Brew.

But it looks like they continue to be different builds, with different paths 
and install parameters, where Brew is quick to update but weird, and official 
is slow to release but works?

There was an [issue then discussion][is] trying to track this, but it hasn't 
received any news in a while. I've gone back to 0.74.3_153 for now.

[or]: https://gitlab.com/dehesselle/zim_macos/-/releases
[is]: https://github.com/zim-desktop-wiki/zim-desktop-wiki/issues/1746

On 22-10-04 10:54, Jaap Karssenberg wrote:

Sorry but I can't answer hoe things work with the brew package. Does it list a 
specific maintainer?

Regards,

Jaap

Op ma 3 okt. 2022 19:11 schreef Joseph Reagle mailto:joseph.2...@reagle.org>>:

I've uninstalled the various versions I had and I think I am presently 
running 0.75 from brew. However:

1. Does the brew version keep settings back in `~/.config/zim` -- rather 
than `~/Library/Application\ Support/org.zim-wiki.Zim/zim/`?
2. How do I [increase the font size][2] of the whole app?
3. This version doesn't have a help/about with which to check the version.
4. This version has a binary in `/opt/homebrew/Cellar/zim/0.75.0/bin/zim` 
which is not on most paths; similarly, there's no `Zim.app` for launchers.

[2]: https://github.com/zim-desktop-wiki/zim-desktop-wiki/issues/1773 
<https://github.com/zim-desktop-wiki/zim-desktop-wiki/issues/1773>



___
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] Zim 0.75 released !

2022-10-03 Thread Joseph Reagle

I've uninstalled the various versions I had and I think I am presently running 
0.75 from brew. However:

1. Does the brew version keep settings back in `~/.config/zim` -- rather than 
`~/Library/Application\ Support/org.zim-wiki.Zim/zim/`?
2. How do I [increase the font size][2] of the whole app?
3. This version doesn't have a help/about with which to check the version.
4. This version has a binary in `/opt/homebrew/Cellar/zim/0.75.0/bin/zim` which 
is not on most paths; similarly, there's no `Zim.app` for launchers.

[2]: https://github.com/zim-desktop-wiki/zim-desktop-wiki/issues/1773


___
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] Zim 0.75 released !

2022-10-03 Thread Joseph Reagle

Thank you Jaap!

I'm confused about the Mac packages. The [website][1] only shows 0.74.3; the 
brew shows 0.75.0 but the `help` in the [app shows 0.74.3][2].

[1]: https://gitlab.com/dehesselle/zim_macos/-/releases
[2]: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/zim.rb

On 22-10-01 08:09, Jaap Karssenberg wrote:

Zim release 0.75 is now available. It took quite a bit longer than I had 
expected (as usual, so much for estimations...).



___
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] Old tasklist interface (Was: RFC: New Tasklist User Interface)

2022-02-08 Thread Joseph Reagle

Thanks for the clarification, that helps me put a point on my issue: "upper 
level" bullets -- even if closed -- appear in the Task List as active even if their 
sub-items are not *yet* active and not shown themselves because of their dates.

That is, if an open checkbox that isn't yet active because of its date is 
precluded from the active item list, shouldn't it's closed parent? And then, 
once it is within the active date range, it and its parent reappear in the task 
list.

```
[*] @misc
[ ] >2022-04 misc item 1 <2022-06
[ ] >2022-04 item 2 <2022-04-21
[ ] >2022-04 item 3
[ ] >2022-05 item 4
```
___
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


[Zim-wiki] Old tasklist interface (Was: RFC: New Tasklist User Interface)

2022-02-08 Thread Joseph Reagle

In the current task plugin, what is the meaning of `[<]` and `[>]`?

Also, in the screenshot you can see I have some task items that are checked 
because they are upper level items with an @edu tag that *could* have subitems 
and I want those subitems to inherit the parent tag. But since they have no 
open subitems presently, I'd like for them to not show up in the task list. 
Shouldn't a `[x]` or `[*]` keep something from showing up in the task list (but 
still permit open subitems to inherit the tag)?

___
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] How to increase font size, especially task plugin

2021-12-03 Thread Joseph Reagle

Okay: https://github.com/zim-desktop-wiki/zim-desktop-wiki/issues/1773

On 21-12-03 05:20, Jaap Karssenberg wrote:

No easy way at the moment to only adress the side pane in CSS. However e.g. the 
tasklist uses a treeview, so you could modify the text size for the treeview 
class only; will also affect the page index and other instances of a treeview, 
but not the textview showing the page.

 From the Gtk reference: GtkTreeView has a main CSS node with name treeview and 
style class .view

Please file a ticket for this and I will add some widget names to make this 
easier.


___
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] How to increase font size, especially task plugin

2021-12-02 Thread Joseph Reagle

BTW: I see I can just clobber everything and make it all a bit bigger, but then I lose 
the ability to dynamically "zoom" text size:

```
* {
  font-size: 103%;
}
```

On 21-12-01 09:44, Joseph Reagle wrote:

I'd like to update the GTK font size of the application (not pageview text) 
fonts, especially the task list.

After reading this:

https://zim-wiki.org/manual/Help/Config_Files.html

I've created `gtk.css` file in `~/Library/Application 
Support/org.zim-wiki.Zim/gtk-3.0`.

I can change the pageview-text background and foreground color following the 
example, but how do I increase the font size of the panes? And when it comes to 
the task list, I can't find a CSS id; I've look for `widget_set_css(...)` and 
`widget.set_name(...)` in its code:

https://github.com/zim-desktop-wiki/zim-desktop-wiki/blob/85818b30a14c861061c553358262f822e7c067ca/tests/tasklist.py

I'm using zim 0.74.2 on macOS 12.0.1 21A559 arm64.

—Joseph

___
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


___
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


[Zim-wiki] How to increase font size, especially task plugin

2021-12-01 Thread Joseph Reagle

I'd like to update the GTK font size of the application (not pageview text) 
fonts, especially the task list.

After reading this:

https://zim-wiki.org/manual/Help/Config_Files.html

I've created `gtk.css` file in `~/Library/Application 
Support/org.zim-wiki.Zim/gtk-3.0`.

I can change the pageview-text background and foreground color following the 
example, but how do I increase the font size of the panes? And when it comes to 
the task list, I can't find a CSS id; I've look for `widget_set_css(...)` and 
`widget.set_name(...)` in its code:

https://github.com/zim-desktop-wiki/zim-desktop-wiki/blob/85818b30a14c861061c553358262f822e7c067ca/tests/tasklist.py

I'm using zim 0.74.2 on macOS 12.0.1 21A559 arm64.

—Joseph

___
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] Broken on Monterey?

2021-11-09 Thread Joseph Reagle

Just discovered this issue, and it's probably the same:

https://github.com/zim-desktop-wiki/zim-desktop-wiki/issues/1712

On 21-11-09 15:44, Joseph Reagle wrote:

I just upgraded my office M1 Mac Mini to Monterey and all I can see is the 
title bar (attached). I made no other change.

`arch --x86_64 /usr/local/bin/python3.9 ~/bin/zim-desktop-wiki/zim.py 
~/joseph/plan/zim/ --standalone --geometry 900x1000-0-0`

After noticing this, I pulled the latest from github (commit 
41905b7ef026d10f8df2b9f2143bf8412990d98c). The problem persists.

Falling back to 0.7.35 gives me a black box under the title bar instead of a 
transparent region (attached).


___
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


[Zim-wiki] Broken on Monterey?

2021-11-09 Thread Joseph Reagle

I just upgraded my office M1 Mac Mini to Monterey and all I can see is the 
title bar (attached). I made no other change.

`arch --x86_64 /usr/local/bin/python3.9 ~/bin/zim-desktop-wiki/zim.py 
~/joseph/plan/zim/ --standalone --geometry 900x1000-0-0`

After noticing this, I pulled the latest from github (commit 
41905b7ef026d10f8df2b9f2143bf8412990d98c). The problem persists.

Falling back to 0.7.35 gives me a black box under the title bar instead of a 
transparent region (attached).
___
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] Zim version 0.74.0 released !

2021-09-16 Thread Joseph Reagle

Okay, I've left a comment on #1582 and fear 0.74 is a bad move for Mac users.

https://github.com/zim-desktop-wiki/zim-desktop-wiki/issues/1582


I've reverted back to 0.73.5 because the new CSD is non-standard on the Mac. It 
moves the maximize, minimize, and hide button to the right side of the window, 
and doesn't change between color and monochrome to show whether a window has 
active focus or not.


___
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


[Zim-wiki] something is wrong with the text on the website

2021-09-16 Thread Joseph Reagle

All the text on the page is red underlined (see attached).

It has a number of HTML problems.

https://validator.w3.org/check?uri=https%3A%2F%2Fzim-wiki.org%2F=%28detect+automatically%29=Inline=0
___
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] Zim version 0.74.0 released !

2021-09-15 Thread Joseph Reagle

[fixing from email address]

Thank you Jaap! I was able to rebuild it for Rosetta on an M1 Mac via:

arch --x86_64 /usr/local/Homebrew/bin/brew reinstall 
--build-from-source zim

Please see my comments after your text (below).

I'm having some issues with the new "editing bar". First, it's using its own 
button chrome instead of the native minimize, maximize, close buttons.

Second, window placement and geometry is now weird. On the latter, I place zim 
in my lower right corner, but now need to adjust it (`-25-75` instead of `0-0`) 
because of the new bars:

arch --x86_64 /usr/local/bin/zim $HOME/joseph/plan/zim/ --standalone 
--geometry 900x1000-25-75 &

Third, can I disable the editing toolbar on the bottom? I won't use it. I've enabled the 
toolbar plugin but that gives me yet another (vertical) bar to the right without removing 
the one on the bottom. Plus, the operation of the new "editing bar" seems slow.

None of this is a big deal, I'll stick with it for now. 


BTW: The reason the button chrome is an issue is because I rely on it to tell 
me if the Zim window is focused for keyboard input. When I launch it with the 
following script, the Zim window won't have focus, and so if I type something 
the keystrokes go into a different app. I've added the hack to keep trying to 
focus the Zim window, and it mostly works, but I'm also dependent on the native 
window chrome to tell me the Zim window has focus.

=

#!/bin/bash

arch --x86_64 /usr/local/bin/zim $HOME/joseph/plan/zim/ --standalone --geometry 
900x1000-25-75 &

# run every half second since I don't know how long zim will take to appear
echo "0"
sleep 0.5
# osascript -e 'tell application "Python" to activate windows where name contains 
"Zim"' &
osascript -e 'tell application "Python" to activate windows where name contains 
"Zim"' &
echo "1"
sleep 0.5
osascript -e 'tell application "Python" to activate windows where name contains 
"Zim"' &
echo "2"
sleep 0.5
osascript -e 'tell application "Python" to activate windows where name contains 
"Zim"' &
echo "3"
exit 1


___
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] Latency on Mac BigSur

2021-07-21 Thread Joseph Reagle



Hi Pushkaraj, I use Zim on a M1 BigSur and don't experience latency. It's the 
only homebrew install I'm still using with Rosetta and built it from source. 
Even if you aren't on an M1, it might be worth trying?

brew install python3
brew postinstall python3
/usr/local/opt/python@3.9/bin/python3.9 -m pip install --upgrade pip 
pygtkspellcheck
/usr/local/Cellar/python@3.9/3.9.5/bin/pip3 install setuptools 
pyenchant pyxdg
brew install --build-from-source zim
# ln ~/bin/zim to /usr/local/Cellar/zim/0.73.5/bin/zim

___
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


[Zim-wiki] FYI: Zim on homebrew x86_64

2021-02-11 Thread Joseph Reagle
Homebrew 3.0 was just released with some big changes under the hood to 
accommodate arm64 (Apple M1). 

https://brew.sh/2021/02/05/homebrew-3.0.0/

Switching my terminal over to M1 mode -- *not* Rosetta 2 -- homebrew said there 
was no package for Zim. And I failed trying to use Zim from source or maintain 
an x86_64 version of homebrew while my Terminal was otherwise in M1 mode. 
Things break around Zim python GTK dependencies. 

I returned to using my terminal in x86_64 mode (with Rosetta 2), but others 
will probably be encountering this issue soon.

(My thanks to whoever has been maintaining the Zim brew, and whoever sorts this 
out!)

___
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] Zim release 0.73.3

2020-10-17 Thread Joseph Reagle
On 10/16/20 12:55 PM, Joseph Reagle wrote:
> Thanks Jaap! BTW: I'm now seeing new GTK warnings:

Similarly, running export from the command line yields:

```
WARNING: XDG_RUNTIME_DIR is not set, using 
/var/folders/2l/73vdx0sd5rvcn38yg036h650gp/T/zim-reagle as a fallback
```

___
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] Zim release 0.73.3

2020-10-16 Thread Joseph Reagle
Thanks Jaap! BTW: I'm now seeing new GTK warnings:

```
╰─➤  python3.8 $HOME/bin/zim-latest/zim.py $HOME/joseph/plan/zim/ --standalone 
--geometry 900x1000-0-0
WARNING: XDG_RUNTIME_DIR is not set, using 
/var/folders/g9/nm8_blpd5hx0vlhmc3x45h34gn/T/zim-reagle as a fallback

(zim.py:95432): Gtk-WARNING **: 12:55:06.625: gtk_window_parse_geometry() 
called on a window with no visible children; the window should be set up before 
gtk_window_parse_geometry() is called.
```

___
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


[Zim-wiki] Changing accelerators

2020-06-16 Thread Joseph Reagle
I wanted to remap a key, but the following page suggests two methods. 


 https://github.com/jaap-karssenberg/zim-wiki/wiki/Defining-custom-keybindings


The first link no longer has the spoken of section ("Changing accelerators") 
and the second no longer exists.

Is it possible to remap shortcut keys?



___
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] Zim 0.73 released !

2020-06-08 Thread Joseph Reagle

On 6/6/20 2:39 PM, Jaap Karssenberg wrote:
> Although a bit delayed, I just release zim 0.73.

Excellent Jaap, thank you!

BTW: I'm seeing the following warnings.

```
** (zim.py:29089): WARNING **: 08:15:11.498: iso_639.xml: Failed to open file 
“/usr/share/xml/iso-codes/iso_639.xml”: open() failed: No such file or directory

** (zim.py:29089): WARNING **: 08:15:11.498: iso_3166.xml: Failed to open file 
“/usr/share/xml/iso-codes/iso_3166.xml”: open() failed: No such file or 
directory

WARNING: /Users/reagle/bin/zim-0.73.0/zim/plugins/osx_menubar.py:28: 
PyGIWarning: GtkosxApplication was imported without specifying a version first. 
Use gi.require_version('GtkosxApplication', '1.0') before import to ensure that 
the right version gets loaded.
  from gi.repository import GtkosxApplication

WARNING: 
/Users/reagle/bin/zim-0.73.0/zim/plugins/attachmentbrowser/thumbnailer.py:289: 
SyntaxWarning: 'NoneType' object is not callable; perhaps you missed a comma?
  raise None(None)
```


 

___
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


[Zim-wiki] Zim export to HTML with fragment identifiers

2020-01-22 Thread Joseph Reagle
Is it possible for headings, in exported HTML, to have a fragment identifier 
associated with them?



___
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] zim releases 0.70-rc3 and 0.69.1

2019-02-19 Thread Joseph Reagle
On 2/19/19 4:07 AM, Jaap Karssenberg wrote:
> I would urge everyone to start using the 0.70 release candidate
> instead of the 0.69.1 version, but if you are stuck with Gtk2 you
> should upgrade from 0.69 to 0.69.1.

Perhaps other MacOS people are stuck because of the copy/paste bug? If so, 
there's a bug for the issue on zim and at GTK:

  https://gitlab.gnome.org/GNOME/gtk/issues/1584

___
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


[Zim-wiki] using virtualenv or pipenv? (Was: Zim release 0.69 and plan for 0.70)

2019-01-03 Thread Joseph Reagle


I mitigated and closed the issue below by taking advantage of virtualenv.
This was my first time using it. I started trying to use pipenv but it was 
choking on something related to pygobject. I was able to get around that by way 
of virtualenv: `/usr/local/bin/python2 -m virtualenv --system-site-packages 
--python=python2 env`.

In any case, I know very little about python packaging, but wouldd it be 
possible to upgrade beyond the setup.py into something like pipenv or 
virtualenv? Different platforms might still have different C packages with 
different names, but could this help with the pip version 2 vs 3 stuff?

On 1/2/19 9:38 AM, Joseph Reagle wrote:
> Sadly, this persists, my gtk2 version is unusable because an extra 
> title bar/tab offsets the mouse pointer.
> 
> https://github.com/jaap-karssenberg/zim-desktop-wiki/issues/587

___
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] Zim release 0.69 and plan for 0.70

2019-01-02 Thread Joseph Reagle


On 12/21/18 10:34 AM, Joseph Reagle wrote:
> Well, I've gotten myself in a knot I can't easily undo.

Sadly, this persists, my gtk2 version is unusable because an extra title 
bar/tab offsets the mouse pointer.

  https://github.com/jaap-karssenberg/zim-desktop-wiki/issues/587

The gtk3 version crashes on any paste (actually, it's a Python malloc).

  https://github.com/jaap-karssenberg/zim-desktop-wiki/issues/590

If I want to paste, I could open the source view and do it in my text editor, 
but that crashes too.

  https://github.com/jaap-karssenberg/zim-desktop-wiki/issues/595

  

___
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] Zim for chromebook

2019-01-02 Thread Joseph Reagle
Sadly, that's just a "app name goes here" template with "zim" stuck in. I don't 
know of anyway of install zim on a Chromebook as a Chrome OS or Android app.

On 1/1/19 10:42 AM, Laecy wrote:
> Found this site
> (https://www.bestchromebookapps.com/zim-for-chromebook) with
> installation instructions, but the icon was unfamiliar and as far as
> I can tell, this book should be compatible with Android apps, but zim
> isn’t showing in either the play store or the web store.

 


___
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] Zim release 0.69 and plan for 0.70

2018-12-21 Thread Joseph Reagle


On 12/21/18 2:46 AM, Jaap Karssenberg wrote:
> I don't recognize the issues with the side pane you mention, might be
> MacOS specific. Please use the github issue tracker to report them
> instead of the mailing list.

Well, I've gotten myself in a knot I can't easily undo. When using zim 0.69 my 
mouse pointer is now offset by a bunch of pixels, so to click anything, I have 
to click above it.  This was created by my attempts to try 0.70. In 0.70, I 
can't use the left panel at all (it's gone) and basic functionality like jump 
is broken (see below). I'm happy to document bugs, will you have a label for 
gtk3 or 0.70 issues? (The diagnostic below is one I suffer in 0.69 too, but it 
never interfered with jump.)




```
This is zim 0.70
Platform: posix
Locale: en_US UTF-8
FS encoding: utf-8
Python: (3, 7, 1, 'final', 0)
PyGObject: (3, 30, 4)
No bzr version-info found

=== Traceback ===
  File "/Users/reagle/bin/zim-desktop-wiki-master/zim/gui/widgets.py", line 
2995, in do_response
destroy = self.do_response_ok()
  File "/Users/reagle/bin/zim-desktop-wiki-master/zim/gui/mainwindow.py", line 
1002, in do_response_ok
self.callback(path)
  File "/Users/reagle/bin/zim-desktop-wiki-master/zim/gui/mainwindow.py", line 
770, in open_page
self.save_uistate()
  File "/Users/reagle/bin/zim-desktop-wiki-master/zim/gui/mainwindow.py", line 
700, in save_uistate
self.uistate['windowpos'] = tuple(self.get_position())
  File "/Users/reagle/bin/zim-desktop-wiki-master/zim/config/dicts.py", line 
538, in __setitem__
raise KeyError('Config key "%s" has not been defined' % k)
KeyError: 'Config key "windowpos" has not been defined'
```

___
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] Zim release 0.69 and plan for 0.70

2018-12-20 Thread Joseph Reagle
Two other things with the left pane:

- how to increase the font size? I don't think gtk+3 has a `.gtkrc-3.0` file
- clicking on a page in the pane doesn't open that page, it now requires a 
double click


___
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] Zim release 0.69 and plan for 0.70

2018-12-20 Thread Joseph Reagle


Great news!

On 12/16/18 5:32 PM, Jaap Karssenberg wrote:
> Also there will be work needed to update the windows installer. With
> the previous release in April, Brendan stated he was hoping for
> volunteers to pick up porting the windows installer for Python3 /
> Gtk3.

For the MacOS folks, I had to `brew install pygobject3 --with-python3`.

After a quick look, the indexing seems much faster. But I had to quickly
abandon because when I tried to resize the left navigation/page pane it
took up 90% of the window and would not budge.

___
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] ZIm and email integration

2018-11-09 Thread Joseph Reagle
On 11/9/18 9:15 AM, nik wrote:
> What I need is links in zim, so that when I click on the link email
> message opens.
I don't think this is possible: I don't think there's any URI scheme that 
corresponds to a local Message-ID.

Back in 2005, I used email archives that could reference a message by way of 
Message-ID. I then created an email filter that appended the URL of that 
archive with its specfic Message-ID to the signature of the email. That way it 
made it very easy for me to click on or save a link (in Zim) to a specific 
message.

https://reagle.org/joseph/pelican/praxis/mailman-message-id-and-persisten-uris.html

I suppose you could create a local archive that did something similar.

___
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] Installing Zim on the Mac

2018-09-19 Thread Joseph Reagle
On 9/18/18 12:47 PM, Christoph Held wrote:
> Are you sure? On my Mac the brew-installed zim looks
> indistinguishable to the manually installed one and both are sharp
> enough.

Maybe it was a reboot, but now they look identical...

___
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] Installing Zim on the Mac

2018-09-18 Thread Joseph Reagle
On 9/18/18 11:44 AM, Christoph Held wrote:
> Whoever made the brew install formula available for zim gets my heartfelt 
> thanks. 

Confirmed and indeed! The brew install is using fuzzy/aliased fonts; I'll 
continue using a manual install until I figure out how to disable, but this is 
good news.


╰─➤  brew info zim
zim: stable 0.68 (bottled), HEAD
Graphical text editor used to maintain a collection of wiki pages
http://zim-wiki.org/
/usr/local/Cellar/zim/0.68_1 (541 files, 7.6MB) *
  Poured from bottle on 2018-09-18 at 12:14:28
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/zim.rb
==> Dependencies
Build: pkg-config ✔
Required: gtk+ ✔, pygobject ✔, pygtk ✔, python@2 ✔
Optional: graphviz ✘, pygtksourceview ✘
==> Options
--with-graphviz
Build with graphviz support
--with-pygtksourceview
Build with pygtksourceview support
--HEAD
Install HEAD version
==> Analytics
install: 89 (30d), 495 (90d), 884 (365d)
install_on_request: 89 (30d), 493 (90d), 882 (365d)
build_error: 0 (30d)
```

___
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] Deleted Zim Files

2018-05-14 Thread Joseph Reagle
On 5/14/18 3:34 PM, Jace Bachi wrote:
> Attached is a screenshot of some files I recovered that  I thought
> may be what I was looking for .. no luck yet.

I don't see your screenshot attached, but zim is just a collection of a 
notebook.zip, text files and directories. For example, here's the top two 
directories of one of my notebooks.

```
─reagle@hom ~/data/2web/reagle.org/joseph/zim
╰─➤  t2 .
.
├── Archives
│   ├── 2011
│   ├── 2012
│   ├── 2012.txt
│   ├── 2013
│   ├── 2013.txt
│   ├── 2014
│   ├── 2015
│   └── 2015.txt
├── Home.txt
├── Teaching
│   ├── Assessment
│   ├── Assessment.txt
│   ├── Assignments
│   ├── Assignments.txt
│   ├── Best_Practices
│   ├── Best_Practices.txt
│   ├── Exercises
│   ├── Exercises.txt
│   ├── Meta_Tasks
│   ├── Meta_Tasks.txt
│   ├── Policies.txt
│   ├── Tutorials
│   └── Tutorials.txt
├── Teaching.txt
└── notebook.zim

```

___
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] start page for zim

2018-05-10 Thread Joseph Reagle
Okay, the save_uistate exception seems to result when I launch zim with the 
`--geometry 900x1000-0-0` argument. (I do this because it is not consistently 
remembered on MacOS.)


___
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] start page for zim

2018-05-10 Thread Joseph Reagle
Curiously, I only get these errors in one (my main) notebook. I can open other 
notebooks and not have these errors and their state is remembered...

On 5/3/18 8:52 AM, Dimitrij Lisov wrote:
> Also (and I suspect this is the crux) as I browse the pages I get these 
> errors:
> 
> ```
> DEBUG: BackgroundCheck finished
> Traceback (most recent call last):
>   File "/Users/reagle/bin/zim-0.68/zim/gui/__init__.py", line 2411, in 
> on_close_page
>     self.save_uistate()
>   File "/Users/reagle/bin/zim-0.68/zim/gui/__init__.py", line 2363, in 
> save_uistate
>     self.uistate['windowpos'] = self.get_position()
>   File "/Users/reagle/bin/zim-0.68/zim/config/dicts.py", line 549, in 
> __setitem__
>     raise KeyError('Config key "%s" has not been defined' % k)
> KeyError: 'Config key "windowpos" has not been defined'
> INFO: Open page: Misc:Housing (Misc:Housing)
> DEBUG: BackgroundCheck started
> DEBUG: BackgroundCheck finished
> Traceback (most recent call last):
>   File "/Users/reagle/bin/zim-0.68/zim/gui/__init__.py", line 2411, in 
> on_close_page
>     self.save_uistate()
>   File "/Users/reagle/bin/zim-0.68/zim/gui/__init__.py", line 2363, in 
> save_uistate
>     self.uistate['windowpos'] = self.get_position()
>   File "/Users/reagle/bin/zim-0.68/zim/config/dicts.py", line 549, in 
> __setitem__
>     raise KeyError('Config key "%s" has not been defined' % k)
> KeyError: 'Config key "windowpos" has not been defined'
> INFO: Open page: Misc:Finance (Misc:Finance)
> ```

___
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] start page for zim

2018-05-01 Thread Joseph Reagle
This problem is deeper than I expected and has to do with the state/cache: 
on_close_page ... self.save_uistate(). Here is my `notebook.zim`:

```
[Notebook]
disable_trash=False
document_root=
endofline=unix
home=Home
icon=
interwiki=jp
name=plan
profile=
shared=False
```

Whether shared is True or False, it keeps state in `$HOME/.cache` directory:

```
DEBUG: Running from a source dir: /Users/reagle/bin/zim-0.68
DEBUG: Set XDG_DATA_HOME to /Users/reagle/.local/share
DEBUG: Set XDG_DATA_DIRS to [, ]
DEBUG: Set XDG_CONFIG_HOME to /Users/reagle/.config
DEBUG: Set XDG_CONFIG_DIRS to []
DEBUG: Set XDG_CACHE_HOME to /Users/reagle/.cache
```

There, I deleted `notebook-Users_reagle_joseph_plan_zim/`. And hurray, I now 
start on the home page, but still the path state is never retained. After I 
browse a bunch of pages and quit, the state is:

```
[History]
list=[["Home",0,null]]
recent=[["Home",0,null]]
current=0
```

Also (and I suspect this is the crux) as I browse the pages I get these errors:

```
DEBUG: BackgroundCheck finished
Traceback (most recent call last):
  File "/Users/reagle/bin/zim-0.68/zim/gui/__init__.py", line 2411, in 
on_close_page
self.save_uistate()
  File "/Users/reagle/bin/zim-0.68/zim/gui/__init__.py", line 2363, in 
save_uistate
self.uistate['windowpos'] = self.get_position()
  File "/Users/reagle/bin/zim-0.68/zim/config/dicts.py", line 549, in 
__setitem__
raise KeyError('Config key "%s" has not been defined' % k)
KeyError: 'Config key "windowpos" has not been defined'
INFO: Open page: Misc:Housing (Misc:Housing)
DEBUG: BackgroundCheck started
DEBUG: BackgroundCheck finished
Traceback (most recent call last):
  File "/Users/reagle/bin/zim-0.68/zim/gui/__init__.py", line 2411, in 
on_close_page
self.save_uistate()
  File "/Users/reagle/bin/zim-0.68/zim/gui/__init__.py", line 2363, in 
save_uistate
self.uistate['windowpos'] = self.get_position()
  File "/Users/reagle/bin/zim-0.68/zim/config/dicts.py", line 549, in 
__setitem__
raise KeyError('Config key "%s" has not been defined' % k)
KeyError: 'Config key "windowpos" has not been defined'
INFO: Open page: Misc:Finance (Misc:Finance)
```

___
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] start page for zim

2018-05-01 Thread Joseph Reagle
On 5/1/18 1:49 PM, Mukli Krisztián wrote:
> The *Home Page* is the first page to open in a notebook *if you have
> no history yet, otherwise Zim will open the last page (if it is
> exists)! *

Yes, this is no longer working. 

My Zim pathbar is stuck on `Recent pages` with a particular sequence of a 
snapshot from the past. If I browse a bunch of pages, quit and relaunch, the 
recent activity is lost (and I'm stuck back on the same stupid start page).

> zim.py MyNotebookName :Home

That's a good tip, but I wish there was a way to reset/fix my pathbar.

___
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] start page for zim

2018-05-01 Thread Joseph Reagle
On 5/1/18 10:24 AM, jack wrote:
> maybe something has got stuck...
> 
> why not try setting it to something else and then set it back to the
> page you want?

Setting their homepage property does affect the page I am taken to you when I 
hit the homepage icon; it doesn't seem to affect the page zim starts with when 
it first launches. Is it supposed to?

___
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] start page for zim

2018-05-01 Thread Joseph Reagle
It is set, as I showed in the attached screenshot...?


On 5/1/18 9:01 AM, Dimitrij Lisov wrote:
> You can set your preferable site under "Home Page". The help
> (normally F1) describes it in detail, just search for "Properties".


___
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


[Zim-wiki] mac: upon launch have zim come to the foreground

2018-05-01 Thread Joseph Reagle
When I launch zim on MacOS its window doesn't come to the foreground. I have to 
select the window before I can start typing.

This is a hack, but it works with a tiny bit of patience:


```
#!/bin/bash

python2 $HOME/bin/zim-0.68/zim.py -D -V --geometry 900x1000-0-0 --standalone &


# run every half second since I don't know how long zim will take to appear
sleep 0.5
osascript -e 'tell application "Python" to activate windows where name contains 
"Zim"'
sleep 0.5
osascript -e 'tell application "Python" to activate windows where name contains 
"Zim"'
sleep 0.5
osascript -e 'tell application "Python" to activate windows where name contains 
"Zim"'
sleep 0.5
osascript -e 'tell application "Python" to activate windows where name contains 
"Zim"'


```

___
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


[Zim-wiki] start page for zim

2018-05-01 Thread Joseph Reagle
When I start zim, it's been opening on a page which I don't care much about. 
I'd prefer if it'd start with my Home page. Is this configured or saved 
somewhere?

___
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] Using start AND due date

2018-02-03 Thread Joseph Reagle
Trying 0.68-rc 1 doesn't solve the problem of my disappearing tasks after index 
from the terminal.

Some additional sleuthing indicates running index from the terminal is a likely 
culprit.

1. When I run `Update Index` from within zim it takes 5-6 seconds.
2. When I run zim --index on the command line, it completes in less than a 
second, so perhaps it fails and deletes my tasks in the index?

```
python2.7 zim.py --index  ~/joseph/plan/zim/notebook.zim
```

Should I be able to run the following with debug too? I get an error:

```
╰─➤  time python2.7 zim.py --debug --index  ~/joseph/plan/zim/notebook.zim
/usr/local/Cellar/python/2.7.14_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python:
 can't open file 'zim.py': [Errno 2] No such file or directory
python2.7 zim.py --debug --index ~/joseph/plan/zim/notebook.zim  0.01s user 
0.01s system 78% cpu 0.024 total
```


BTW I also get a warning messages from GTK when running:

```
2018-02-03 15:20:36.774 Python[72901:4385493] *** WARNING: Method 
userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should 
not be used in new applications. Use convertRectToBacking: instead.
```

___
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] Using start AND due date

2018-02-03 Thread Joseph Reagle
On 2/1/18 2:35 PM, Jaap Karssenberg wrote:
> For sure this should work - I use it all the time myself :)

I discovered there was a general problem with zim not picking up tasks on many 
of my pages. The only way I've been able to address it is to go through, 
manually, all of my pages and edit them a little bit (add and delete a new 
line) before zim will pick the tasks up again. The underlying syntax of that 
text, before and after, is exactly the same though.

Unfortunately, all of that is undone next time I export my wiki to HTML (which 
I do often) because I run `zim --index` before such exports (because of an 
earlier problem I don't recall), which causes zim to forget most of my tasks 
again!

Zim 0.67 on MacOS Sierra

___
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] Using start AND due date

2018-02-01 Thread Joseph Reagle
On 2/1/18 2:35 PM, Jaap Karssenberg wrote:
> For sure this should work - I use it all the time myself :)

I used it infrequently, but then it stopped working on the only entry I had, so 
I thought I misunderstood.

After retyping it in, it now works. So I suspect there was a problem with some 
confusion with the underlying syntax.

___
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] Window navigation on macOS

2018-01-06 Thread Joseph Reagle
On 1/6/18 2:13 PM, Chuck Esterbrook wrote:
> Navigation is difficult.

I agree.

> "...beyond command-tab" sounds like Command+Tab can switch between
> notebooks, but it does not switch between Zim Wiki notebook windows
> (or Chrome windows or Sublime windows).

If I have two notebooks open, I have two entries in the app switcher 
corresponding to Python.

___
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] Window navigation on macOS

2018-01-06 Thread Joseph Reagle
On 1/6/18 10:59 AM, Chuck Esterbrook wrote:
> Also, is there an accelerator/shortcut to cycle through the windows? 
> On Mac this is normally Command+Backtick which also works on Chrome 
> and Sublime.

I usually don't have two windows open, but I confirm there isn't a typical way 
to move between them beyond command-tab.


___
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] Zim Python errors

2017-07-25 Thread Joseph Reagle
Hello Gustavo,

I found that if I wanted spell checking to work, I had to install: pyenchant 
pyxdg pygtkspellcheck.

I am on MacOS 10.12.6 and I use pip2 from homebrew:

`/usr/local/bin/pip2 install pyenchant pyxdg pygtkspellcheck`

That installs:

- pyenchant==1.6.8
- pyxdg==0.25
- pygtkspellcheck==4.0.5

I'm unfamiliar with the build_sphinx issue but my suspicion is that your python 
install and paths aren't quite right.

Try `/usr/local/bin/pip2 install pyenchant pyxdg pygtkspellcheck` and let me 
know what it says.

___
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


[Zim-wiki] RC spewing debug info when exporting?

2017-06-22 Thread Joseph Reagle
I notice that 0.67-rc2 is spewing a lot of diagnostics on the command line. Has 
this behavior changed recently?



___
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] make task disappear from list before start date?

2017-05-15 Thread Joseph Reagle
On 5/15/17 5:04 AM, Christoph Held wrote:
> Now that the Due date plugin is included in the task plugin, I am
> missing the useful little popup window to set due dates. Hitting
> CTL-. (period) used to work but doesn’t now. Is that the expected
> behaviour on a Mac?

I'm not sure what you mean about "Due date plugin is included in the task 
plugin" but when I hit super+d I get the "Insert Date and Time" pop-up.

___
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] make task disappear from list before start date?

2017-05-11 Thread Joseph Reagle
On 5/11/17 8:55 AM, Jaap Karssenberg wrote:
> Yes, in the context menu there is "Only show active tasks".

But this isn't sticky across instantiations of the task list or zim itself...?


___
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


[Zim-wiki] Sticky "Only Show Active Tasks"?

2017-05-08 Thread Joseph Reagle
I've come to really like the before/after specification and don't miss "next:".

But is it possible that "Only Show Active Tasks" be sticky, across a single 
program instantiation or even multiple?

___
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] Issues with zim release 0.66

2017-05-08 Thread Joseph Reagle
On 5/8/17 8:07 AM, Jaap Karssenberg wrote:
> Yes, github offers zip per release tag: 
> https://github.com/jaap-karssenberg/zim-desktop-wiki/releases

It looks like Help/About Zim still reports it is 0.66...?


___
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] Issues with zim release 0.66

2017-05-08 Thread Joseph Reagle
Is this source downloadable as a zip?

On 5/8/17 2:38 AM, Jaap Karssenberg wrote:
> Just updated the PPA with a version "0.67~rc1", so release candidate for the 
> next version. This release candidate should fix two critical issues and a set 
> of smaller issues, more patches are still in the queue.

___
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] Github?

2017-05-02 Thread Joseph Reagle
Yes, but I expect a lot of people will find:

https://github.com/jaap-karssenberg/zim-wiki

I think that should be deleted.

On 5/2/17 8:35 AM, Mukli Krisztián wrote:
> Check this: https://github.com/jaap-karssenberg/zim-desktop-wiki

___
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] Github?

2017-05-02 Thread Joseph Reagle
>> I just checked Github for Zim and could not find the actual
>> project. There is only a placeholder.

When I looked for the repo, this is what I found too, I think this old project 
should be deleted.


___
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] Markdown headers convention

2017-01-27 Thread Joseph Reagle
Unfortunately, Zim uses a non-markdown syntax. Pandoc can convert markdow to 
zimwiki; and zim can export to markdown. But you are better off looking 
elsewhere if you want a markdown editor.

On 1/27/17 4:36 AM, Amir Baghban wrote:
> I have some documents that are produced in markdown format that I
> open and explore them with Zim. For better visualization I need to
> make zim to interpret the "headers" of this format. Are there any way
> to achieve this goal?

___
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] Zim glib errors on macOS Homebrew

2016-10-03 Thread Joseph Reagle
I restored my old packages, and zim is working again. I suspect the culprit is 
glib, which went from version 2.48.2 to 2.50 since my last update. Can anyone 
confirm?


On 10/3/16 12:30 PM, Joseph Reagle wrote:
> Help! Zim isn't working for me this morning. I updated my homebrew, that's 
> the only think that I think could have led to this...
> 
> Anyone seeing the same thing? Any suggestions?
> 
> ```
> ~/tmp/zim-0.65$ /usr/local/bin/python zim.py
> ERROR: No such file or directory
> 2016-10-03 12:27:36.029 Python[75439:1782910] *** WARNING: Method 
> userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It 
> should not be used in new applications. Use convertRectToBacking: instead.
> Traceback (most recent call last):
>   File "zim.py", line 53, in 
> exitcode = zim.main.main(*argv)
>   File "/Users/reagle/Downloads/zim-0.65/zim/main.py", line 452, in main
> zim.errors.exception_handler('Exception in main()')
>   File "/Users/reagle/Downloads/zim-0.65/zim/errors.py", line 101, in 
> exception_handler
> _run_error_dialog(error)
>   File "/Users/reagle/Downloads/zim-0.65/zim/errors.py", line 71, in 
> _run_error_dialog
> from zim.gui.widgets import ErrorDialog
>   File "/Users/reagle/Downloads/zim-0.65/zim/gui/__init__.py", line 256, in 
> 
> load_zim_stock_icons()
>   File "/Users/reagle/Downloads/zim-0.65/zim/gui/__init__.py", line 248, in 
> load_zim_stock_icons
> pixbuf = gtk.gdk.pixbuf_new_from_file(str(dir+file))
> glib.GError: Couldn't recognize the image file format for file 
> '/Users/reagle/Downloads/zim-0.65/data/pixmaps/add-bookmark.png'
> ```

___
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


[Zim-wiki] Zim glib errors on macOS Homebrew

2016-10-03 Thread Joseph Reagle
Help! Zim isn't working for me this morning. I updated my homebrew, that's the 
only think that I think could have led to this...

Anyone seeing the same thing? Any suggestions?

```
~/tmp/zim-0.65$ /usr/local/bin/python zim.py
ERROR: No such file or directory
2016-10-03 12:27:36.029 Python[75439:1782910] *** WARNING: Method 
userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should 
not be used in new applications. Use convertRectToBacking: instead.
Traceback (most recent call last):
  File "zim.py", line 53, in 
exitcode = zim.main.main(*argv)
  File "/Users/reagle/Downloads/zim-0.65/zim/main.py", line 452, in main
zim.errors.exception_handler('Exception in main()')
  File "/Users/reagle/Downloads/zim-0.65/zim/errors.py", line 101, in 
exception_handler
_run_error_dialog(error)
  File "/Users/reagle/Downloads/zim-0.65/zim/errors.py", line 71, in 
_run_error_dialog
from zim.gui.widgets import ErrorDialog
  File "/Users/reagle/Downloads/zim-0.65/zim/gui/__init__.py", line 256, in 

load_zim_stock_icons()
  File "/Users/reagle/Downloads/zim-0.65/zim/gui/__init__.py", line 248, in 
load_zim_stock_icons
pixbuf = gtk.gdk.pixbuf_new_from_file(str(dir+file))
glib.GError: Couldn't recognize the image file format for file 
'/Users/reagle/Downloads/zim-0.65/data/pixmaps/add-bookmark.png'
```



___
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


[Zim-wiki] zim 0.65 problem with index in template

2016-07-27 Thread Joseph Reagle
Hi all, since I upgraded to the latest version I've been having problems with 
my templates. Given the following command:

```
ird:~/tmp$ /usr/local/bin/python /Users/reagle/bin/zim-0.65/zim.py --export 
--recursive --overwrite --output=/Users/reagle/joseph/zwiki --format=html 
--template=~/tmp/zim-0.65/data/templates/html/Default.html 
/Users/reagle/joseph/zim --format=html --index-page index
```

The link to the index is broken, no matter whether I:

```
[ Up ]
[ Home ]
[ Index ]

```

In the index case, the file simply doesn't exist except at the root level.
In Up and Home, even if I test for those variables, the link that gets 
generated is None.

___
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


[Zim-wiki] Annoying QT Warning on Console

2016-06-08 Thread Joseph Reagle
Continuing my efforts to use Zim on OSX I note the following; perhaps this is 
fixed in later versions.
```
/usr/local/bin/python /Users/reagle/bin/zim-0.60/zim.py --export 
--output=/Users/reagle/joseph/zwiki --format=html 
--template=~/.local/share/zim/templates/html/codex-default.html 
/Users/reagle/joseph/zim --index-page index

Python[21760:69946] *** WARNING: Method userSpaceScaleFactor in class NSView is 
deprecated on 10.7 and later. It should not be used in new applications. Use 
convertRectToBacking: instead.
```

___
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] Links to certain subtitles

2016-02-01 Thread Joseph Reagle
Pandoc markdown supports user specified and automatic header IDs:

 

On 02/01/2016 03:37 PM, Colin Tedford wrote:
> Some prior art for linking to arbitrary text (on websites, which I
> would *love* if browsers implemented natively):
> http://indiewebcamp.com/fragmention

Hrmm I had not seen this, but it looks hackish. Of course, I don't know if 
any big browser supports XPointer for XHTML(5) documents, which was supposed to 
be the solution/path, so hacks might be all there is

___
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] curly brackets, escape them?

2016-01-07 Thread Joseph Reagle
Hi Jaap, thanks for the note. I understand your point, but it does strike me as 
a bug none-the-less in that I've typed something in to the GUI which is then 
changed upon reloading.  Does zim have no facilities for protecting/escaping 
special characters in the underlying source when they are typed in the GUI? 
(Yes, the users can use a code block, but that's putting the obligation on them 
to protect characters.) Shouldn't it be that I shouldn't have to know the 
underlying syntax when I'm typing in the GUI?

BTW: What is the code block plugin? Do you mean source view?

On 01/07/2016 10:18 AM, Jaap Karssenberg wrote:
> Realize I'm responding to a quite old mail. However wanted to clarify
> that this is not a bug but intended behavior. In zim's wiki syntax
> those double curly braces are used to denote images. So the broken
> rendering screenshot shows broken images since the text does not
> match a file name.
> 
> If you want to include wikipedia syntax in a zim page, it needs to be
> either formatted as verbatim text or included in a code block (using
> the plugin for code blocks). The rationale is that this is not normal
> text but some kind of code. So extra protection is needed to avoid
> conflicts with zim's code.


___
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] curly brackets, escape them?

2016-01-07 Thread Joseph Reagle
On 01/07/2016 03:21 PM, Paulo van Breugel wrote:
> As a side note, I use the 'insert code block' a lot. What would make
> it more intuitive to use, or faster in any case, is a shortcut, like
> for verbatim text.

Huh, I think I still must not understand this (using 0.60). When I want to edit 
the source, I type alt+s+s+enter and it comes up in my text editor. I don't 
really have a plugin...

___
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] curly brackets, escape them?

2016-01-07 Thread Joseph Reagle
On 01/07/2016 03:55 PM, Paulo van Breugel wrote:
> I was talking about using the 'insert code block' option, one of the
> solution Jaap mentioned earlier (menu: insert: code block). For
> verbatim text there is ctrl + T, but of course with code block there
> is in any case an additional step of selecting the code syntax.

I don't have that nor any plugin to check to include it. I wonder what version 
it was introduced in?

___
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] zim gtkspell using homebrew?

2015-12-17 Thread Joseph Reagle
Hello Indika, any news?

On 11/13/2015 04:23 PM, Indika Pathirage wrote:
> I think the brew package is called gtkspell3. You can use
> searchbrew.com  to search brew packages.

Yes, I have that installed (sorry, typed 'spelled' below). Are you saying you 
have it working using a homebrew install of python and gtk?


___
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] zim gtkspell using homebrew?

2015-11-13 Thread Joseph Reagle
Hello Indika,

On 11/13/2015 04:23 PM, Indika Pathirage wrote:
> I think the brew package is called gtkspell3. You can use
> searchbrew.com <http://searchbrew.com> to search brew packages.

Yes, I have that installed (sorry, typed 'spelled' below). Are you saying you 
have it working using a homebrew install of python and gtk?



> On Nov 13, 2015 12:59 PM, "Joseph Reagle" <joseph.2...@reagle.org
> <mailto:joseph.2...@reagle.org>> wrote:
> 
> I'm new to OSX and reliant on zim. I got spell checking working via
> macports, but I'm trying to use homebrew now and I can't get the
> spell checking to work. The plugin says "gtkspell - Failed". I have
> pygtk-2.24.0_1 and gtkspell3 spelled.
> 
> I don't see the equivalent of a py27-gtkspell from macports.

___
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] curly brackets, escape them?

2015-11-07 Thread Joseph Reagle
On 11/07/2015 01:48 PM, Shivam Sharma wrote:
> You could format them as "Verbatim" using Ctrl+T keystroke. This will
> change their look to verbatim (of course), but preserve the text as
> it is.

Thanks for the tip. Unfortunately, you can't link verbatim text; I could 
verbatim just the curly-brackets and use normal text for the other stuff until 
there's a bug fix

___
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


[Zim-wiki] curly brackets, escape them?

2015-10-29 Thread Joseph Reagle
I have the hardest times with curly brackets. I can type them on a page and 
they look fine, but if I close zim and reopen it, they are broken. If I look at 
the source, the curly brackets are there, but I think they are being parsed as 
zim syntax. Is there a way to escape them, and shouldn't zim do that when you 
edit a page?

___
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


[Zim-wiki] OSX Installs: change shebang path to interpretor?

2015-09-18 Thread Joseph Reagle
I'm experimenting with getting Zim to install on OSX. One of the main problems 
is that the default python at /usr/bin/python does not work well. `/usr/bin/env 
python` would give the users more control (e.g., setting the preferred bath in 
the environment of a shell wrapper).



___
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] zim063 on Mac

2015-09-09 Thread Joseph Reagle
Thanks for the report Michele. Can you confirm for me that the spell checking 
plugin works using this method?

On 09/08/2015 10:40 PM, Michele Pratusevich wrote:
> I had a lot of luck installing GTK on OSX from jhbuild and not
> messing with Homebrew. The experience was so horrible that I wrote a
> blog post about how I did it.
> http://www.mprat.org/misc/2015/09/08/installing-zim-on-osx.html


___
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] zim063 on Mac

2015-09-08 Thread Joseph Reagle
I recently got a OSX Mavericks machine and the first thing I want to do is 
install zim. Can someone suggest to me how to get a good working version with 
plugins?

The best option seems to run the zim's source files from the ports install 
python, but I'm still missing the spell checkers.

- zim install from ports
- doesn't have many plugins like spell-checking and tasks
- pygtk as pkg
 - crashes a lot
 - Python quit unexpectedly while using the
   libgdk-quartz-2.0.0.dylib plug-in
- /opt/local/bin/python2.7 zim.py #use ports python and src zim
 * gtkspell - Failed

___
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] zim063 on Mac

2015-06-30 Thread Joseph Reagle
Augus, thanks for the reports. I really hope to use Zim on a Mac at some
point this year.

On 06/20/2015 06:58 AM, Agustin Lobo wrote:
 Many thanks for zim 063
 
 Some points:
 
 1. Cannot find directions for installing using Platypus on 
 http://zim-wiki.org/
 I do find them on
 https://github.com/jaap-karssenberg/zim-wiki/wiki/Install-on-OS-X-using-Platypus
 These directions are useful and I can confirm that they work well.
 Also, I do recommend using PyGTK
 
 2. I find a bit confusing whether we have to run
 ./setup.py install
 or not. I guess not, but why is this mentioned then?
 
 3. Export to html: Problem with not having the top page in the left
 index has been solved. Thanks!
 
 4. Still crashes if I move a sub-page to a different place in zim's
 left tree. Re-start does not work from the crash panel automatically
 opened by MacOSX. Have to close that and re-run zim063. In that case,
 the sub-page has been moved to
 the selected place. This crash is not a big problem for me as I used
 the little mac as a secondary machine (essentially for traveling) and
 can reorganize the tree
 on the linux machine at the office.
 
 5.In case this were of any help, I link the output of ./test.py
 https://www.dropbox.com/s/6sqcboq38n9v302/test_report.html?dl=0
 
 6. Having to use ie. Ctrl-c instead of Cmd-c is odd on a Mac. But if
 this is difficult to solve or implies maintenance problems I can
 perfectely live with that.
 
 7. I have the notebook on dropbox and works great.
 
 8. If I select inserting an image, cannot paste the path and name in
 Location. Not sure if this happens on linux too.
 
 Note I can try to help debugging the crash, but need directions on what to do.
 
 Thanks again for zim. It's a really valuable tool for me and would
 like to contribute somehow.


___
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] Zim 0.62 still has export bug?

2015-06-13 Thread Joseph Reagle
Could you send me a zip file of your Test? I will upgrade to 0.62 again
and try that.

On 06/13/2015 08:43 AM, Jaap Karssenberg wrote:
 Just trying it out with a small test notebook:
 
 ./zim.py --export --output=/tmp/zim_export --format=html --overwrite
 ~/Notebooks/Test/ --verbose


___
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] Tip: Insert date, how to get preferred format first

2015-06-02 Thread Joseph Reagle
On 06/02/2015 02:10 AM, WEHLER Andreas wrote:
 I've ever overseen and just now found out that the list of offered 
 time and date formats may be reordered and modified with the Edit 
 button in the insert date dialog. Under Linux you will modify the 
 file   $HOME/.config/zim/dates.list.

I too recently discovered the insert date feature and use it to quickly
enter a due date for tasks, but didn't realize we could change the
order: thanks!

___
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] Zim 0.62 still has export bug?

2015-05-29 Thread Joseph Reagle
Let me put a point on this: Does *anyone* successfully update an
existing HTML export using 0.62?

On 05/28/2015 09:24 AM, Joseph Reagle wrote:
 # I want to export from the command line
 
 - I type the following, see some INFO diagnostics, but nothing is
 produced (and it completes much faster than using the GUI above)
 
 ```
 zim --export --output=/home/reagle/joseph/zwiki --format=html
 --overwrite /home/reagle/joseph/zim --verbose
 INFO: This is zim 0.62
 INFO: Remove file: /home/reagle/joseph/zim/.zim/tmp
 INFO: Loading template from: /usr/share/zim/templates/html/Default.html
 ```

___
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] Zim 0.62 still has export bug?

2015-05-28 Thread Joseph Reagle
On 05/28/2015 09:32 AM, Paulo van Breugel wrote:
 Just about the command line completing faster, but without actually
 producing anything.. in my experience it does not overwrite existing
 folders / files. So try to export it to a new folder.

I'll try that next time I install 0.62 (went back to 0.60). But if
that's a case, that's a bug as I specified the --overwrite option.
(Indeed, wouldn't one typically export to the same directory to keep an
HTML version of one's wiki current?)

___
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


[Zim-wiki] Zim 0.62 still has export bug? (template parameters?)

2014-10-09 Thread Joseph Reagle

This [1] issue still exists.

 The culprit is that 0.61 warns about existing directories and refuses
 to export unless they are empty or the user uses `--overwrite`.
 
 Even when I manually invoked export with overwrite it failed with
 errors about variables not found...

[1]: https://lists.launchpad.net/zim-wiki/msg02885.html

What does these parameters even mean? Has the templating system changed?

```

zim --export --output=/home/reagle/joseph/zwiki --format=html
--overwrite
--template=~/.local/share/zim/templates/html/codex-default.html
/home/reagle/joseph/zim --index-page index
WARNING: No such parameter: zim
WARNING: No such parameter: pages.previous
WARNING: No such parameter: page
WARNING: No such parameter: pages.index
WARNING: No such parameter: pages.next
WARNING: No such parameter: page
WARNING: No such parameter: page
WARNING: No such parameter: page
WARNING: No such parameter: page
WARNING: No such parameter: zim
WARNING: No such parameter: pages.previous
WARNING: No such parameter: page
WARNING: No such parameter: pages.index
WARNING: No such parameter: pages.next
WARNING: No such parameter: page
WARNING: No such parameter: page
WARNING: No such parameter: page
WARNING: No such parameter: page
WARNING: No such parameter: zim
...

```

___
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] Zim version 0.61 released!

2014-08-15 Thread Joseph Reagle
On 07/31/2014 04:50 PM, Jaap Karssenberg wrote:
 === 0.61 - Thu 31 Jul 2014 === * Full refactoring of code for
 exporting pages from zim

I want to warn people that these changes are much bigger than one would
expect from a .01 release. I cron html exports and a week after
upgrading noted that my Web pages weren't updating. The culprit is that
0.61 warns about existing directories and refuses to export unless they
are empty or the user uses `--overwrite`.

Even when I manually invoked export with overwrite it failed with errors
about variables not found...

___
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


[Zim-wiki] make labels with no subtasks inactive?

2014-07-02 Thread Joseph Reagle

I typically have nested lists in which I use a TODO label to associate
sub-items with a tag. But sometimes there are no sub-items (as in the
last two below), so I'd prefer the TODO label not appear in the tasks?
Is that possible?

---

* DO: @teach
* @oc Online Community
[ ] design @oc course
[ ] request classrooms [d:2014-07-07]
* DO: @events
* DO: @sys :System



___
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


[Zim-wiki] interwiki link bug?

2012-10-11 Thread Joseph Reagle


I have a wiki -- available in open dialog -- named codex. It has a top 
level Category/Page called Teaching. To create a link to that page I 
type Teaching, hit ctrl+L and enter codex?Teaching as the link.


Then, when I click on it I get the following error:

This is zim 0.57
Python version is sys.version_info(major=2, minor=7, micro=3, 
releaselevel='final', serial=0)

Gtk version is (2, 24, 10)
Pygtk version is (2, 24, 0)
Platform is posix
No bzr version-info found

=== Traceback ===
  File /usr/lib/pymodules/python2.7/zim/gui/pageview.py, line 4983, 
in do_link_clicked

self.ui.open_notebook(href)
  File /usr/lib/pymodules/python2.7/zim/gui/__init__.py, line 1094, 
in open_notebook

notebook = zim.ipc.ServerProxy().get_notebook(notebook)
  File /usr/lib/pymodules/python2.7/zim/ipc.py, line 745, in get_notebook
assert uri.startswith('file:/'), 'Must be real URI'
AssertionError: Must be real URI



--
Regards,
Joseph Reaglehttp://reagle.org/joseph/
(Perhaps using speech recognition, sorry for any speakos.)

___
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


[Zim-wiki] go with the dominant syntaxes: label/tags and tables

2011-09-28 Thread Joseph Reagle
I'm writing a Python script that expires tasks (with an '[x]') out to my HTML 
page of done stuff. My done stuff page has been syndicated in the past, and 
I've considered emitting it as a twitter stream. In which case I'll likely 
convert '@' labels to '#' hashtags. Any chance of following the twitter 
conventions within zim itself? (I suspect zim actually preceded twitter on this 
front.)

Also, I noted some discussion of tables. I hope one day zim will adopt a common 
markup syntax (ideally pandoc markdown) but until then I think it makes sense 
to still go with a dominant syntax. 

fyi: The markdown community is trying to converge across its various extension 
syntaxes and implementations.
  http://six.pairlist.net/pipermail/markdown-discuss/
___
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] go with the dominant syntaxes: label/tags and tables

2011-09-28 Thread Joseph Reagle
On Wednesday, September 28, 2011, Jaap Karssenberg wrote:
 If you want to plug into zim you could have a look at the print to browser
 plugin, which adds a button to the tasklist dialog for html export. If you
 want to make it a background script, try re-using the code of the tasklist
 plugin for accessing the index.

It's just two functions in my script that runs whenever I synchronize my flat 
files with the Web server. It's actually rather stupid, just pulling the text 
out of the txt files. I've attached it below though I doubt it would be of use 
to others, but  perhaps an expire plugin that moves [x] tasks to a 
journal/calendar might be.

 No zim's @ syntax does not predate the twitter convention. But you will
 find there are older systems using @ for tags as well. Main reason I
 choose this syntax is that in HTML # is used for anchors, which is a
 feature we still want to add to zim.

OK.

 Actually work is ongoing to make zim support multiple syntaxes. No need to
 have one-size-fits all in this respect. See previous discussion on this
 list, as well as various syntax related feature requests in the bug tracker.

Yes, I saw some discussion of that a month or so ago, but I didn't know it was 
being actively developed. (My fingers are crossed.)  BTW: no bugs are listed 
here:
  https://bugs.launchpad.net/~zim-wiki

~~~``

def log2work(done_tasks):
'''
Log completed zim tasks to work microblog
'''
import hashlib

log_items = []
for activity, task in done_tasks:
# zim syntax for href/em to HTML
task = re.sub('\[\[(.*?)\|(.*)\]\]', ur'a href=\1\2/a', task)
task = re.sub('\/\/(.*?)\/\/', ur'em\1/em', task)

date_token = get_Now_YMD()
digest = hashlib.md5(task.encode('utf-8', 'replace')).hexdigest()
uid = e + date_token + - + digest[:4]
log_item = 'li class=event id=%s%s: %s] %s/li\n' % \
(uid, date_token, activity, task)
log_items.append(log_item)

OUT_FILE = HOME+'/data/2web/reagle.org/joseph/plan/plans/index.html'
fd = codecs.open(OUT_FILE, 'r', 'utf-8', 'replace')
content = fd.read()
fd.close()

insertion_regexp = re.compile('(h2Done Work/h2\s*ol)')

newcontent = insertion_regexp.sub(u'\\1 \n  %s' %
''.join(log_items), content, re.DOTALL|re.IGNORECASE)
if newcontent:
fd = codecs.open(OUT_FILE, 'w', 'utf-8', 'replace')
fd.write(newcontent)
fd.close()
else:
print_usage(Sorry, output regexp subsitution failed.)
 
 
def retire_tasks(directory):
'''
Removes completed '[x]' zim tasks form zim
'''
if 'zim' in check_output([ps, axw]):
print(Zim is presently running; tasks not retired.)
return
else:
zim_files = locate('*.txt', directory)
for zim_filename in zim_files:
info(zim_filename)
done_tasks =[]
activity = 'misc'
new_wiki_page = []
with open(zim_filename, 'r') as wiki_page:
for line in wiki_page:
label = re.search('@\w+', line)
if label:
activity = label.group(0).strip()[1:]
if '[x]' in line:
item = line.split(']',1)[1].strip()
done_tasks.append((activity, item))
else:
new_wiki_page.append(line)
if done_tasks:
new_wiki_page_fd = open(zim_filename, 'w')
new_wiki_page_fd.writelines(%s % line for line in 
new_wiki_page)
new_wiki_page_fd.close()
log2work(done_tasks)
___
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


[Zim-wiki] Will there be a natty build for ppa:jaap.karssenberg/zim ?

2011-05-02 Thread Joseph Reagle

I know natty was just released, but I'd love to run 0.52 :-).

(I added it, but get an error, so I presume there's nothing there.)

___
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