Skip to content

feat(scan): add editable filename prefix#810

Open
joseluu wants to merge 1 commit into
sbs20:masterfrom
joseluu:feat/filename-prefix
Open

feat(scan): add editable filename prefix#810
joseluu wants to merge 1 commit into
sbs20:masterfrom
joseluu:feat/filename-prefix

Conversation

@joseluu

@joseluu joseluu commented Jul 23, 2026

Copy link
Copy Markdown

Add a "Filename prefix" text field at the top of the left column in the scan view. It is passed through to the server, sanitised, and used as the prefix of the output filename (the timestamp is still appended to keep names unique). When left blank it falls back to the existing "scan_" default, so behaviour is unchanged for anyone who ignores the field.

  • ui: new field bound to request.filenamePrefix, placeholder "scan_"
  • ui: i18n keys scan.filename-prefix (en + fr)
  • server: Request sanitises filenamePrefix (strips path separators, reserved/control chars and leading dots, caps length) so it is safe to use on disk; empty/invalid values fall back to the default
  • server: config.filename(prefix) gains an optional prefix argument, backward compatible with a no-arg call
  • test: cover prefix pass-through, fallback and sanitisation

Add a "Filename prefix" text field at the top of the left column in the
scan view. It is passed through to the server, sanitised, and used as the
prefix of the output filename (the timestamp is still appended to keep
names unique). When left blank it falls back to the existing "scan_"
default, so behaviour is unchanged for anyone who ignores the field.

- ui: new field bound to request.filenamePrefix, placeholder "scan_"
- ui: i18n keys scan.filename-prefix (en + fr)
- server: Request sanitises filenamePrefix (strips path separators,
  reserved/control chars and leading dots, caps length) so it is safe to
  use on disk; empty/invalid values fall back to the default
- server: config.filename(prefix) gains an optional prefix argument,
  backward compatible with a no-arg call
- test: cover prefix pass-through, fallback and sanitisation

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant