PageSourceSearch

https://josephfus.co/ignoring-folders-in-a-sublime-search

html josephfus.co collected 2026-10-03 20:47:42 UTC 14,723 bytes, 163 lines download raw bytes

1<!DOCTYPE html>
2<html lang="en">
3<head>
4	<meta charset="utf-8">
5	<meta name="viewport" content="width=device-width, initial-scale=1">
6
7	<title>Ignoring Folders In A Sublime Search | Joe Fusco</title>
8	<meta name="description" content="I’ve been utilizing Sublime’s Find in Folder feature lately, and can’t believe I didn’t know about this earlier. You can get to it by either right clicking a...">
9
10	<link rel="preload" href="/assets/fonts/AtkinsonHyperlegible-Regular.woff2" as="font" type="font/woff2" crossorigin>
11	<link rel="preload" href="/assets/fonts/AtkinsonHyperlegible-Bold.woff2" as="font" type="font/woff2" crossorigin>
12	<link rel="stylesheet" href="/assets/css/redesign.css?v=1790875430">
13	<link rel="canonical" href="https://josephfus.co/ignoring-folders-in-a-sublime-search">
14	<link rel="author" href="/humans.txt">
15	<link rel="icon" type="image/svg+xml" href="/assets/images/mark.svg">
16	<link rel="shortcut icon" type="image/icon" href="/favicon.ico?v=2">
17	<meta name="theme-color" content="#f6f1e5">
18
19	<meta property="og:type" content="article">
20	<meta property="og:title" content="Ignoring Folders In A Sublime Search">
21	<meta property="og:description" content="I’ve been utilizing Sublime’s Find in Folder feature lately, and can’t believe I didn’t know about this earlier. You can get to it by either right clicking a...">
22	<meta property="og:url" content="https://josephfus.co/ignoring-folders-in-a-sublime-search">
23	<meta property="og:image" content="https://josephfus.co/assets/images/og.png">
24	<meta property="og:image:width" content="1200">
25	<meta property="og:image:height" content="630">
26	<meta name="twitter:card" content="summary_large_image">
27
28	<link type="application/atom+xml" rel="alternate" href="https://josephfus.co/feed.xml" title="Joe Fusco">
29
30	
30<script type="speculationrules">
31	{
32		"prerender": [{ "where": { "href_matches": "/*" }, "eagerness": "moderate" }]
33	}
34	</script>
34
35</head>
36
37<body>
38	<a class="skip-link" href="#main">Skip to content</a>
39	<div class="read-progress" aria-hidden="true"></div>
40	<header class="site-header">
41	<div class="site-header-bg" aria-hidden="true"></div>
42	<div class="wrap">
43		<a class="site-name" href="/" aria-label="Joseph M. Fusco III, home">
44			<svg class="site-mark" viewBox="0 0 600 600" aria-hidden="true">
45				<rect x="350" y="250" />
46				<rect x="50" y="350" />
47				<rect x="50" y="450" />
48				<rect x="150" y="450" />
49				<rect x="250" y="450" />
50				<rect x="250" y="350" />
51				<rect x="250" y="250" />
52				<rect x="250" y="150" />
53				<rect x="250" y="50" />
54				<rect x="350" y="50" />
55				<rect x="450" y="50" />
56			</svg>
57		</a>
58		<nav class="site-nav" aria-label="Main">
59			<a href="/about">About</a>
60			<a href="/design">Design</a>
61			<a class="nav-cta" href="/#writing" aria-current="page">Writing</a>
62		</nav>
63	</div>
64	<div class="powerline" aria-hidden="true">
65		<svg class="wire-svg" viewBox="0 0 100 20" preserveAspectRatio="none"><path d="M0 10 Q 50 10.6 100 10" fill="none" stroke="currentColor" vector-effect="non-scaling-stroke" stroke-width="1"/></svg>
66	</div>
67	<div class="field-note field-note--after-trail">
68		<span class="status"><span class="presence-dot" aria-hidden="true"></span> <span data-presence-count>just you here</span></span>
69		<label class="region-line"><span class="tool-glyph">⊕</span> <select class="region-select" aria-label="Flock region">
70			<option value="nae">North America, East</option>
71			<option value="nac">North America, Central</option>
72			<option value="naw">North America, West</option>
73			<option value="mx">Mexico and Central America</option>
74			<option value="eu">Europe</option>
75			<option value="as">Asia</option>
76			<option value="af">Africa</option>
77			<option value="oc">Oceania</option>
78			<option value="sa">South America</option>
79		</select></label>
80		<button class="guide-toggle" popovertarget="field-guide"><span class="note-bird" data-species="0" data-inline aria-hidden="true"></span> field guide</button>
81		<div id="field-guide" popover>
82			<div class="bird-legend" data-legend aria-label="The field guide, one entry per species"></div>
83		</div>
84	</div>
85</header>
86
87	<main id="main" aria-label="Content">
88		<div class="wrap">
89			<article class="prose">
90				
91<p class="crumb-line">
92	<a class="crumb-back" href="/#writing">&larr; Writing</a>
93</p>
94
95				<h1 style="view-transition-name: vt-ignoring-folders-in-a-sublime-search; view-transition-class: post">Ignoring Folders In A Sublime Search</h1>
96				<p class="meta">
97					<time datetime="2015-08-31T00:00:00+00:00">31 August 2015</time>, 1 min read
98				</p>
99				<p>I’ve been utilizing Sublime’s <em>Find in Folder</em> feature lately, and can’t believe I didn’t know about this earlier. You can get to it by either right clicking a folder in the file tree, or with the shortcut <code class="language-plaintext highlighter-rouge">cmd</code> + <code class="language-plaintext highlighter-rouge">shift</code> + <code class="language-plaintext highlighter-rouge">f</code>.</p>
100
101<p>By using an absolute path, you can recursively search every bit of text in project files to locate specific elements. You are essentialy performing a <a href="http://www.gnu.org/software/grep/manual/html_node/Usage.html">grep</a> command but using the Sublime GUI.</p>
102
103<p>This was sometimes taking forever though as I would search from a project root. With a workflow that includes SASS and Grunt, I was sometimes searching unecessary files adding to the search time and making my CPU work harder than 
103it should. After some research on the issue, I discovered <code class="language-plaintext highlighter-rouge">folder_exclude_patterns</code>.</p>
104
105<p>This can be placed in your <code class="language-plaintext highlighter-rouge">Packages/User/Preferences.sublime-settings</code></p>
106
107<div class="language-json highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{</span><span class="w">
108	</span><span class="nl">"folder_exclude_patterns"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w">
109		</span><span class="s2">".svn"</span><span class="p">,</span><span class="w">
110		</span><span class="s2">".git"</span><span class="p">,</span><span class="w">
111		</span><span class="s2">".hg"</span><span class="p">,</span><span class="w">
112		</span><span class="s2">"CVS"</span><span class="p">,</span><span class="w">
113		</span><span class="s2">"node_modules"</span><span class="p">,</span><span class="w">
114		</span><span class="s2">".sass-cache"</span><span class="w">
115	</span><span class="p">]</span><span class="w">
116</span><span class="p">}</span><span class="w">
117</span></code></pre></div></div>
118
119<p>If you are using git for version control. Your exclude pattern should generally contain the same things as your <code class="language-plaintext highlighter-rouge">.gitignore</code>.</p>
120
121			</article>
122
123			<nav class="post-nav" aria-label="Post navigation">
124				<span class="post-nav-prev"><a rel="prev" href="/setting-up-redirects-with-jekyll"><span class="post-nav-arrow">&larr;</span><span class="post-nav-title">Setting Up Redirects With Jekyll</span></a></span>
125				<span class="post-nav-next"><a rel="next" href="/stop-gmail-app-from-adjusting-your-email-templates-font-sizes"><span class="post-nav-title">Stop Gmail App From Adjusting Your Email Template's Font Sizes</span><span class="post-nav-arrow">&rarr;</span></a></span>
126			</nav>
127
128		</div>
129	</main>
130	<footer class="site-footer">
131	<div class="wrap">
132		<div class="letter-close">
133		<address class="h-card">
134			<div class="signature-ink" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="280.9 62.7 725.2 476.9" fill="currentColor" aria-hidden="true"><path transform="translate(358.0 327.2)" d="M0,2.74 t-14.43,-.45 -18.86,-1.97 -7.49,-7.32 -4.58,-11.82 -1.55,-13.37 2.98,-18.28 9.26,-24.41 15.1,-27.07 18.12,-25.31 18.91,-21.65 19.36,-18.5 17.93,-14.81 16.77,-11.77 17.49,-10.44 16.76,-8.68 14.81,-6.52 13.57,-4.73 12.46,-3.15 10.78,-1.88 9.28,-.48 8.02,1.6 6.24,4.7 4.13,8.8 1.87,12.71 -1.97,18.44 -7.44,26.47 -12.49,32.61 -16.83,37.13 -31.25,61.25 -39.61,75.29 -37.05,68.21 -22.77,40.04 -6.73,10.06 -5.47,7.22 -3.98,4.57 -3.85,2.06 -3.12,-.72 -1.38,-3.51 -.54,-5.62 .19,-7.02 1.1,-8.28 2.09,-9.31 2.96,-10.15 3.71,-10.75 4.64,-11.08 6.72,-12.51 8.91,-13.93 9.45,-13.08 12.99,-15.86 18.02,-19.62 16.3,-15.88 8.76,-7.38 2.13,-1.32 a2.39,2.39 0 0 1 1.4,4.57 t-1.58,.57 -2.79,1.46 -6.69,5.77 -15.04,14.6 -17.83,19.43 -12.86,15.7 -9.32,12.92 -8.75,13.69 -6.56,12.23 -4.53,10.87 -3.61,10.6 -2.85,9.94 -1.94,8.97 -.95,7.88 -.05,6.55 .51,5.19 4.11,-2.06 6.85,-8.64 6.63,-9.91 22.7,-39.93 37.03,-68.15 39.58,-75.24 31.18,-61.1 16.75,-36.94 12.4,-32.29 7.35,-25.86 1.99,-17.65 -1.56,-11.78 -3.21,-7.73 -4.94,-3.97 -7.05,-1.4 -8.82,.45 -10.53,1.82 -12.17,3.07 -13.31,4.62 -14.61,6.44 -16.57,8.57 -17.28,10.31 -16.55,11.61 -17.74,14.65 -19.14,18.28 -18.7,21.4 -17.89,24.96 -14.85,26.6 -9.07,23.68 -2.92,17.37 1.42,12.55 3.74,10.73 5.89,6.18 17.93,.75 14.38,-.34 a2.74,2.74 0 0 1 0,5.48 ZM93.48,17.9 t-.09,1.27 -.84,4.01 -.74,2.76 a2.93,2.93 0 0 1 -5.67,-1.46 t1.31,-3.63 1.3,-3.64 a2.39,2.39 0 0 1 4.73,.69 ZM87.82,22.52 t2.27,-.89 8.34,-4.99 12.88,-9.13 12.08,-6.04 7.16,-.65 9.99,.02 12.66,.6 6.34,1.05 4.17,-.28 7.55,-2.19 10.6,-4.19 5.43,-2.37 a1.98,1.98 0 0 1 1.65,3.59 t-5.41,2.61 -10.88,4.93 -8.39,3.06 -5.19,.85 -3.93,-.11 -4.09,-.85 -8.98,-.34 -8.72,.12 -3.83,-.56 -5.07,-.16 -5.06,.75 -12.99,9.38 -13.8,10.02 -2.47,1.15 a2.93,2.93 0 0 1 -2.31,-5.38 Z"/><path transform="translate(622.4 158.8)" d="M-1.24,-2.56 t14.13,-6.29 23.33,-10.15 19.47,-7.7 22.82,-8.16 24.69,
134-8.25 23.27,-7.16 21.02,-5.68 18.06,-4.05 20.62,-3.18 20.56,-2.1 10.58,-.45 4.37,.95 2.98,3.37 -.11,7.23 -5.59,11.97 -12.74,17.23 -24.1,26.91 -38.46,39.99 -81.66,81.37 -97.31,96.47 -59.22,57.73 -20.87,19.52 a1.73,1.73 0 0 1 -2.34,-2.53 t20.83,-19.49 59.16,-57.7 97.27,-96.48 81.58,-81.34 38.34,-39.9 23.85,-26.65 12.33,-16.59 5.33,-10.57 -.14,-5.91 -3.54,-2.13 -10.26,.47 -20.31,2.1 -20.37,3.18 -17.9,4.06 -20.88,5.7 -23.16,7.21 -24.57,8.33 -22.63,8.25 -19.26,7.84 -15.92,7.16 -13.8,6.87 -6.97,3.67 a2.85,2.85 0 0 1 -2.48,-5.12 Z"/><path transform="translate(591.5 308.1)" d="M-.68,-2.93 t3.78,-.71 31.17,-8.12 41.68,-11 28.29,-6.77 29.03,-6.24 27.89,-5.42 32.67,-5.2 42.8,-5.58 28.75,-3.32 5.75,-.6 a2.1,2.1 0 0 1 .3,4.18 t-5.73,.24 -28.67,3.01 -42.63,5.69 -32.51,5.3 -27.78,5.53 -28.9,6.4 -28.14,6.98 -45.3,12.6 -31.09,8.89 a3.01,3.01 0 0 1 -1.36,-5.86 ZM271.49,-51.71 t-4.17,.76 -9.46,2.18 -13,3.99 -17.25,6.53 -18.97,8.5 -18.57,9.5 -18.51,10.66 -16.98,10.81 -16.59,12.03 -16.85,13.88 -8.54,6.65 2.16,-1.64 8.35,-2.7 10.48,-2.05 6.86,-.68 3.51,.46 2.84,1.35 2.47,3.03 1.74,4 5.03,2.06 9.7,-.38 16.72,-2.76 16.54,-2.38 7.27,-.1 6.07,1.48 6.08,1.71 9.6,.37 13.77,1.2 6.5,1.17 a2.98,2.98 0 0 1 -.66,5.93 t-4.62,-.51 -6.42,-.95 -9.05,-.35 -9.66,-.18 -6.18,-1.79 -5.71,-1.6 -6.36,.16 -14.13,2.12 -16.23,2.43 -11.86,.32 -6.8,-.65 -2.57,-1.36 -2.12,-4.83 -2.39,-4.96 -2.97,-1.2 -3.76,.15 -7.44,1.41 -9.88,2.69 -7.51,1.47 -1.97,-2.36 8.86,-9.34 17.05,-14.09 16.76,-12.19 17.11,-10.93 18.64,-10.79 18.7,-9.64 19.15,-8.67 17.44,-6.73 15.94,-4.92 9.78,-2.34 1.64,-.1 a2.1,2.1 0 0 1 .42,4.17 Z"/><path transform="translate(935.2 159.4)" d="M2.73,0 t-.35,14.04 -.32,17.77 .04,3.74 a2.1,2.1 0 0 1 -4.2,0 t.04,-3.74 -.32,-17.77 -.35,-14.04 a2.73,2.73 0 0 1 5.46,0 Z"/><path transform="translate(951.3 156.5)" d="M3.01,0 t-.06,10.11 -.06,10.1 a2.89,2.89 0 0 1 -5.78,0 t-.06,-10.1 -.06,-10.11 a3.01,3.01 0 0 1 6.02,0 Z"/><path transform="translate(971.9 140.2)" d="M3.16,0 t0,9.18 0,9.19 a3.16,3.16 0 0 1 -6.32,0 t0,-9.19 0,-9.18 a3.16,3.16 0 0 1 6.32,0 Z"/><path transform="translate(909.8 173.1)" d="M-2.35,-1.61 t7.95,-9.67 19.55,-22.55 18.89,-20.47 11.27,-11.5 6.16,-4.68 2.2,-.76 a2.54,2.54 0 0 1 1.24,4.92 t-1.56,.19 -3.88,1.88 -6.49,5.87 -12.41,13.2 -15.95,18.01 -13.54,16.51 -7.27,9.89 -1.46,2.38 a2.85,2.85 0 0 1 -4.7,-3.22 Z"/><path transform="translate(922.9 232.2)" d="M-2.55,-1.27 t3.94,-6.91 11.28,-17.12 11.73,-15.38 6.58,-7.36 7.83,-6.1 5.61,-3.92 a1.84,1.84 0 0 1 2.01,3.09 t-1.9,1.26 -5.34,3.66 -7.7,7 -8.61,10.52 -8.91,12.81 -6.35,10.31 -3.43,7.04 -1.64,3.64 a2.85,2.85 0 0 1 -5.1,-2.54 Z"/></svg>
135</div>
136			<p class="signature p-name">Joseph M. Fusco III</p>
137			<p class="signature-email"><a class="u-email" href="/cdn-cgi/l/email-protection#1d75787171725d77726e786d757b686e337e72226e687f77787e69205578717172382f2d5772783b7f727964205574382f2d577278382f5e382d5c382d5c"><span class="__cf_email__" data-cfemail="c3aba6afafac83a9acb0a6b3aba5b6b0eda0ac">[email&#160;protected]</span></a></p>
138			<p class="signature-contacts">
139				<a rel="me" class="u-url" href="https://github.com/josephfusco">GitHub</a><a rel="me" class="u-url" href="https://profiles.wordpress.org/joefusco">WordPress.org</a><a rel="me" class="u-url" href="https://codepen.io/fusco">CodePen</a><a rel="me" class="u-url" href="https://www.linkedin.com/in/josephfusco3">LinkedIn</a>
140			</p>
141		</address>
142		<p class="footer-tools">
143			<button class="blueprint-toggle" aria-pressed="false" title="See the schematics" commandfor="main" command="--blueprint" hidden><span class="tool-glyph">⌗</span> blueprint</button>
144			<button class="colophon-toggle" popovertarget="colophon"><span class="tool-glyph">✳</span> colophon</button>
145		</p>
146		<div id="colophon" popover>
147			<h2>Colophon</h2>
148			<p>Static site, built with Jekyll.</p>
149			<p>Other readers appear as anonymous birds, live. Cursor positions pass through in the moment and nothing is stored, no paths, no IPs, no identifiers. Global Privacy Control is honored automatically.</p>
150			<p>Source on <a href="https://github.com/josephfusco/josephfusco.github.io">GitHub</a>. There is a page that is <a href="/wire">only the wire</a>, and a <a href="/humans.txt">humans.txt</a>.</p>
151		</div>
152		<div class="fineprint">
153			<span>&copy; 2026 Joe Fusco.</span>
154			<span class="fineprint-place">Crafted in Rochester, New York.<button class="camera" aria-label="Take a photo" title="Say cheese"><span class="camera-lens"></span></button><span class="cheese" aria-hidden="true">CHEESE!</span></span>
155		</div>
156		</div>
157	</div>
158</footer>
vendor: 109 bytes, lines 158-159
158
159<script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script>
159<script src="/assets/js/presence.js?v=1790875430" defer></script>
159
160
161<script type="module" src="https://static.cloudflareinsights.com/beacon.min.js/v31edd6df95cf4e85bb4c19e7a9bdbcba1788362987495" integrity="sha512-iIg7k2xntmwu6/uSb5tpc/hySgZc4eoL31yB29W6tJFo2akwjPWcEqnCEdJvGexCL0KEQwVYv5BlowfhVz26hg==" data-cf-beacon='{"version":"2024.11.0","token":"7c1f62c831024a8c94a14a14623e5680","r":1,"spa":2}' crossorigin="anonymous"></script>
161
162</body>
163</html>

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.