Skip to content

Cyp9715/DeleteNewline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

502 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Delete Newline

Microsoft Store License: MIT Platform Built with

Stop reopening Notepad just to run Find & Replace. Save your regex rules once, assign a hotkey, then: select → hotkey → paste. Anywhere.

Delete Newline is a system-wide hotkey tool for instant text transformation. Drag-select text in any application, press your hotkey, and the selection is instantly run through your regex rules and pushed to the clipboard - ready to paste. Your browser, code editor, PDF reader, chat window - it doesn't matter where the text lives.

No more copy → open editor → paste → find/replace → copy → paste back. Just one keystroke.

Main interface


✨ Features

  • 🔗 Chained regex rules - apply multiple find/replace patterns in sequence
  • ⌨️ Multiple hotkey profiles - bind different rule chains to different shortcuts
  • 🌐 Works anywhere - capture selected text from any Windows application
  • 📋 Auto-clipboard - transformed text is ready to paste immediately
  • 🤖 MCP server built in - let an AI assistant author, edit, and test your regex profiles for you

🚀 How It Works

⚙️ One-Time Setup

Tell Delete Newline what you want to do. This setup is required only once per workflow.

  1. Create a rule chain - add one or more regex rules that define your transformation
  2. Assign a hotkey - bind a unique keyboard shortcut to that rule chain

⚡ Daily Workflow

Once it's set up, the daily flow is dead simple:

  1. Select any text (mouse drag or keyboard selection)
  2. Press your custom hotkey
  3. Paste - the transformed text is on your clipboard, ready to go

Workflow demo


💡 Use Cases

A few real-world examples of what you can build with regex chains:

📄 Clean up text copied from PDFs

PDFs frequently break sentences with hard line breaks. Restore the original flow in one keystroke.

Pattern Replace with
`[\r\n \n]`

🔗 Strip tracking parameters from URLs

Remove utm_*, fbclid, gclid, and other junk before sharing a link. This is a great example of chained rules - three small rules combine into a robust cleaner:

# Pattern Replace with What it does
1 `[?&](utm_[^=]+ fbclid gclid)=[^&]*`
2 ^([^?\n]*)& $1? Repairs URLs that lost their leading ?
3 \?$ (empty) Trims a bare trailing ? if all params were tracking

📝 Convert Markdown to plain text

Chain rules to strip formatting - perfect for pasting into plain-text fields. Rule order matters: bold must run before italic, or **word** gets mangled into *word*.

# Pattern Replace with What it does
1 \*\*(.+?)\*\* $1 Remove bold
2 \*(.+?)\* $1 Remove italic (must run after rule 1)
3 \[([^\]]+)\]\([^)]+\) $1 Convert links to plain text
4 (?m)^#+\s+ (empty) Strip heading markers (#, ##, …)

📅 Reformat dates on the fly

Swap date formats without leaving the app you're already in.

Pattern Replace with Result
(\d{4})-(\d{2})-(\d{2}) $2/$3/$1 2025-04-2804/28/2025

🤖 AI control via MCP

Specifying complex regular expressions is incredibly tricky - and asking an AI to write one, then copy-pasting it back, is an exhausting cycle. To address this pain point, Delete Newline ships with a built-in Model Context Protocol server. Connect any MCP-aware AI assistant (Claude Code, GPT Codex, local agents, …) and let it manage your settings profiles through conversation:

"There's an MCP server on 127.0.0.1:39333 (streamable HTTP). Probe it, then make a hotkey that strips Markdown bold/italic and bind it to Ctrl+Shift+M."

image

Enable it

  1. Open Settings in Delete Newline.
  2. Toggle MCP server on. (The default port is 39333; change it while MCP is disabled if you need to.)
  3. Chat with your AI! (Only MCP-capable clients work - Claude Code, GPT Codex, or other local LLMs.)

That's it - your assistant can now read and write Delete Newline state through the same surface the GUI uses. Hotkey changes are re-registered the moment they're saved, so transformations are usable on the next keystroke.

How do I check the MCP tools?

You normally don't need to check the MCP tools at all. But if you're a developer - or just want to see how MCP works under the hood - run npx @modelcontextprotocol/inspector in your command prompt (Node.js required).

image

📥 Download

Get Delete Newline from the Microsoft Store:

Get it from the Microsoft Store


🖥️ Requirements

  • Windows 11 (build 26100 or later)
  • .NET 10

🤝 Contributing

Bug reports, feature ideas, and pull requests are welcome. #

About

Stop reopening Notepad just to run Find & Replace. Save your regex rules once, assign a hotkey, then: select → hotkey → paste. Anywhere.

Resources

License

Stars

Watchers

Forks

Contributors

Languages