NppMarkdownPanel icon indicating copy to clipboard operation
NppMarkdownPanel copied to clipboard

Targeted preview for unsaved/extensionless files without 'Allow all file extensions'

Open piknockyou opened this issue 1 month ago • 1 comments

Many thanks for the great plugin!
Here is my suggestion to make it even better:

Feature Enhancement Proposal

Enhance the plugin handling to support previews for unsaved/new Notepad++ files (e.g., "new 1" or backups like "new@YYYY-MM-DD_HHMMSS") without enabling "Allow all file extensions," which previews everything.

Suggested Implementation Options:

  • Add a checkbox: "Enable preview for files without extensions."
    (This could target extensionless buffers directly via Notepad++ API checks.)
  • Allow special keywords like "none" in the Supported File Extensions box.
    (E.g., users could input: md,markdown,none to include unsaved files without blanket enabling.)
  • Preview if the language is set to None (Normal Text).
    (Leverage Notepad++'s language lexer detection for new/unsaved tabs, with an option to auto-detect Markdown syntax.)

Use Case:

Quick previews of pasted Markdown in unsaved "new" files without enabling "Allow all file extensions" (to avoid performance issues on large non-MD files like logs or code).

Related to #99, #111, #112, #117, #124, but more targeted.

piknockyou avatar Nov 17 '25 09:11 piknockyou

Thanks for the detailed propsals! I think the first one is the cleanest regarding UX.

mohzy83 avatar Nov 26 '25 21:11 mohzy83