Skip to content

feat: add custom text source from local file, code file, or URL#7

Open
barelief wants to merge 1 commit into
Sakura-sx:mainfrom
barelief:feature/custom-word-list
Open

feat: add custom text source from local file, code file, or URL#7
barelief wants to merge 1 commit into
Sakura-sx:mainfrom
barelief:feature/custom-word-list

Conversation

@barelief
Copy link
Copy Markdown

@barelief barelief commented Apr 14, 2026

Summary

2026-04-14.10-29-50.mp4
  • New Custom Text menu option: loads any local file or http/https URL as typing text
  • Newline-aware display: code structure preserved with markers, press Enter to type newlines
  • Tabs expanded to 4 spaces, non-printable chars stripped automatically
  • Settings → Custom Word File to persist the source across sessions
  • --custom <path|url> CLI flag for quick access
image image

Test plan

  • python3 main.py --custom words_i_like.txt — word list from local file
  • python3 main.py --custom main.py — code file with newlines and indentation
  • python3 main.py --custom https://raw.githubusercontent.com/Sakura-sx/typr/main/main.py — fetch from URL
  • Set custom file via Settings menu, verify it persists in settings.json
  • Set custom file via Custom Text menu prompt (when none is configured)
  • Backspace works correctly across newline boundaries

- New Custom Text menu option: loads any local file or http/https URL as typing text
- Newline-aware display: code structure preserved with ↵ markers, Enter types newlines
- Tabs expanded to 4 spaces, non-printable chars stripped automatically
- Settings > Custom Word File to persist the source across sessions
- --custom <path|url> CLI flag for quick access
- Update README with usage examples using repo's own files as URLs
@barelief barelief force-pushed the feature/custom-word-list branch from b01a2bf to 0720825 Compare April 14, 2026 07:49
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