jschlatow / taskopen

Tool for taking notes and open urls with taskwarrior
GNU General Public License v2.0
364 stars 31 forks source link

"No annotation found." is misleading. Replace by "No compatible annotation found." #90

Closed SebNag closed 8 years ago

SebNag commented 8 years ago

Hi. I am trying to add the taskopen feature to taskwarrior. First I create a task and add a Note with the command:

task add project:Test TestTask
Created task 3. 
task 3 annotate TestNote

Running task info 3 produces the output:

ID Age Project Description  Urg 
 3 34s Test    TestTask [1]  1.8

1 task
sebastian@seb:~/taskopen$ task info 3 

Name          Value                                            
ID            3
Description   TestTask                                         
                2016-03-06 18:03:02 TestNote                   
Status        Pending
Project       Test                                             
Entered       2016-03-06 18:02:52 (1min)
Last modified 2016-03-06 18:03:02 (53s)                        
Virtual tags  ANNOTATED PENDING READY UNBLOCKED LATEST PROJECT
UUID          1f4647b9-57a6-4abb-9ea1-ba2d7ff98573             
Urgency        1.8

    project          1 *    1 =      1
    annotations    0.8 *    1 =    0.8
                                ------
                                   1.8

Date                Modification                   
2016-03-06 18:03:02 Annotation of 'TestNote' added.

Running taskopen 3 produces the output:

/usr/bin/vim
Configuration override rc.verbose:off
Configuration override rc.json.array:on
Configuration override rc.verbose:off
Configuration override rc.json.array:on
No annotation found.
scottkosty commented 8 years ago

I believe that "No annotation found" means "No annotation found that taskopen knows how to handle". Instead of annotating "TestNote", try instead "http://www.bbc.co.uk". Then when you use taskopen it should open it with your browser.

jschlatow commented 8 years ago

@SNBasti, sorry I missed that you opened this issue. Actually @scottkosty is absolutely right, thanks for filling in for me ;-)

linuxcaffe commented 8 years ago

This is related to issue #24, which is, imho, the taskopen showstopper. I still believe taskopen would have many more uses if existing functionality could be applied to non-link-type annotations. On Mar 12, 2016 4:17 AM, "Johannes S." notifications@github.com wrote:

@SNBasti https://github.com/SNBasti, sorry I missed that you opened this issue. Actually @scottkosty https://github.com/scottkosty is absolutely right, thanks for filling in for me ;-)

— Reply to this email directly or view it on GitHub https://github.com/ValiValpas/taskopen/issues/90#issuecomment-195699838.

linuxcaffe commented 8 years ago

..and I apologize for being such a persistent ass about it. ;-)

jschlatow commented 8 years ago

@linuxcaffe I think I now found a solution by adding a TEXT_REGEX option in taskopenrc and implementing the command line switches -t/-T. However, there is still a partial showstopper on the taskwarrior side (see TW-1821).