gsantner / gsantner/markor

"prefer view" toggle doesn't work if I open a text file from external program (Samsung file explorer)

Open
#2,553 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.1k
Forks
537
Avg merge
1d 18h
Merged PRs (30d)
4

Description

### ⚠️ This issue respects the following points: ⚠️

- [x] This is a **bug**. Not a [question or feature request](https://github.com/gsantner/markor/issues/new/choose).
- [x] The topic is **not** already reported at [Issues](https://github.com/gsantner/markor/issues?q=#js-issues-search). _(I've searched it)_.
- [x] Markor **is** up to date. See [Releases](https://github.com/gsantner/markor/tags) for the latest version. Updates are available from [F-Droid](https://f-droid.org/en/packages/net.gsantner.markor/) and GitHub.
- [x] The bug is still present in the latest development version (git master). (Please [download](https://nightly.link/gsantner/markor/workflows/build-android-project/master) 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

If I check the "prefer view" toggle in "view mode" to open a text file in view mode instead of edit mode it doesn't work if I open a text file from the Samsung file explorer with the option to open a text file always with markor, but it works if I open the text file from the markor "files" tab.

### Steps to reproduce

1. Check the prefer view check box
2. Close the markor app
3. Open a text file from the Samsung file manager with the markor choice to open every text files

### Information

Android version: 12
Device: Samsung Galaxy note10
App Version: 2.14.1 (158)

### Source

F-Droid

### Format / File type

Plaintext

### Additional info / Log

```shell
-
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue by opening a plaintext file from Samsung's file explorer and compare it with opening the same file from Markor's Files tab. Trace the external file-opening path and the prefer-view setting; done means external launches honor prefer view after the app has been closed.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.