jschlatow / taskopen

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

RFE: taskopen -i #21

Closed linuxcaffe closed 11 years ago

linuxcaffe commented 11 years ago

-i as in info

Using "taskopen -x 'ls -l'". or "taskopen -x file" or "taskopen -x wc" reveals a lot about an annotation(s). The -i option causes listings to include the information from all three.

Redundant /pathname/filename.ext output should be stripped, for clarity.

The specific commands used to generate the annotation info, could be listed in .taskopenrc to allow for customization.

linuxcaffe commented 11 years ago

perhaps something like

djp@tigger:~/bin$ to -i 50 /home/djp/documents/task-2.0.0.ref.pdf ("test 2 taskopen") -- 50 PDF document, version 1.3 -rw-r--r-- 1 djp djp 129164 Feb 23 2012 lines 808, words 4442, characters 129164

linuxcaffe commented 11 years ago

in the above case, you might or might not see this info, as it flashed past, opening the pdf. Because taskopen will immediately open the annotation where a query resolves a single annotation, as in the case of a single ID, adding a -l (list) might be required to see the info for any unique result.

jschlatow commented 11 years ago

This would add complexity to taskopen that is better handled by an additional script (e.g. 'fileinfo'):

$ taskopen -x fileinfo -l

This is far more generic than a '-i' which likely doen't show exactly what every user would like to see.