zhanghai / zhanghai/MaterialFiles

Text Editor Suggestions

Open
#275 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
9k
Forks
736
PR merge metrics
No merged PRs in 30d

Description

  1. Monospace toggle: Add a monospace (and default font) toggler. Any files that are not standard text files should be displayed in monospace font (e.g. .txt files could be opened in default font but .prop files should be opened in monospace font). But you can open all files in monospace font if you think this to be a bit overhead.
  2. Line/word wrapping (optional): This feature speak for itself, I think. (Currently line wrapping is enabled by default).
  3. Font size (similar to #165): You obviously noticed that the font size of the file manager is much much bigger than the text editor. There should be an option to increase or decrease font size of the editor.
  4. Read only mode: This is also an obvious feature and available in many Android text editors (such as Solid Explorer's built-in text editor, Editor, etc.)
  5. Syntax highlight (No. 2 of #238): Syntax highlights should be available at least in the read only mode.
  6. Hex viewer (optional): There should be a hex viewer. Any binary file that is opened with Material Files text viewer should open there. Text files should also be opened in the hex viewer.

Attached images are proof of concept (taken from various apps) and doesn't represent the actual design:
Screenshot_20200504-021135_File_Manager
Screenshot_20200504-021028_File_Manager_1
Screenshot_20200504-021450_Editor
Screenshot_20200504-021600_Editor

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named in the issue. Begin by locating the Android text editor implementation and its existing font-size or editor settings, then scope the requested toggles, wrapping, read-only mode, syntax highlighting, and hex viewing separately; done would require agreed behavior and validation for the selected subset.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.