Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Meet ctags

Meet ctags

An introduction to ctags. Shown at Vim London.

Oliver Caldwell

April 30, 2013
Tweet

Other Decks in Programming

Transcript

  1. My first tag file c t a g s -

    R f . / . t a g s - - e x c l u d e = . g i t . / c o m p o n e n t s ! _ T A G _ F I L E _ F O R M A T 2 / e x t e n d e d f o r m a t ; - - f o r m a t = 1 w i l l n o t a p p e n d ; " t o l i n e s / ! _ T A G _ F I L E _ S O R T E D 1 / 0 = u n s o r t e d , 1 = s o r t e d , 2 = f o l d c a s e / ! _ T A G _ P R O G R A M _ A U T H O R D a r r e n H i e b e r t / d h i e b e r t @ u s e r s . s o u r c e f o r g e . n e t / ! _ T A G _ P R O G R A M _ N A M E E x u b e r a n t C t a g s / / ! _ T A G _ P R O G R A M _ U R L h t t p : / / c t a g s . s o u r c e f o r g e . n e t / o f f i c i a l s i t e / ! _ T A G _ P R O G R A M _ V E R S I O N 5 . 9 ~ s v n 2 0 1 1 0 3 1 0 / / 0 . / c o m p o n e n t s / r e v e a l . j s / p l u g i n / z o o m - j s / z o o m . j s / ^ m a g n i f y ( s c r o l l O f f s e t . x , s c r o l l O f f s e t . y , 0 , 0 , 1 ) ; $ / ; " r 1 . / c o m p o n e n t s / r e v e a l . j s / j s / r e v e a l . j s / ^ v a r e v e n t = d o c u m e n t . c r e a t e E v e n t ( " H T M L E v e n t s " , 1 , 2 ) ; $ / ; " r 1 9 0 . / c o m p o n e n t s / r e v e a l . j s / j s / r e v e a l . j s / ^ i f ( i s P a u s e d ( ) & & [ 6 6 , 1 9 0 , 1 9 1 ] . i n d e x O f ( e v e n t . k e y C o d e ) = = = - 1 ) { $ / ; " r I n s e r t 5 0 0 l i n e s o r s o o f s i m i l a r s t u f f . . . z o o m F a c t o r . / c o m p o n e n t s / r e v e a l . j s / p l u g i n / p r i n t - p d f / p r i n t - p d f . j s / ^ p a g e . z o o m F a c t o r = 1 . 5 ; $ / ; " r z o o m L e v e l . / c o m p o n e n t s / r e v e a l . j s / p l u g i n / z o o m - j s / z o o m . j s / ^ z o o m L e v e l : f u n c t i o n ( ) { $ / ; " r
  2. Making it less awkward c o m m a n

    d ! G e n e r a t e T a g s c a l l s y s t e m ( ' c t a g s - R f . / . t a g s - - e x c l u d e = . g i t . / c o m p o n e n t s ' ) | e c h o n m a p < F 5 > : G e n e r a t e T a g s < C R >
  3. But wait, there's more! --python-kinds=-i `cat .srclist` . / a

    s s e t s / * * / * . j s . / * * / * . p y
  4. Hello? Yes, this is command line v i m +

    G e n e r a t e T a g s + q a