Coder Social home page Coder Social logo

typescript-ctags's Introduction

typescript-ctags

Installation

Add the contents of .ctags to your ~/.ctags file. If you don't have a ~/.ctags file already, simply download .ctags and drop it in your home folder.

typescript-ctags's People

Contributors

daliusd avatar darcyparker avatar devsmt avatar eckhart-csjc avatar geoffliu avatar h-sifat avatar jb55 avatar jez avatar nicolasnssm avatar nomaed avatar perlence avatar rjz avatar vkareh avatar yifeikong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

typescript-ctags's Issues

var, let, const tags

How would I go about making my variable declarations "tag-able"?

So I can do things like below (in vim)

var cars = ["car 1", "car2"];
...
console.log(cars.length) // with cursor on this line on `cars` tag jump to `var cars`

Thanks in advance for this very helpful ~/.ctags file!!

How does this work when you generate the ctags file from within vim?

In my vimrc I do the following to gen a .ctags file per project

function! RenewTagsFile()
    exe 'silent !rm -rf .ctags'
    exe 'silent !ctags -a -Rf .ctags --languages=javascript,typescript --exclude=.git --exclude=*.min.js --exclude=node_modules 2>/dev/null'
    exe 'redraw!'
endfunction

If I add this .ctags file in my home directory it doesn't seem to add any of the TS classes or functions as it does with other javascript

Thanks for the help!

Tests

It would be nice if there were tests like so:

  1. Generate tags file from example code
  2. Ensure outputs match what we expect

If someone would like to throw this together what would be awesome.

Generators support is missing

Generators are not supported.

This seems to fix the problem:

---regex-typescript=/^[ \t]*(export[ \t]+)?(default[ \t]+)?(async[ \t]+)?function[ \t]+([a-zA-Z0-9_$]+)/\4/f,functions/
+--regex-typescript=/^[ \t]*(export[ \t]+)?(default[ \t]+)?(async[ \t]+)?function(\*)?[ \t]+([a-zA-Z0-9_$]+)/\5/f,functions/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.