-
Notifications
You must be signed in to change notification settings - Fork 94
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
Text editor is always used as default editor for Markdown files no matter what other applications are installed #439
Comments
Another problem - I deactivated Text, and had still Markdown editor activated, but now the md-file is not opened but the download windows opens. |
Same problem here. The PicoCMS needs the yaml-header, but text destroys it. |
see mitigation for a solution wrt markdown editor. |
@jancborchardt Not sure what we should do here from a UX perspective. Should the markdown editor take precedence over the text app when installed? |
@juliushaertl As long as the markdown editor is even working (ie when the old text editor app is installed), it is possible to open a md file in the markdown editor via the context menu. While this is not perfect, it is something I could accept. In the long run, I would prefer a system, where you can select preferred apps for certain filetypes (maybe this exists already, I am certainly not using Nextcloud to its fullest potential right now). The real problem right now is, that the old TextEditor App was taken off the store and without it, the markdown editor does not work at all. |
It is necessary to change min-version to 17 in apps/files_texteditor/appinfo/info.xml |
So this doesn’t seem to be 1 big issue but several smaller ones which need to be treated separately and can be fixed separately too:
@rollanders @ufgum this of course is an issue which should ideally be fixed in the Text app. Could you open a separate issue about this? → #439 @noe-spi @E1k3 @inpos @lanxu @blvb what are the actual issues you encounter with Nextcloud Text as Markdown editor which could possibly be fixed? :) Could you open separate issues about those too? → https://github.com/nextcloud/text/issues/new
@E1k3 this is an issue that should be fixed in the Markdown app → https://github.com/icewind1991/files_markdown cc @icewind1991 That leaves the question to decide:
@juliushaertl Until these questions are resolved I’d prefer to keep the current state. But understand this is not set in stone – there’s just many small steps to take instead of one big fix. :) |
As far as I understand, the Markdown app was just an extension of the old TextEditor app maintained by the Nextcloud team. While I agree, that this is not a problem related to the new Text app (so not one to discuss here, but in the TextEditor repo nextcloud/files_texteditor#185), I wouldn't call it a bug/problem of the Markdown app either. The TextEditor app vanishing from the store should not have to be fixed by the extensions that were developed for it.
The only issue I have with the Text app, is that is cannot replace a raw + preview editor, but that is not something a WYSIWYG editor will ever do (or is supposed to do), so this doesn't qualify for "could possibly be fixed". The closest I could see for this would be an option to split the preview into a sidebar (but that would result pretty much in the old TextEditor). |
I would also like the ability to have a non-rich text editor. I understand that most people want rich text, and the collaborative features are cool. But sometimes, I just want to write notes to myself, and I already know markdown syntax, so I want to write in plain text so I don't have to take my hands off the keyboard. The rich text editor has some quirks - e.g. if I type the I loved the previous plain text editor + preview on the side option, and would really appreciate the ability to configure my running instance to have it as an option. |
... sorry to respond as late - it was not possible to me to react eralier.
==> Conclusio:
For me it is not clear whom to talk to. On the one hand I would like to use the MarkdownEditor further on but this would mean that both groups are talking to each other. |
one question to the round ( and thanks for your engagement - especially to @E1k3 who helped me with his work around ;-) : |
Even though the new Text app is a WYSIWYG editor, all of the formatting is done via markdown, so the Text app saves files as According to the README.md, this is done to enable other editors to edit your documents via markdown as a universal format. Especially on desktops where you want to edit the files in a native text editor instead of the web view, this makes a lot of sense. As far as I know, it's still possible to edit Personally, I would prefer a way to split the view of the new Text app into raw and preview panels. This way, this style of editing would remain possible and would be enriched by the new collaboration feature. |
@shankari wrote
I agree, that this is counter intuitive, but the Text app is really a markdown editor. It just renders the text differently. So when your This is really weird because, for example, you can only guess the current heading level by the font size. |
I know that they are still there, but it is jarring and unintutitive. I guess my real issue is that I don't like WSYWIG editors. I prefer to edit the raw text. I understand that I am in a minority, but given that I am running my own instance of nextcloud, I would really be able to configure it in a way that I prefer. |
@juliushaertl following up to my previous comment at #439 (comment) Does it make sense to add a "Plain text" toggle to the Text app?
|
I have also the problem, that I need to change the raw markdown text from time to time. An example is if I let some snippet generate from other sources (browser extension), I need to download the md file, modify using local editor and then reupload. Here a remote raw editing feature would be very helpful. |
Yes, that is a separate issue.
We are currently preparing an appstore release of the old text editor so it will work again once that is done nextcloud/files_texteditor#192
Yes, would make sense I guess to use the markdown editor by default if enabled as this is a conscious decision by the admin. But I need to have a look how the current file actions decide on the precedence.
It would make sense, however I expect the implementation to become quite complex as due to the way collaborative editing works, we cannot have different users open the file in different modes (plain/rich) at the same time. Let's say userA opens the file in rich editing mode and then userB opens it in plain editing mode, we need to make sure to end the session of userA and switch it to a plain editing session. Or maybe show a message to userB that this is not possible if multiple users are joined a document. (see #123 (comment))
This is already the case. |
@juliushaertl if we already open html and css files in plain text, it seems a lot of the issues of people here would be fixed simply by adding more filetypes to that list? Like .yml for example – or if that's done already then which else? |
Aparently css/html were missing in the list, since the viewer doesn't support wildcards. So #509 will add more mime types as a first step. |
Can you elaborate? It would be nice to fix this! |
No need any longer. The Plain text editor and Markdown editor now does what I want after their updates. |
The problem that I still have with the editor is that it adds carriage
returns to the end of text files that only have new lines. This in turn
causes problems down the line. I have tried changing the parameter in the
ace editor to respect line endings but so far I haven’t gotten that to work.
…On Fri, Apr 24, 2020 at 4:46 PM rollanders ***@***.***> wrote:
No need any longer. The Plain text editor and Markdown editor now does
what I want after their updates.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#439 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLDPSBUB5AAXQCUMRG67VTROH3BDANCNFSM4JSFUCUQ>
.
|
@nicolad and @rollanders could you confirm that you can add links in markdown syntax - I'd like to confirm this works before asking May First Movement Technology (where we use a shared NextCloud) to add the Plain Text Editor app to the instance. Thanks greatly! |
I dont understand exactly what you want to do. Here I did a public page with a link to an internal asset and a second link to an external site. I did the editing of the index.md file using the new plain-text editor. I can choose it from the three dots meny or by right clique on the index.md file.
Welcome | testpublic
|
|
| |
Welcome | testpublic
Pico is a stupidly simple, blazing fast, flat file CMS.
|
|
|
Is this what you want?
Tell me when you have checked it so I can remove it.
Roland
Den måndag 4 maj 2020 23:40:46 CEST, Benjamin Melançon <notifications@github.com> skrev:
@nicolad and @rollanders could you confirm that you can add links in markdown syntax - [links](https://example.com) - and then share a preview link to the document that has a formatted link?
I'd like to confirm this works before asking May First Movement Technology (where we use a shared NextCloud) to add the Plain Text Editor app to the instance. Thanks greatly!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I can confirm that links work: The first link is pointing to https://google.com as expected. The second one is somehow useless, since it references relatively, but Nextcloud paths are different: Either you use the webdav path ( Maybe someone has an idea how to easily e.g. use an url for an image? (But can also be ignored since this issue has nothing to do with that 😉) |
Sorry. You are right. The text-editor adds 25 to the % sign This seems to be a bug. |
Hey cool, thank you for telling me that there would be a way! 👍 Already saw you mentioning here But basically this is just a url-encode error. But I am not familiar on which side... |
I have not seen this before. It does not seem to be a plain-text issue. It does not matter if I use an external editor. I need to do some checking. |
Just want to inform you, that images work as intendend when using external URLs or relative paths 👍. Have not yet tried an absolute path (but most likely I will not use this because I then cannot use it cross-platform in browser, mobile and PC) |
wrt
I am not able to open When the Text app is enabled, I see a menu item for "Edit in plain text editor", but no menu item for "Edit in markdown editor". When the Text app is disabled, there are no menu items, and the file opens in the plain text editor. Are there specific instructions on how to open Versions:
Happy to upload logs if necessary. |
Answering my own question for people who find this bug in the future.
Note that this option does not appear in the action menu. you have to disable the Text app for the Markdown Editor to work. |
@juliushaertl After reading #323 (comment), I see that there are problems which plain-text editing would introduce. Assuming that this feature is unlikely to be introduced in the near future, it would be helpful if the readme linked to #323 (comment) under a FAQ section. This issue has 42 comments, so it's both important to many users and difficult to process in a passing glance. Also, I would consider renaming the app to Rich-Text. I didn't even know it supported markdown syntax until I tried. Changing the name will likely clarify the editor's usages and capabilities. I think just renaming the "display name" (or whatever the equivalent is for nextcloud) would be sufficient; URLs and IDs should stay the same. |
I am not sure what is the problem. I guess it is simply a need for a FAQ. I can create new txt-files by using Collabora (Document in the drop down)) or OnlyOffice (New document). In Collabora I need to change the default extension from odt to txt. txt-format is not present in the menu. In OnlyOffice I can choose to save the file in txt format. I can create new md-files by choosing New text document from the drop-down menu. If I clique on an md-file it opens in the Text app and I have the formatting menu. This editor mess up the md-files intended for cms_pico pages. I agree that the alternative in the drop-down menu could say New Rich text document for clarity. Maybe it wouls also be good to be able to use the Plain text editor from the drop down menue. |
I think there is still undesired behavior here. When using pico_cms, one writes .md files which include space-sensitive formatting. Currently, merely clicking on such an .md file will make the Text app open it by default, which not only opens the file for display but also modifies it, often destroying the markdown and URL formatting. This behavior breaks a basic expectation by computer users since the beginning of time: just opening a file with an editor will not modify (or even worse, break) it, especially not in a non-recoverable way. The problem seems to be that the .md ending is used by the Text app also for its own core functionality which requires some invasive automatic formatting. A possible solution would be to give the Text app its own extension -- something like .text.md that indicates that the file is managed by the Text app and therefore does not behave as a standard file with regards to reading/writing. And to open pure .md files with a plain editor always by default. |
I think it's ok that the Text app uses .md (markdown) files as long as it adheres to an accepted markdown definition and since markdown definitions are not exactly standardized (CommonMark is an attempt, but not universally adopted), different markdown editors frequently produce slightly different results. What is definitely not ok, is to change an existing file by just opening it. The app's only job is to conceal the existing markdown syntax and assist in formatting new content. At no point should it change the file without user interaction. So instead of changing the file extension, I would propose fixing the Text app (i.e. stop changing files without user interaction) and add an option to change default mimetype <-> app associations. |
Something has changed. It seems that I now can edit the pico md-file with the Text app without destroying the pico formatting. I am very impressed. Inserting pictures works OK. The formatting also. So the problem is solved as far as I can see. |
Interesting! Which NC version are you using? |
I did this on my production server which has NC19.0.8, Pico CMS 1.0.12, Text 3.0.1 |
I suggest you open a new issue regarding Text changing files without interaction. Side note: IMO having YAML inside markdown files is a questionable decision. Even more so when the markdown definition picocms refers to in their documentation does not permit comments (where YAML could be stored without breaking markdown syntax). |
When installing Nextcloud Markdown Editor (Link) and trying to open a xx.md or xx.mardown file the text editor opens.
To Reproduce
Expected behavior
Markdown Editor shall open
Client details:
Text app version:
1.1.1
Operating system:
Linux (Ubuntu 18.04) running as docker image
Web server:
Apache
Database:
MySQL
PHP version:
7.2
Nextcloud version: (see Nextcloud admin page)
17.0.1
The text was updated successfully, but these errors were encountered: