Notepad plus plus

From G1Joshi/Agent-Skills · View interactive version

Notepad plus plus is an AI agent skill from the GitHub repository G1Joshi/Agent-Skills. Expert Notepad++ assistance covering text editing, regex search/replace, macro automation, plugin management via Plugins Admin, and session handling. Use when scripting text transformations, configuring Notepad++ plugins, editing large log files, or automating batch file replacements.

How to use this skill

Skill file

Notepad++

Notepad++ is a lightweight, free source code editor for Windows. It is famous for its low footprint and being written in C++.

When to Use

Quick Start

1. Regex Find and Replace (Multiline & Capture Groups)

2. Run from Command Line

notepad++.exe -multiInst -nosession "C:\path\to\large_logfile.log"

Core Concepts

Multi-Line Regular Expression Find & Replace

Matching, parsing, and cleaning enterprise log files using PCRE regex engine:

# Find ISO timestamp followed by ERROR level and message:
^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+Z)\s+\[ERROR\]\s+(.*)$

# Replace with structured TSV for Excel/database import:
$1\tERROR\t$2

# Find and eliminate empty or blank whitespace lines:
^[ \t]*$\r?\n
# Replace with: (leave empty)

Column Mode (Block Selection) Editing

Automated Script Execution with NppExec

Automating Python linting or compilation directly from Notepad++:

// NppExec Script: Run Python Lint & Test
npp_save
cd $(CURRENT_DIRECTORY)
cmd /c "ruff check $(FILE_NAME) && pytest -q $(FILE_NAME)"

Common Patterns

Regex Data Extraction and Transformation

Problem: Parse unstructured server log entries into structured CSV or JSON.

Solution: Apply capture groups in Notepad++ Regex Find & Replace (Ctrl + H).

# Find Expression:
^(\d{4}-\d{2}-\d{2})\s+(\d{2}:\d{2}:\d{2})\s+\[(\w+)\]\s+(.*)$

# Replace Expression:
{"date": "$1", "time": "$2", "level": "$3", "message": "$4"}

Best Practices

Do:

Don't:

Troubleshooting

| Error | Cause | Solution |

| ---------------------------------------------------------- | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |

| Notepad++ crashes when opening multi-gigabyte log file | 32-bit architecture memory limits or Scintilla buffer overflow | Use 64-bit Notepad++ build, or install LargeFiles plugin; disable syntax styling for .log files. |

| Regex search matches unexpectedly across unintended blocks | Greedy quantifier .* used instead of lazy .*? | Change quantifier from .* to non-greedy .*? or restrict character classes [^"]*. |

| Plugins Admin menu missing | Enterprise deployment or outdated portable installation | Download latest 64-bit release from notepad-plus-plus.org; ensure plugins directory has write permissions. |

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.