# Using 'find' in macros

**URL:** <https://forum.sublimetext.com/t/using-find-in-macros/245>\
**Category:** Technical Support\
**Created:** [August 11, 2009, 8:44pm UTC](https://forum.sublimetext.com/t/using-find-in-macros/245 "2009-08-11T20:44:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kneehat](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/kneehat/32/69621_2.png) [@Kneehat](https://forum.sublimetext.com/u/Kneehat)\
**Post date:** [August 11, 2009, 8:44pm UTC](https://forum.sublimetext.com/t/using-find-in-macros/245/1 "2009-08-11T20:44:24Z")

</div>

Firstly, apologies if this has been discussed before but when I search on your forum for ‘macro find’ or permutations thereof, it tells me that the word ’ macro’ is too common so cannot be searched for. Slightly odd.

Anyway, I’m not sure if this is intended or a bug but using ‘find’ whilst recording a keystroke macro doesn’t work as expected.

For example, take a file with the following contents:

`some:thing
some:thing
some:thing`

start with the cursor at the top and press _ctrl-q ctrl-f : . ctrl-q_ then I would expect that pressing ctrl-shift-q twice would result in each colon being replaced by a period but it appears that the find element is not recorded.

Now, I know this is a trivial example and could be achieved with other means like a regex but there are times when it is a lot quicker and easier to do it this way such as doing this replacement on every alternate line.

---

<div class="post-metadata">

**Author:** ![EJ12N](https://forum.sublimetext.com/letter_avatar_proxy/v4/letter/e/9fc29f/32.png) [@EJ12N](https://forum.sublimetext.com/u/EJ12N)\
**Post date:** [August 12, 2009, 3:49pm UTC](https://forum.sublimetext.com/t/using-find-in-macros/245/2 "2009-08-12T15:49:43Z")

</div>

I too would like this feature, so when we record a macro find &replace] actions are recorded as well.  
For now the only possibility writing a plugin for it. if you do the same find&replace a lot. but it would be cool to have a macro that just does that, since it would be easier for users to create them. I think this feature would be [ab]used a lot!

---

<div class="post-metadata">

**Author:** ![Kneehat](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/kneehat/32/69621_2.png) [@Kneehat](https://forum.sublimetext.com/u/Kneehat)\
**Post date:** [August 12, 2009, 6:21pm UTC](https://forum.sublimetext.com/t/using-find-in-macros/245/3 "2009-08-12T18:21:46Z")

</div>

Yeah, I’d certainly use it a lot but unfortunately, my uses are almost always so quick and on-off that it’d be quicker making the changes manually than writing a plugin 😄

---

<div class="post-metadata">

**Author:** ![runnerxl](https://forum.sublimetext.com/user_avatar/forum.sublimetext.com/runnerxl/32/51621_2.png) [@runnerxl](https://forum.sublimetext.com/u/runnerxl)\
**Post date:** [February 25, 2012, 7:36am UTC](https://forum.sublimetext.com/t/using-find-in-macros/245/4 "2012-02-25T07:36:59Z")

</div>

This feature ‘find within macros’ is still not there (Sublime Text 2 beta build 2181), so is there any plan to implement this. I think, for useful editors EACH keystroke should recoded and played back. Right now, because I’am switching from Windows to OS X, I searching for a useful editor for OS X. My first choice is Sublime Text 2, but without this feature it will be Textmate. 😐

---

<div class="post-metadata">

**Author:** ![bernard](https://forum.sublimetext.com/letter_avatar_proxy/v4/letter/b/df705f/32.png) [@bernard](https://forum.sublimetext.com/u/bernard)\
**Post date:** [April 19, 2012, 7:43am UTC](https://forum.sublimetext.com/t/using-find-in-macros/245/5 "2012-04-19T07:43:27Z")

</div>

Requests for ST are kept at userecho.  
Add your vote for this feature here:  
[sublimetext.userecho.com/topic/7 … -commands/](http://sublimetext.userecho.com/topic/79139-recorded-macros-should-not-ignore-movement-commands/)
