Thread: CFI Parser
View Single Post
Old 01-14-2019, 05:21 AM   #7
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,223
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by kovidgoyal View Post
I dont see how that post achieves that?? All it does is return the line and col of the containing tag as far as I can tell.
With line and col, maybe I could call something like:

Code:
editor.go_to_line(item.line, item.col)
Quote:
Originally Posted by kovidgoyal View Post
As for converting CFI to the the containing tag, there is code to do that for the viewer (it uses CFI internally for bookmarking), but not for the editor, it would need to be added.
Is it to possible to add this? So I could pass the CFI and it would return line and col?

Last edited by thiago.eec; 01-14-2019 at 06:01 AM.
thiago.eec is offline   Reply With Quote