Code Monkey home page Code Monkey logo

repeat-macro's Introduction

Repeat Macro

A Sublime text 2 and 3 plugin to repeat macro multiple times or till end of file.

Coming from Notepad++(circa 2011) it was really frustrating when I had to hold down on the repeat macro shortcut combination instead of just having it repeat itself. So wrote this plugin on a late night and saved me n others lot of keystrokes. Why? Because we've all got very less keystores left

Definitely open to suggestions and ideas to improve this :)

Preview


How to use

  • Record a macro first with Ctrl+Q and stop recording with the same shortcut
  • Windows and Linux: Ctrl+Alt+Shift+R
  • Mac OS: Cmd+Shift+R
  • command browser: search for RepeatMacro
  • Enter the number of lines you want to repeat this macro in the current file

How to install

  • Clone or download git repo into your packages folder

Using Package Control:

  • Run “Package Control: Install Package” command, and find RepeatMacro package

repeat-macro's People

Contributors

rosmianto avatar sivakumar-kailasam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

repeat-macro's Issues

[Linux] Change record-macro keybind

The current key-binding mentioned for recording a macro is Ctrl+q which is the key-bind to close sublime (in linux). The key-bind in the sublime key-bindings is Ctrl+Alt+q.

It would also be great if you can edit the readme and direct users towards Sublime's toggle_record_macro key-bind. Or atleast make it such that toggle_record_macro key-bind is available in this plugin's default keymap.

Repeat until cursor reaches EOL or EOF?

Suppose you have a macro in which the cursor position is changed once it's executed.
A functionality to run the macro until the cursor has reached EOL and EOF would be really useful!

  • To illustrate, suppose I want to put a , (comma and a space) in between each character in this line:
    svehhpakakfpozjceullmvlyjkds
  • Running the macro i recorded, with my cursor positioned at the start of the line would yield:
    s, vehhpakakfpozjceullmvlyjkds
  • And running to the EOL would yield:
    s, v, e, h, h, p, a, k, a, k, f, p, o, z, j, c, e, u, l, l, m, v, l, y, j, k, d, s,

repeat to end

Hi,

Can you have the macro record repeat to the end of the list of items instead of inputing a repeat number?

Thanks!

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.