Zim

[Feature Request for Plugin Tasklist] Add tag input field within task list dialog

Bug #1349906 reported by Murat Güven
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Zim
Confirmed
Wishlist
Unassigned

Bug Description

I use tagging quite a lot within my pages and use Zim also for taskmanagement.
One of my favorite plugin is the tasklist plugin.

As I have many tags, it is somewhat less effective for me to scroll through the tags list on the left pane and click to filter the task list.

I think, an entry box on top with autocompletion for tags could be a quicker solution to filter the list.

I adapted the current tasklist plugin to support this feature in addition.

Any comments are welcome.

Regards,
Murat

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 1349906] [NEW] [Feature Request for Plugin Tasklist] Add tag input field within task list dialog

Hi Murat,

Would be much easier for me if you can attach the diff between the current
plugin and your modified one. Makes it easier to review and merge quickly.

Thanks,

Jaap

On Tue, Jul 29, 2014 at 5:23 PM, Murat Güven <email address hidden>
wrote:

> Public bug reported:
>
> I use tagging quite a lot within my pages and use Zim also for
> taskmanagement.
> One of my favorite plugin is the tasklist plugin.
>
> As I have many tags, it is somewhat less effective for me to scroll
> through the tags list on the left pane and click to filter the task
> list.
>
> I think, an entry box on top with autocompletion for tags could be a
> quicker solution to filter the list.
>
> I adapted the current tasklist plugin to support this feature in
> addition.
>
> Any comments are welcome.
>
> Regards,
> Murat
>
> ** Affects: zim
> Importance: Undecided
> Status: New
>
>
> ** Tags: filter tags tasklist tasks
>
> ** Attachment added: "tasklist.py"
>
> https://bugs.launchpad.net/bugs/1349906/+attachment/4165205/+files/tasklist.py
>
> --
> You received this bug notification because you are subscribed to Zim.
> https://bugs.launchpad.net/bugs/1349906
>
> Title:
> [Feature Request for Plugin Tasklist] Add tag input field within task
> list dialog
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zim/+bug/1349906/+subscriptions
>

Revision history for this message
Murat Güven (murat-gueven) wrote :

Added an updated version with comments.

I also found a little 'tweak' with which multi selecting tags from the tags list (by using the ctrl key) filters
the tasks with an AND conjunction.

Revision history for this message
Murat Güven (murat-gueven) wrote :

diff file for showing the differences.

Revision history for this message
Murat Güven (murat-gueven) wrote :

Update to support Zim V0.61

Changed in zim:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Murat Güven (muratg) wrote :

I enhanced the tasklist plugin a little further.

#Changelog:
Within the dialog, there are now 2 additional columns available for Tags and Comments. The text within
the comment column is auto wrapped.

I removed the tags from the tasks and display them within the additional tag column.

The comments to tasks (from the comments plugin) are now collected as well and displayed within the comments column.

Example:

[] Implement the possiblity to tick tasks within the plugin [d:2017-03-31] @GüvenMurat
   * comment: [2017-03-07]> Additional column needed
   * comment: [2017-03-07]> Ask Jaap about the index implementation

I also integrated following plugins into the tasklist plugin:
* Tag auto completion
* Task comment
* Task Due date

If you use them already, you should deactivate them.

Please let me know if you find any issues.

@Jaap: I also want to implement the possiblity to tick the tasks within the plugin. I looked through the index implementation but don't grasp it completely. I wonder if I can take the source id within the tasklist index and get the related page file to read and parse again for tasks and replace
UNCHECKED_BOX with CHECKED_BOX?

Revision history for this message
mrgobbo (mario-gobbo) wrote :

Great job Muren, THANKS

My 2 cents:
a) suggestion - Allow time in comments
b) formatting issue:

Test with :
[ ] Creating new task @tasklist
 * obs: [2017-03-08]> yesterday I changed"Na0e the str5ng f6r c600ents" from "comment" to "obs"
 * obs: [2017-03-08]> task list was fine, then
 * obs: [2017-03-08]> today shows truncated

The comment apears truncated on the task list

 -

Revision history for this message
Murat Güven (muratg) wrote :

Thank you for your feedback.

I quick fixed the formatting issue. I will add a time option to the next version.

In addition I almost finalized the possibility to tick a task within the task list.
(Unfortunately the tick box does not react within the list, but the task is ticked).
I find it useful enough to provide it already.

Regards,
Murat

Revision history for this message
Murat Güven (muratg) wrote :

Added the requested time option.

The task ticking works now as expected. The filtered view gave me some challenges... :)

Feedback welcome!

Regards,
Murat

Revision history for this message
Murat Güven (muratg) wrote :

forgot to mention that you need to unselect / select the plugin in preferences, as the index need to be rebuilt

Revision history for this message
Murat Güven (muratg) wrote :

# V1.73 little bug fix in print function.

Revision history for this message
mrgobbo (mario-gobbo) wrote :

Hi Murat, great work, evolving fast !

* Time stamp in comments woks weel but semms to have an extra ], it reduces legibility
* add a comment after a comment allways ident. new task after new task keeps previous indent tabstop.

[*] other task @othertag
[*] Test new tasklist version @zim @tasklis [d: 2017-03-10]
 [*] subtast 1
  * obs: [2017-03-10]][09:26]> AWESOME FEATURE
 [ ] subtask 2
  * obs: [2017-03-10]][09:27]> another comment
   * obs: [2017-03-10]][09:28]> second comment always idented
    * obs: [2017-03-10]][09:28]> seems to exist an extra "]" between date and time. Its really necessary ?
 [*] subtask 3 Tick test , fact: cannot tick X , but I wonder if make sense for anyone, maybe doesn't worth the effort
 [ ] subtask 4 subtask idented correctly

Regards,
MG

Revision history for this message
Murat Güven (muratg) wrote :

Hi Mario,

with regards to the extra bracket, can you please check your plugin configuration if there
is an extra bracket added to the date or time string?

With regards to the indentation, I think that behaviour is correct.
If you comment a Task, the comment should be indendet.
If you comment a comment, logically that comment should also be indendet?

So, if you want to add a comment to a task for which comments already exist, you should click the task and then add a comment. With this, you keep the latest comment directly under the task.

I hope this makes sense for you.

Regards,
Murat

Revision history for this message
mrgobbo (mario-gobbo) wrote :

Hi Murat,
a) comments: make sense, thanks for clarification
b) extra bracket: attached config dates files and print of preferences.

mario@comp395:~$ locate dates.list
/u01/home/mario/.config/zim/dates.list
/usr/share/zim/dates.list

mario@comp395:~$ diff /usr/share/zim/dates.list /u01/home/mario/.config/zim/dates.list
3a4
> %Y-%m-%d %H:%M
10a12
>

mario@comp395:~$ cat /usr/share/zim/dates.list
# List with date-time formats used for the
# "Insert Date eand Time" dialog.
# See man strftime a description of the format.
%x
%c
%A %d/%m/%Y
%A %d/%m/%Y %H:%M
%A %d %B %Y
[d: %Y-%m-%d]
%Y-%m-%d

mario@comp395:~$ cat /u01/home/mario/.config/zim/dates.list
# List with date-time formats used for the
# "Insert Date eand Time" dialog.
# See man strftime a description of the format.
%Y-%m-%d %H:%M
%x
%c
%A %d/%m/%Y
%A %d/%m/%Y %H:%M
%A %d %B %Y
[d: %Y-%m-%d]
%Y-%m-%d

Regards,
MG

Revision history for this message
mrgobbo (mario-gobbo) wrote :

Murat, FOUND

[ ] Test @tasklist @zim
 * obs: [2017-03-10][11:13]> without "Use due date format in ..." selected there is no extra bracket
 * obs: [2017-03-10][11:12]> comment with task selected
 * obs: [2017-03-10][11:12]> comment
  * obs: [2017-03-10][11:12]> comment with comment selected

At,
MG

Revision history for this message
Murat Güven (muratg) wrote :

Great! Thank you for debugging...

Attached the new version with the bug fixed.

Regards,
Murat

Revision history for this message
Murat Güven (muratg) wrote :

# V1.8 added history of ticked tasks with ticked date (together with pageview)

The task list dialog is now showing the history of ticked tasks. If the task was ticked with
the task list dialog, the ticked date is shown as well.

With the updated pageview.py module, the tick date is added to / removed from the task text.
This ticked date is also shown within the tasklist dialog.

In addition, I changed the task comment format, now being formatted as superscript.

Revision history for this message
Murat Güven (muratg) wrote :

see posting above for the pageview.py module

Revision history for this message
Murat Güven (muratg) wrote :

# V1.83 Fixed wrong view in Task list history when parent task is open and child task is ticked.
# V1.82 Tag list rearranged in vbox tasklist dialog
# V1.81 using Zim widgets for autocompletion, duedate. Removed grey border from autocompletion entry (only visible in Windows)

Revision history for this message
Murat Güven (muratg) wrote :

# V1.97 Tasklist: re-arranged elements within the dialog to fit for low resolution screens
# V1.96 Tasklist: fixed index issue when tasklist was activated before updating the plugin by increasing SQL_FORMAT_VERSION to 0.61
# V1.95 Taskcomment: code cleaning and fix for comment in strong / emphasis
# V1.94 Tasklist: label comments are also collected
# V1.93 Autocompletion: If text is selected after activation of AC, the selected text is replaced. If selected text
# was itself a tag and the @ sign wasn't selected with, it remains after inserting the new selected tag
# V1.92 Ticking issue while column resizing solved, Pane positions are saved again
# V1.91 Filtering works now with comments as well
# V1.9 Added "tick / untick all tasks". Reworked tags list: Added tags from ticked tasks to tag list
# V1.84 Fixed [no date] entry for children

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.