Zim

Separate dialog for dumping text to zim

Bug #439878 reported by dotancohen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Fix Released
Wishlist
Unassigned

Bug Description

From talking with several users of Zim (personal friends and associates) it seems that one of the primary uses of Zim is to store notes or other "often added but seldom read" data. A common workflow seems to be to have an idea/note, open Zim, navigate to the relevant notebook and page, then add that note/idea as a new line or as a new subpage. In my opinion this could be greatly simplified if there were a form that the user could fill out which would insert the data in the requested place.

For instance, I know that my idea for a new Zim feature should be filed as a new line under the Software notebook, on the Linux:Zim:FeatureRequests page. Currently I must start Zim, open the notebook, navigate to the page, scroll down to the bottom of the page, add some newlines, and only then can I transfer my idea from my head to the computer. Sometimes when ideas are less clear or less developed I may loose part of the thoughttrain by the time I get to the right place.

A better solution might be a three-part form with these fields:
Data field: a textarea for data entry. This is where the idea / note goes.
Navigational field: this is where the user selects a notebook, then the relevant page from the hierarchy of the notebook
New Line / New Page selector: this is where the user selects if the data will appear as a new line in the page, or as a new subpage.

Ideally, the user would be able to start the form whether or not Zim is running, ie, it would be an independent application but it would integrate with Zim so that it could write to notebooks that may be already open in Zim.

Non-essential options that could be added later would be:
*) Add / don't add TODO flag
*) Add / don't add timestamp
*) New Page naming options
*) Precede / don't precede new line with additional newline character

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Please change the title on this bug to better reflect the content.

This is not something I will work on anytime soon, but feel free to consider writing a plugin for this. I would say this functionality is a good exercise for someone unfamiliar with the zim code base but working python knowledge.

Changed in zim:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
dotancohen (dotancohen) wrote :

> Please change the title on this bug to better reflect the content.

Done.

> This is not something I will work on anytime soon, but feel free
> to consider writing a plugin for this.

Actually, I've already started dabbling in Python a bit just for the purpose of Zim. It will be a while, though, between university and kids.

summary: - zim forms
+ Separate dialog for dumping text to zim
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

This blog post gives a way to trigger pasting clipboard into zim with a global keybinding:
http://www.aaronjamesyoung.com/blog/tech/zim-clipping-script-on-ubuntu-linux

Would be nice to have commandline option to trigger this dump dialog + paste clipboard in one go.
That allows a global keybinding to immediatly poup the "dump" dialog with current selected text
just click "OK" and it is stored in zim.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Committed initial plugin for this in rev226. It can be called as "zim --plugin dropwindow", see "zim --dropwindow help" for hints.

Still open item to integrate in the zim UI, e.g. in the trayicon menu.

Changed in zim:
status: Confirmed → In Progress
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Added "Create Note" menu item in the trayicon menu, this will open a dialog allowing you to paste text and insert it as a new page in any of the configured notebooks.

Changed in zim:
status: In Progress → Fix Committed
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Fixed in rev 230.

Revision history for this message
dotancohen (dotancohen) wrote :

Thanks, Jaap! This is great!

One last request, could this have an option to append to an existing page, possible with a few newlines to separate the content? Many of the notes I would be adding are one-line quickies, and spreading them out over many new pages would be a pain.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Fix released in zim 0.47

Changed in zim:
status: Fix Committed → Fix Released
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Option to append notes to an existing page added in rev276 - please test.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.