Geeking with tags file for Jed

29 May 2006   0 comments   Python, Linux

Mind That Age!

This blog post is 11 years old! Most likely, its content is outdated. Especially if it's technical.

Powered by Fusion×

A little while ago I wrote about how I got Jed + TAGS to work thanks the ntags library. I've been using it now for a while and I love it! I doubt there are any IDEs that beats a swift combination of Ctrl+2 followed by Alt+. and you get the definition of a function or variable without losing any focus.

If you're not into programming stop reading now because it's going to get even more technical.

In a lot of my work, the .sql files are automatically converted to class methods according to a config file which effectively converts

--selectfoo.sql
uid, name select * from names where ...

--foo.py-- class Something:

...into...:

--bar.py--
class Something:
   def selectfoo(self, uid, name):
       return _sqlquery("select * from ...."

Now, since the methods don't exist until you start the app, ctags will not be able to find these "SQL methods" which makes it a pain for me to dig out the right .sql file whilst programming. Fortuntely, writing to the ctags format was easier than I thought. Really all I had to do was to write a little python script and relink some executable scripts on my laptop. Now it works perfectly and exactly as I want it. Here's the code for the eager to copy :)

Follow @peterbe on Twitter

Comments

Thank you for posting a comment

Your email will never ever be published


Related posts

Previous:
IssueTrackerProduct 0.7.2 released 22 May 2006
Next:
Weird spam? Or just a weird girl? 31 May 2006
Related by Keyword:
Ctags in Atom on OSX 26 February 2016
Local jed settings 19 April 2013
Wing IDE versus Jed 11 December 2008
Jed Tags with ntags (for dummies) 11 February 2006
Geeking with Eterm and Tkinter 09 February 2006
Related by Text:
Date formatting in python or in PostgreSQL 20 July 2004
Pretty print SQL script 06 August 2004
Running simple SQL commands on the command line 08 January 2005
Python inspect module 16 August 2004
html2plaintext Python script to convert HTML emails to plain text 10 August 2007