About: Manage a tasklist of to-do code snippets   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

The idea is to create a tag for each TODO entry and then create a Vim command to list only those tags. The example will be for Java, but you'll see that it should work for any language. Assuming you use ctags to generate your tags file, add the following to ~/.ctags: --regex-java=/\/\/TODO(.*)/todo\1/ This will cause ctags to create tags for the following code: //TODO djh fix this horrible hack //TODO djh comment this with names: todo djh fix this horrible hack todo djh comment this You can then add the following to vimrc to create a command that easily lists these.

AttributesValues
rdfs:label
  • Manage a tasklist of to-do code snippets
rdfs:comment
  • The idea is to create a tag for each TODO entry and then create a Vim command to list only those tags. The example will be for Java, but you'll see that it should work for any language. Assuming you use ctags to generate your tags file, add the following to ~/.ctags: --regex-java=/\/\/TODO(.*)/todo\1/ This will cause ctags to create tags for the following code: //TODO djh fix this horrible hack //TODO djh comment this with names: todo djh fix this horrible hack todo djh comment this You can then add the following to vimrc to create a command that easily lists these.
Version
  • n/a
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1413(xsd:integer)
Author
  • David J Hamilton
Complexity
  • basic
Created
  • 2006-11-30(xsd:date)
ID
  • 1431(xsd:integer)
NEXT
  • 1432(xsd:integer)
Rating
  • 22(xsd:integer)
abstract
  • The idea is to create a tag for each TODO entry and then create a Vim command to list only those tags. The example will be for Java, but you'll see that it should work for any language. Assuming you use ctags to generate your tags file, add the following to ~/.ctags: --regex-java=/\/\/TODO(.*)/todo\1/ This will cause ctags to create tags for the following code: //TODO djh fix this horrible hack //TODO djh comment this with names: todo djh fix this horrible hack todo djh comment this You can then add the following to vimrc to create a command that easily lists these. command TODO tselect /^todo djh Note that I'm only interested in TODOs that begin with my initials - you may want to simply use /^todo. Be careful though! If you have case-insensitivity turned on, you may get false positives for tags of the form 'toDouble'. This can be fixed by changing your todos to //TODO:
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software