GithubHelp home page GithubHelp logo

kbaskett248 / entityselect Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 33 KB

A Sublime Text 3 package providing a unified framework for executing code based on the current selection.

Python 100.00%
sublime-text sublime-text-3 sublime-text-plugin

entityselect's Introduction

EntitySelect

A Sublime Text 3 package providing a unified framework for executing code based on the current selection.

This package provides no functionality on its own. Instead, it is intended to be extended by package developers.

When this document refers to entities, it is referring to a logical grouping of characters within the document. For example, the name of a class, method, or variable is an entity.

Features

  • Write classes to perform actions and interact with the currently selected entity.
  • This package includes three basic methods for interacting with entities:
    • DocLink: If the current entity supports DocLink, it will be underlined when selected to indicate there is additional information available for the entity. Pressing Alt+d will open that additional information. You can also optionally add functionality to add documentation.
    • Status Identifier: If the current entity supports Status Identifier, an informational note will be displayed in the footer bar when that entity is selected.
    • Highlighting: If the current entity supports Highlighting, you can invoke it to highlight all instances of that entity within the current file, function, class, etc. You can then navigate between the instances of the entity or select them all. This operates like a quick find for specific entities.

These basic methods can be extended to add complex IDE-like functionality to Sublime Text.

Installation

Package Control

Install Package Control. Add this repository (https://bitbucket.org/kbaskett/entityselect) to Package Control. EntitySelect will show up in the packages list.

Manual installation

Go to the "Packages" directory (Preferences > Browse Packages…). Then download or clone this repository:

https://bitbucket.org/kbaskett/entityselect.git

Default Keybindings

These commands are also available in the Context Menu:

  • Alt+D - Invoke DocLink if the current entity supports it. Additional information for the entity will be opened.
  • Alt+H - Invoke Highlight if the current entity supports it. All instances of the entity will be highlighted.
  • Alt+J - Move to the next highlighted instance.
  • Alt+K - Move to the previous highlighted instance.
  • Alt+L - Select all highlighted instances.
  • Alt+Shift+L - Display a quick panel showing all highlighted instances.
  • Esc - Clear highlights if they are visible.

entityselect's People

Contributors

kbaskett248 avatar

Watchers

 avatar  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.