UsingMac.com

Mac Tricks and Tips, Wallpapers and Applications for Mac Users

Search for Word in Text Document

Advertisements

Command F is the most common used keystrokes among Mac users. It can help you search for particular text in your document. But there are some of the trick you may not know before reading this article.

Search for Words Under Selection

Let's consider a worst case scenario, you have a thousands lines of words in your document and you want to find certain keyword from that text document. Usually you will just hit Command F and type in the word. It works fine, but if you do like this: Highlight part of the document and when doing the searching Command F, press Control Option.

You will notice that now Replace All button will be changed into In Selection. But it's only showing you some parts of the magic, actually it's saying like this Select All Keywords In Selection. And it will look like screenshots below.

In this way, you don't need to find the next matched word Command G and instead, you can scroll down and pay attention to the highlighted words. It's pretty useful for highly keyword densed text document.

Search for Words Separated with Line Break

This trick is very useful for searching in html documents. For example, you want to search for ul li with line break in the middle of those two tags, typing ul li alone cannot solve the problem. It won't return you any search results.

To add the line break, you should press Option Return. This keystrokes will perfectly give you the line break.

Re-Emphasize Selection

If you've scrolled down to other part of the document and left the selected area out of your sight. You can always press keystrokes Command J to re-emphasize selection. You will be automatically jumped to that selection. It has the same effect as searching again but with easier step.

Categories: Tips and Tricks
Tags: Document, Search

Subscribe to RSS Leave a Comment (6)

Related Entries

Some articles taken from our resource base, tightly related to current article, to empower you with more knowledge on tweaking the most out of your Mac.

6 Comments

MacTipper

Option-Return is a great one to know! I would always copy a carriage return and then paste it into the search window.  It's nice to know of this one.  

Thanks

MacTipper

My Mac-Tipping Blog

jhm

I usually find out why I'm mistaken about one minute after posting the question, so perhaps this will spur my grey cells:  Why does this work, but Command-E does nothing but flash the Edit rubric?

Daniel

We become what we think about!

thomas sabo

Honestly, I've always been more of a fan of just putting the monitor to sleep than screen savers. Sure they look pretty awesome, but if you're sitting at your computer, are you really doing so with the screen saver on?Good luck for the dates. It has been some times since we last heard about the next tour. I hope they can run it accordingly now.C8po0tJ4US4490yx

headphones

Honestly, I've always been more of a fan of just putting the monitor to sleep than screen savers. Sure they look pretty awesome, but if you're sitting at your computer, are you really doing so with the screen saver on?Good luck for the dates. It has been some times since we last heard about the next tour. I hope they can run it accordingly now.rq3EhbLuqYu4FC22

low priced jordans

tting the monito

Leave a Comment