markor icon indicating copy to clipboard operation
markor copied to clipboard

FileManager: New file, file type not consistent with suffix

Open XYIheng opened this issue 1 year ago • 1 comments

⚠️ This issue respects the following points: ⚠️

  • [X] This is a bug. Not a question or feature request.
  • [X] The topic is not already reported at Issues. (I've searched it).
  • [X] Markor is up to date. See Releases for the latest version. Updates are available from F-Droid and GitHub.
  • [X] The bug is still present in the latest development version (git master). (Please download and try the test version of Markor, named Marder. Don't worry; Markor and Marder appear as completely separate applications. You can install both side-by-side, and Markor settings are not touched. In case the issue is resolved there, you don't need to create a bug report. The change will be part of the next Markor update.)

Description

When I want to create a new file with type "todo.txt", the suffix is still ".md". It only happens after the first time I click the FAB image

https://github.com/gsantner/markor/assets/31406320/2b7a94de-f069-433c-af01-5b6a08f78fa2

Steps to reproduce

  1. Click FAB
  2. Click type
  3. Select todo.txt
  4. See the suffix after the file name automatically changes to ".txt". That's right
  5. Click back
  6. Click FAB again
  7. See the error: the file type is "todo.txt", but the suffix is ".md"
  8. If click ok to create the file, you will create a md file instead of todo.txt file

Information

Android version: 8.0 Device: App Version: 2.11.1

Source

F-Droid

Format / File type

Not specific

Additional info / Log

-

XYIheng avatar Jan 04 '24 16:01 XYIheng

Yeah, the new file dialog needs some TLC. I have this a plan to make some improvements here.

  • Better sync between ft and extension
  • Remember template per ft

harshad1 avatar Jan 04 '24 17:01 harshad1