Code Monkey home page Code Monkey logo

ptags's Introduction

说明

此版本的 ptags.py 是基于官方提供的工具脚本 ptags.py 基础之上修改而来的。

之所以要做这个轮子,是因为操作系统对命令行传参数量有一定的限制。因而使用官方的 ptags.py 时,不能解析全部的 py 文件到一个 tags 文件中。

首先我得承认,官方会做如此处理,一定是有他的道理——我觉得很可能是我对 tags 的用法进入了误区。

然而不管如何,自己暂时没有精力研究 tags 的正确用法。就写这样一个脚本解燃眉之急吧,反正也没有什么不可的。

使用

对环境要求:python 3.6 +

命令行:

./ptags [search_paths] [target_filename]
# or
python ptags [search_paths] [target_filename]

效果

错误使用时会有 usage 提示。

usage

正确使用后,会有成功解析文件、失败解析文件的个数显示。另外,存在解析失败的文件时,这些文件的全路径会被打印出来。

prompt

test 目录下存放的是一个小型项目的 tags 文件,在 vim 中使用效果如下:

use_in_vim

ptags's People

Contributors

youguanxinqing avatar

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.