Skip to content

Version 2.0 - #78

Merged
jancborchardt merged 38 commits into
masterfrom
2.0
Sep 2, 2015
Merged

jancborchardt merged 38 commits into
masterfrom
2.0

Conversation

@tomneedham

Copy link
Copy Markdown
Contributor

Rewrite of the editors js file, as started at the Nürnberg hack week. The main differences are that the code is rewritten inside the OCA.Files_Texteditor namespace. Functionality is very similar, with the exception of autosave. More complete changelog below:

  • Works in different file views
  • Now a popup, not some hack on the files UI (fullscreen for narrow/mobile UI)
  • Autosave
  • Loading feedback
  • Responsive (optimised for mobile usage)
  • Search removed in favour of native search functions (mobile and desktop build in browser features)

Bugs:

  • Cursor moves past end of the visible window

Screenshot of the current state:
screen shot 2015-08-28 at 15 43 41
screen shot 2015-08-28 at 15 43 28

@tomneedham

Copy link
Copy Markdown
Contributor Author

@jancborchardt

Comment thread js/editor.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💣 💣 💣 💣 💣

file.name is not escaped

💣 💣 💣 💣 💣

@DeepDiver1975 DeepDiver1975 added this to the 8.2-next milestone Jun 5, 2015
@DeepDiver1975

Copy link
Copy Markdown
Contributor

@tomneedham needs rebase - THX

furthermore I'd like to ask you to do this in baby steps - a WIP-PR with more then 60k SLOC is never going to be reviewed properly

@tomneedham

Copy link
Copy Markdown
Contributor Author

Ah the 60k will be the ace version update. May well be easier to leave that out to make reviewing on github easier.

The reason I didn't do this in baby steps (until now) is that I completely rewrote the javascript using objects so the code is pretty hard to compare to previous versions. But yes, I should get this to at least the current state of features and get that in before adding more fluff!

@DeepDiver1975

Copy link
Copy Markdown
Contributor

Ah the 60k will be the ace version update.

This is basically this commit - right? a482717

Maybe update ace in it's own PR?

@tomneedham

Copy link
Copy Markdown
Contributor Author

Maybe update ace in it's own PR?

That's the plan

@jancborchardt

Copy link
Copy Markdown
Contributor

Great stuff here man! Looks nice with the overlay, and just showing the filename instead of the clunky full path. Good calls there! Will testdrive it too.

@jancborchardt

Copy link
Copy Markdown
Contributor

@tomneedham pushed some design fixes. One important thing which doesn’t work right now is that it should of course automatically save when you close the document! :)

@schiessle

Copy link
Copy Markdown
Contributor

pushed some design fixes. One important thing which doesn’t work right now is that it should of course automatically save when you close the document!

How can I close the document without saving then? I didn't tried it yet but on the screen shot I see a save button and a "X". My assumption would be that the X closes the window without saving.

@tomneedham

Copy link
Copy Markdown
Contributor Author

I imagined it would maintain the current functionaly:

  • Press 'X'
  • Editor closes, without saving
  • Offers notification with a chance to resume editing

@jancborchardt

Copy link
Copy Markdown
Contributor

Every last-generation editor asks you if you want to save, before you quit. The current-gen editors (like Sublime) just keep the saved changes inside the editor.

Closing the editor to get rid of all changes is a really bad outdated system. Autosave and the ability to undo (we have versions, folks) surpassed that in many apps. We should do so too.

@tomneedham

Copy link
Copy Markdown
Contributor Author

@jancborchardt Retest please.

@tomneedham

Copy link
Copy Markdown
Contributor Author

@MorrisJobke You too :)

@tomneedham

Copy link
Copy Markdown
Contributor Author

and @icewind1991

@tomneedham

Copy link
Copy Markdown
Contributor Author

@SergioBertolinSG

@icewind1991

Copy link
Copy Markdown
Contributor

👍

@tomneedham

Copy link
Copy Markdown
Contributor Author

@DeepDiver1975 also.

@MorrisJobke

Copy link
Copy Markdown
Contributor

Really awesome 👍 I fixed the icon stuff for IE8 and it even works there

@SergioBertolinSG

Copy link
Copy Markdown
Contributor

In safari the highlighted text when searching for a string is moved one character to the right.
Chrome and firefox are working well.
IE 8 doesn't work for me. It breaks the browser. (Using enterprise theme)

@jancborchardt

Copy link
Copy Markdown
Contributor

Let’s merge this before it gets too big. Any small issues we should do in follow-up pull requests. 👍 great work @tomneedham!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants