zhanghai / zhanghai/MaterialFiles
Select file/path (paste/write path, search results, terminal, root)
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 9k
- Forks
- 736
- PR merge metrics
- No merged PRs in 30d
Description
-
I can "copy path" but I can NOT "paste path" or "write path" manually.
-
Search results have files and directories. For files menu, it will be useful to have "go to file directory".
-
For "open in terminal", I can not select which terminal application to be used. I have 2 terminal applications, it is using "Terminal Emulator" (FDroid). If root is needed, then the "cd" command fails.
-
From "KeePass DX" application, "Material Files" can be used as "select file" for "open existing database" BUT it is NOT used for "create new database" (It is not just "select directory", because using the default "select file/path" application, I had to provide directory and file name for the new database).
-
(Edit: I noticed that "back" button works the same way with default "select file" - navigate to top directory and then exit)
When "Material Files" is used as "select file", then "back" button must always "exit" and return back to the main application. Currently, "back" button navigate to the top directory (root or internal) and after that it will "exit". -
This one is more twisted... I am not sure is it valid issue...
-
Default "select file":
From "KeePass DX", open database, using default "select file" application, I selected: "Internal/Download/test.kdbx"
File open and save works. File name is shown correctly!
In "KeePass DX" settings I see:
"content://com.android.externalstorage.documents/document/primary%3ADownload%2Ftest.kdbx" -
Strange file name with "Material Files":
From "KeePass DX", open database, using "Material Files" to "select file", I selected:
"Internal/Download/test.kdbx"
File open and save works. File name is shown as:
"file%3A%2F%2F%2Fstorage%2Femulated%2F0%2FDownload%2Ftest.kdbx"
In "KeePass DX" settings I see:
"content://me.zhanghai.android.files.file_provider/file%253A%252F%252F%252Fstorage%252Femulated%252F0%252FDownload%252Ftest.kdbx" -
Save not working (maybe it is "KeePass DX" fault):
From "KeePass DX", open database, using "Material Files" to "select file", I selected:
"/data/data/com.kunzisoft.keepass.libre/test.kdbx" (rooted)
File open works. File save is NOT working. File name is shown as:
"file%3A%2F%2F%2Fdata%2Fdata%2Fcom.kunzisoft.keepass.libre%2Ftest.kdbx"
In "KeePass DX" settings I see:
"content://me.zhanghai.android.files.file_provider/file%253A%252F%252F%252Fdata%252Fdata%252Fcom.kunzisoft.keepass.libre%252Ftest.kdbx" -
Strange file name with default "select file":
From "KeePass DX", open database, using "Material Files" to "select file", I selected:
"Downloads/test.kdbx" (virtual folder "Downloads")
File open and save works. File name is shown as:
"6"
In "KeePass DX" settings I see:
"content://com.android.providers.downloads.documents/document/6"
Thanks!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported file/path selection, search-result navigation, terminal choice, back-button, and KeePass DX integration scenarios described in the issue. Compare behavior across the default Android picker and Material Files, then define which requested workflows are in scope and verify each affected scenario before considering the work done.
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