GithubHelp home page GithubHelp logo

benpope82 / macros Goto Github PK

View Code? Open in Web Editor NEW

This project forked from komodo/macros

0.0 1.0 0.0 639 KB

This repository is deprecated, do not update it. To submit your own macros read the instructions here: http://komodoide.com/packages/submit-instructions/#pane-packages

License: Mozilla Public License 2.0

Python 11.13% JavaScript 88.87%

macros's Introduction

Komodo Macros

This is a collection of useful Komodo macros.

Table of Contents

Macros

Wrap Text (code)

Wrap the editor selection with arbitrary text. Easily enclose text with HTML tags or stringify a selection.

PHPDoc and JSDoc (code)

Automatically adds PHPdoc (or JSDoc) comments, including a summary, to your PHP (or JavaScript) file when you type '/**' followed by the ENTER key.

If the line below the current position is a function, variable or class it will check for an toolbox Abbreviation and add it's contents to the phpdoc comment.

Incremental Numbering (code)

Make a column selection in the editor, then for each column insert a number and have the number incremented for each subsequent row in the selection.

Copy Find Results (code)

A macro that will copy the existing Find Results onto the clipboard. Note: There can be two find results pane opened - this only works on the first one.

Multi Row Editor Tabs (code)

Allow multiple rows of editor tabs. When there is not enough room for all tabs in a single row, the tabs will wrap around onto a new tab row.

Variable Dumper (code)

Debug helper - generates a print statement from the current word or selection.

Swap Assignment (code)

Switch a variable assignment (or argument) around, so foo = bar will become bar = foo.

SCC Annotate (code)

Display source code control (SCC) line annotations in the left editor margin.

Automagic Snippets From Text (code)

Create a snippet from selected text, add a name and automatically open properties to add keybinding.

Reorder lines as tower (code)

Reorder selected lines, so that the shortest will go to top and the longest goes to bottom. Useful when reordering "import" lines in Python source code.

Left pare (code)

Remove 1 character form selected line on the left. Useful to clean code copied from diff file.

Brace Wrap Selection (code)

With an editor selection, pressing any of [{("' keys will place matching braces or quotes around the selected text. Differs from Wrap Text because this is a startup macro, and doesn't need to be invoked each time.

Byte or Char Position (code)

Show the Byte or Char position of your cursor in the Statusbar beside Ln and Col.

Img Tag Dimensions (code)

Execute the macro insdie an img tag in an html file, which the src attribute filled in. The macro will load the image and input the height and width of the image attributes with the correct dimensions

Alternative Location (code)

Adds an editor tab context menuitem for opening a komodo file in an alternative location. The alternative locations are read from a locations.ini configuration file in the Komodo profile directory.

Comment Toggle (code)

Toggles comments (on or off) over the selected lines (or current line) of the editor.

Installing

Create a new macro in your Komodo toolbox and copy/paste the contents into the Komodo macro editor.

Contributing

Got a handy macro yourself? Please submit a pull request to have your macro added to this list.

macros's People

Contributors

th3coop avatar naatan avatar defman21 avatar hongquan avatar barryvan avatar

Watchers

James Cloos 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.