Skip to content

feat(text): read .ahk, .ini, .rsc and .cmd files as plain text - #663

Merged
KnifeLemon merged 1 commit into
mainfrom
formats/text-aliases
Oct 27, 2026
Merged

KnifeLemon merged 1 commit into
mainfrom
formats/text-aliases

Conversation

@KnifeLemon

Copy link
Copy Markdown
Owner

What does this change?

Adds ahk (AutoHotkey), ini (settings files), rsc (MikroTik RouterOS exports) and cmd (Windows batch, same as .bat) to the extensions of the TXT format, the way #611 added .sql. They are read as plain text and convert to TXT, PDF, DOCX and the other text targets; nothing is ever run. A .cmd offered by a web page stays refused, as .bat already is (WebFileNames).

Settings schema 49 (SettingsMigrations.ApplyToLibrary) teaches existing text donuts the new extensions, plus .sql, which #611 added without a migration (so existing libraries never learnt it). Custom claims stay put. Open PR #617 also uses schema 49; whichever merges second needs to renumber (noted in the migration comment, like v43).

Closes #536, closes #661, closes #660
Part of #630 (.ini → TXT and the other text targets; the "BAT" target is still waiting for the reporter's answer)

Type of change

  • Bug fix
  • New feature or improvement
  • New format or engine
  • Translation
  • Documentation
  • Build, CI or dependencies

How was it tested?

  • dotnet format --verify-no-changes
  • dotnet test (Filee.Core.Tests: 638 passed, 3 skipped; ScriptTextTests covers detection of the five extensions and the v48 → v49 migration, including a custom donut that keeps its .rsc claim)
  • Tried it in the app (what you converted or clicked, and on which OS):

Screenshots (UI changes)

None, no UI changes.

Checklist

  • New UI strings are in all src/Filee.App/Assets/i18n/*.json files (no new UI strings)
  • New third-party code or binaries are listed in THIRD-PARTY-NOTICES.md (none added)
  • The PR does one thing (unrelated changes go in a separate PR)

The README format count stays at 266: no new format entry, only extensions of TXT.

🤖 Generated with Claude Code

…660)

AutoHotkey scripts, INI settings files, MikroTik RouterOS exports and .cmd
batch scripts join the TXT format like .bat, .ps1 and .sql: recognised as text
and converted to TXT, PDF, DOCX and the other text targets, never run. A .cmd
offered by a web page stays refused as before, like .bat.

Settings schema 49 teaches existing text donuts the new extensions, plus .sql,
which #611 added without a migration; custom claims stay put.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the feature New features label Oct 27, 2026
@KnifeLemon
KnifeLemon merged commit 846a649 into main Oct 27, 2026
9 checks passed
KnifeLemon added a commit that referenced this pull request Oct 27, 2026
…tensions (#663)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
KnifeLemon added a commit that referenced this pull request Oct 27, 2026
…schema 51

Schema 49 is #663's text extensions on main and 50 is kept for #665 (.dav), so the
"Edit pictures" step is now v51.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Format]: MikroTik RouterOS .rsc [Format]: .cmd Format request: .ahk

1 participant