Skip to content

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

@piknockyou

Description

@piknockyou

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions