Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileManager: New file, file type not consistent with suffix #2199

Closed
4 tasks done
XYIheng opened this issue Jan 4, 2024 · 1 comment · Fixed by #2277
Closed
4 tasks done

FileManager: New file, file type not consistent with suffix #2199

XYIheng opened this issue Jan 4, 2024 · 1 comment · Fixed by #2277
Assignees
Milestone

Comments

@XYIheng
Copy link

XYIheng commented Jan 4, 2024

⚠️ This issue respects the following points: ⚠️

  • This is a bug. Not a question or feature request.
  • The topic is not already reported at Issues. (I've searched it).
  • Markor is up to date. See Releases for the latest version. Updates are available from F-Droid and GitHub.
  • 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

bug_file_type.mp4

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

-
@harshad1
Copy link
Collaborator

harshad1 commented Jan 4, 2024

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

@gsantner gsantner changed the title Bug: Create new file, the file type is not consistent with the suffix FileManager: New file, file type not consistent with suffix Mar 27, 2024
@gsantner gsantner linked a pull request May 12, 2024 that will close this issue
@gsantner gsantner added this to the Markor v2.13 milestone May 19, 2024
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 a pull request may close this issue.

3 participants