-
Notifications
You must be signed in to change notification settings - Fork 95
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
Find another solution for editing the readme.md #1171
Comments
@dartcafe You could disable the readme.md feature completely... |
Ehm. OK. Any hint how to disable that? |
Thanks. This helps for my use case. But I think on the other hand, this - especially for group folders - usefull feature should get an overwork, following the principle of least surprise. |
I agree with @dartcafe in
Solution would be to lock the creation or to use hidden files or have a per-folder configuration (maybe too complex). Most simple solution:
--> As long as the area is auto-editing, this is problematic. ==> maybe a global setting: "Do not auto-edit Workspaces description" could solve this? |
@dacoex I think the most elegant and easy to use solution would be adding a button like 'Edit description' or something like that, somewhere at the top. That would open the editor at the top and if the user click on a 'Save' button, it would automatically create a readme.md, remove the 'Save, Cancel' buttons and done. |
Maybe, this can be done similar to deck >= 1.0, where there is this kind of toggle-button for the description of cards |
I'd like to add that it should only be created if there's actually something to save. Empty |
Is there any progress with this? I can still randomly create sneaky readme.md files by not paying my undivided, concentrated attention to where I click. To my dismay, the old readme.md app isn't working on NC19+ either. What a shame. |
Technically we won't be able to show an editing area without having the file created, since the text app requires a file id to be able to instantiate an editor. I agree with the first post that we should of course not expand the empty area if there is no text. On the matter of empty Readme.md files I have currently no good idea how that could be solved. cc @jancborchardt |
Moving to the text app repo, since that is where the rich workspaces reside 😉 |
My thoughts about this:
The handling of readme.md is not very common for 'normal' users. |
I just created a Pull Request, which deletes the Readme.md file if its content should be set to an empty value and recreates a file if it does not exist, yet. Warning: This Pull Request is not proven to work. It is a first try to help out on that problem. I knowing anything specific about Nextcloud development nor the Text app. Does #1175 help to handle this problem? |
Agree with @azul’s proposals, small additions:
|
Again, the feedback, I recieve is the total opposite: I have 6 of 9 users complaining exactly about that on a regular basis, although they learned this behavior. That mostly seems to happen, if the browser is partly visible and overlapped by another application and a user clicks to the "empty" space to move the browser to the front. Actually this behavior is not expected by users. Edit: And what's more important, there should be no empty readme.md, if someone clicks there. |
As much as I like NC and appreciate the hard work of the developers and support team involved, as an end user, I would simply expect an edit sign/icon, like a pencil to actually edit something, like in any other web based application in existence. Allowing users to actually create files and thus taking up resources (even if not that much), annoying them with even more empty space and unavoidable objects on top of the file list, based on random clicks on the existing empty space of a web page is simply nuts. It doesn't even take basic web ergonomics to consideration. |
TL;DRTo disable readme creation, remove the
HowThe bound click event to create an empty Readme.md is the <div v-if="showEmptyWorkspace" class="empty-workspace" @click="createNew"> which is then transpiled as [t.showEmptyWorkspace?n("div",{staticClass:"empty-workspace",on:{click:t.createNew}} automation scriptuse # cd 'apps/text/js'
if cat text-files.js | grep -q '{staticClass:"empty-workspace",on:{click:t.createNew}}'; then
echo 'disable Readme.md auto creation'
sed -i -r 's/\{staticClass:"empty-workspace",on:\{click:t\.createNew\}\}/{staticClass:"empty-workspace"}/' text-files.js
else
echo '@click:"createNew" event NOT found, check nextcloud/text#1171'
fi see also: #586 |
LouisSung's workaround #1171 (comment) does not work for me in NC27 and NC28. |
We won't support any hotpatched javascript asset guides, they are likely to break any time, but these days you can just disable the rich workspace with a config flag https://github.com/nextcloud/text?tab=readme-ov-file#configuration |
The current inplementation and display of the readme.md inside a folder has some confusing side effects.
Steps to reproduce
What happened
Expected behaviour
Some users got confused and complained about of the empty space and the fact, that an unknown and unwanted file appears in their folders.
Possible solution could be, to add a button for explicit adding/editing readme.md.
The text was updated successfully, but these errors were encountered: