How do you define key bindings to run recorded macros in Sublime Text 2? I can record a macro, but how do I run it on demand?
Sublime Text run a macro with key bindings
835 Views Asked by NightOwlPrgmr At
1
There are 1 best solutions below
Related Questions in MACROS
- Writing a `define-let` macro, with hygiene
- Find all functions generated by macros
- How to token paste a number?
- Parentheses and macro overloading in C++
- Is there any way to skip macro replacement(During preprocessing) when macro is used as a variable name?
- Why is it not advised to define macros in header files?
- What does the non-terminating-p argument of set-macro-character do?
- Calling a table of function using repeat blocks or macros in GNU assembly
- x-macro conditional error - number comparison
- SAS Concatenate Multiple Variables to Create Data-Driven Macro Statements
- clojure quoting inside let
- Julia: How do I create a macro that returns its argument?
- How do I unit test clojure.core.async go macros?
- Defining Macros that are equal to functions that return objects in C++
- syntax error : missing ')' before 'constant'
Related Questions in SUBLIMETEXT2
- How can I run C programs in sublime text 2 that require an input?
- Adding a CSS folder on Sublime Texts side bar with a main.css and normalize.css file
- How to add your own syntax to Sublime Text 2
- Sublime Text won't output Java println statements in main method
- ElementTree errors, html files will not parse using Python/Sublime
- How to create typing shortcuts in Sublime Text 2?
- Sublime text - how to select HTML table columns?
- How to exclude some directory during search(through ctrl+shift+f) in sublime 2?
- Sublime Text run a macro with key bindings
- Sublime Text shows nothing on Python build
- Decode error - output not utf-8
- Clean Python code with Sublime
- Can't build SASS in Sublime Text 2
- How can I exclude a folder from indexing in Sublime Text, while still showing it in the sidebar?
- regular expression in sublime text 2 to match text
Related Questions in KEY-BINDINGS
- How to bind a hotkey
- VIM hjkl navigation keys, aganist existing muscle memory of arrow keys
- How do I bind the spacebar to the default function of ctrl in a listbox in python 3.4 with tkinter
- Sublime Text run a macro with key bindings
- I am able to capture the TAB in a jtable, but how do I capture the SHIFT+TAB?
- How do I use key name in key bindings?
- Where to find emacs ansi-term bindings
- How do I access the name of the action defined in a Java key binding?
- Why do KeyBindings, but not KeyListeners, detect ActionEvents in the following example?
- Can I bind action to a keypress in Emacs?
- Sublime Key Binding "TAB" to exit parenthesis, quotes etc, EXCEPT when it is the first character on the line
- Dyalog APL - Disabling APL symbol input
- Extend keybindings in JTable
- Enable spectacle keybindings with sublime text 2 on OSX Mavericks
- Custom key bindings in OSX terminal
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Assuming you already know how to create and save a macro I will only show how to define a key binding to run the saved macros.
I couldn't locate an answer on SO and Google, so I decided to post the answer here for anyone else who needs to do such functionality in the future.
This has been tested in Sublime 2, but most likely is the same sytax as in Sublime 3. The file location of the saved macro may be different depending on version and where you decided to save your macro file.
In Sublime 2 the macros default to the
Sublime 2\Data\Packages\User\directory and is where I will reference in my example.Example:
This binding will execute the macro file specified using the
alt+shift+okey combination.