notepad-search
Search the text of every open Windows 11 Notepad window and tab, and jump to the match.
notepad-search is for people who keep dozens of Notepad windows open as working memory. Type a few words, see which tabs contain them with the surrounding text, and bring the right window to the front. It is a plain, deterministic search in the spirit of grep. No AI is used or needed. It is a companion to notepad-cleanup, which saves open tabs to disk. Each tool installs and works on its own.
Status: alpha. Searching, jumping, loading unloaded tabs and minimising work on Windows 11 Notepad; see the roadmap for what comes next.
Installation
pip install notepad-search
From source:
git clone https://github.com/DazzleTools/notepad-search.git
cd notepad-search
pip install -e ".[dev]"
Usage
notepad-search raining cats dogs # tabs containing all three words
notepad-search "cats and dogs" # a phrase
notepad-search -E 'inv-\d{4}' --any # regular expressions; --any for any of them
notepad-search -C 2 plumber # two lines either side instead of the paragraph
notepad-search go 2 # bring result 2's window to the front
notepad-search --go plumber tuesday # print the results, and jump if exactly one tab matched
notepad-search show 2 # print result 2's whole tab
notepad-search list # every Notepad window and its loaded tabs
notepad-search minimize --except-results # minimise every Notepad window but the matches
notepad-search --help # everything else
Each result names the window and the tab's first line, shows the matching paragraph with the words highlighted, and the last line says how many tabs were searched and how many were not.
Tabs Notepad has not loaded
Windows 11 Notepad does not create a tab's text until the tab has been shown, so some tabs cannot be read until each is clicked once. notepad-search can do that for you: notepad-search --load WORD, or notepad-search load on its own. It always prints a notice and counts down first, because each window comes to the front for a moment and takes the keyboard focus. Choose your default with notepad-search config load never|ask|always; --load and --no-load override it for one run. Once loaded, tabs stay loaded until Notepad restarts.
If Notepad taskbar buttons are left red afterwards, notepad-search unflash clears them (again with a notice: each window comes forward for half a second).
Exit codes follow grep: 0 when something matched, 1 when nothing did, 2 on an error.
Privacy
notepad-search keeps as little as it can between runs, in %LOCALAPPDATA%\notepad-search\:
last-search.json-- sogo Nandshow Nwork: each result's window handle, the handle of its tab's text area, and the tab's length. No search words, no window titles, no tab text, and no hash of the text.last-load.json-- the windows the last loading pass clicked through, forunflash.history.json-- past search words, only if you turn it on:notepad-search config history 20keeps the last 20; the default, 0, keeps none.--no-historyleaves one search out.
notepad-search forget deletes all of them (it asks first; --yes skips the question). Your settings in %APPDATA%\notepad-search\config.toml are kept.
Your shell keeps its own record of the commands you type, including search words: PowerShell in its history file ((Get-PSReadLineOption).HistorySavePath), cmd for the life of the window. notepad-search cannot clear that for you.
Development
Prerequisites:
- Windows 11
- Python 3.11+
- Git
Setup:
git clone https://github.com/DazzleTools/notepad-search.git
cd notepad-search
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e ".[dev]"
bash scripts/repokit-common/install-hooks.sh
Tests:
python -m pytest tests/ -v
Contributing
Contributions welcome! Please open an issue or submit a pull request.
See CONTRIBUTING.md for:
- Development setup
- Running the tests
- Version management with
sync-versions.py - Pull request checklist
Like the project?
License
notepad-search, Copyright (C) 2026 Dustin Darcy
Licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later) -- see LICENSE.
Metadata
Release files for notepad-search 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| notepad_search-0.2.1.tar.gz | 53.8 kB | With provenance | Details for notepad_search-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| notepad_search-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for notepad_search-0.2.1-py3-none-any.whl |
Total release size: 102.5 kB
Release files / notepad_search-0.2.1.tar.gz
| Download URL | notepad_search-0.2.1.tar.gz |
|---|---|
| Size | 53.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
532affd3e31187a7fa1a2cb440ff4c41013286740f4e5c025e6037e8d728080e
|
|
BLAKE2b-256 checksum How to use checksums |
edc054ea8787a2ca3788dae65403d2c7cd91a277b1536842893d15fda9070b02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logRelease files / notepad_search-0.2.1-py3-none-any.whl
| Download URL | notepad_search-0.2.1-py3-none-any.whl |
|---|---|
| Size | 48.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10c43dff0c9e157faf1cb05503b38f157838a7b7c6a5468225b01258ae1338ea
|
|
BLAKE2b-256 checksum How to use checksums |
15e636e5141cf9fc27c7642c1baa4d41082aba7e02e0766e3fa866084f96fab5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logSecurity for notepad-search 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for notepad_search-0.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.