cod icon indicating copy to clipboard operation
cod copied to clipboard

Option to track file+line-number metadata

Open rolandpoulter opened this issue 10 years ago • 2 comments

It would be nice if the tags remembered what index they started and ended in the source. Then it would be easy to show the source code of tags.

rolandpoulter avatar Jun 23 '15 20:06 rolandpoulter

I didn't realize that this creates a single object for the whole file.

Maybe if there was a way to tell it to return the current line/index of a file or something.

/**
  @$start
  @$end
*/

Could return: {start: 0, end: 20}

rolandpoulter avatar Jun 23 '15 20:06 rolandpoulter

Yeah this is probably a feature that many people will eventually want.

If cod supports file+line-numbers at all, it should be done transparently with a parameter, or maybe through some kind of plugin system.

namuol avatar Jun 23 '15 22:06 namuol