-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Web editor #3460
Comments
@unknwon I don't understand the mirror repositories should not allow edit item. Like Github, even a repo that you can't edit still has an edit icon and has you fork it if you can't edit. Or are you saying if someone mirrors my repo, currently I can edit their repo but shouldn't be able to? How to reproduce what you saw? |
@richmahn You simply can't push changes to a mirror repository in Gogs, this is by Gogs's definition. You can also fork but can't send pull request. |
This is results from my first test, was tested on Firefox, Chrome, Opera and Vivaldi. Fortunately, IE doesn't work on Linux :)
I will continue testing to see if I have more impressions. |
@unknwon You edited md files, text files or another language files? I tested here again with Chrome on both Linux and Windows
I will view here If I can provide a small video with this issue. |
@joubertredrat yes, all works, but indeed for code file |
@unknwon Ok, I will test here to see if I can reproduce this issue directly on CodeMirror |
Testing in firefox/linux/debian:
Continue testing... |
Line endings can be different which cause unnecessary diff. (please continue edit same comment, otherwise will be deleted) |
@unknwon for https://github.com/codemirror/CodeMirror/blob/master/keymap/sublime.js#L95 About indent, have one param on configuration called |
@joubertredrat I played a little with these configs on #3512 |
@andreynering does these configs take effect if no Aside from PR, I think we need to fix these configs in default settings as well? |
@richmahn have set some defaults (indentation size). My PR override these defaults if a @joubertredrat's issue of using |
Sorry guys, been away from doing any Gogs development, instead been working with AWS Lambda and API Gateway for a whole new system, so had no time, but do need to get back to Gogs in the changes I make for my organization. Anyway, I am not even sure where this Web Editing feature is at, changes people have wanted, and if anything is depending on me or if this is more or less out of my hands. If editing should work different than with Github (haven't tried to wrap my mind around @unknwon's response about forking and PRs to understand the differences if any), and my code doesn't handle this right, has anyone made changes? Let me know if anything is waiting on me. After writing the above, I realize now all the editor stuff had been pushed to master. Awesome! I guess recent talk about PRs are other changes to the editor. If there is anything I need to help with, let me know, @unknwon. |
@richmahn Thanks. I made some quick changes to merge the branch so people can start testing. But many detailed works are still going on. (listed in my original comment of this thread) |
@unknwon Ok, so this is still an open issue. I saw that the re-enable upload is there, and now saw that you commented out the link for uploading files. Did you make a comment elsewhere on what was wrong with how I did uploading files? It does use a new table in the database, so not sure if maybe I didn't hook that up right to auto-create the table? It's been a while since I worked on that piece so don't remember much. Let me know the issue there and how we can get uploading turned back on. Again, I'm in the dark about what was wrong with uploading, but I did this differently than attachment to issues since an uploaded file to an repo doesn't need to remain in the database, but does need to be stored there when a file is added to the page/uploaded through ajax it can be remembered until the whole form is submitted, similar to attachments, but gets deleted once the file is saved to the repo. Maybe saying all this is pointless, but thought I would discuss how this part works just to get feedback so this can more forward to being fixed. |
@richmahn no, just because I don't have enough time t quick review uploads. (we can chat on gitter.im to keep this thread clean) |
unable to create new files in subdirectories I created a test repo https://try.gogs.io/atomi/test/src/master/foo if you try to use 'new file' in a subdirectory you get the above errror. |
@atomi things should be good now! |
The feature set is now complete. |
@andreynering then you or me open issue about indentation? |
@joubertredrat You can open |
* Changed style of checklist in issuelist. * Adjusted padding for progressbar, updated index.css. * Fixed another wrong tab to spaces. Signed-off-by: modmew8 <modmew8@gmail.com>
Web editor for repository files are now in public beta in
master
branch and demo site (https://try.gogs.io), but not yet fully done.Todos/issues:
I'll maintain this list based on feedback in comments.
Besides, to keep this thread clean and focus on implementation, there are some rules of comment in this thread; violate to those rules will result in deletion of your comment without warning:
The text was updated successfully, but these errors were encountered: