adeeteya / FlutterMarkdownEditor

Markdown Editor app allows easy markdown file creation and editing. It opens ".md" files directly from explorer, provides text styling options, effortless link addition, Light and Dark Theme Modes, Multiple View Modes. Developed using Flutter, it's mainly intended for mobile devices as there are no standalone markdown editors presently available.
MIT License
152 stars 18 forks source link

Customize save location #14

Open deathblade666 opened 4 months ago

deathblade666 commented 4 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Would love to be able to select a location to save files rather than having them default to the apps data directory when modifying an existing file or downloads when saving a new file

Describe the solution you'd like A clear and concise description of what you want to happen.

Add a setting to set a default save location

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Only alternative I've come up with is to use tasker to move the file where I want it when closing the markdown editor

Additional context Add any other context or screenshots about the feature request here.

deathblade666 commented 3 months ago

I think i realized the issue here, the storage permission prompt is not running so the app doesn't have permissions to view any other directory than its data dir. not sure if this is designed for an older version or what but if you use a system perm request that should fix it i would think.

deathblade666 commented 3 months ago

After more digging i found the issue is acouple things.

  1. May need the MANAGE_EXTERNAL_STORAGE permission
  2. The current getFilePath function is getting the cached path within the /data directory so it saves there instead of where the file actually is
  3. the filer picker function, does not seem to return a valid file URL (at least in the logs) not sure whats needed there though.

EDIT: dug deeper it appears the only real issue here is #2.