I have integrated codemirror with zencoding. I have removed amy, editarea and ace from trunk but I will ship them separately as a zip. Reports so far indicates codemirror is much more portable than anything else.
Keep testing.... ;-) massimo On Monday, 10 September 2012 10:23:44 UTC-5, Andrew wrote: > > The vi keybindings are pretty limited. For example you can go to end of > file with shift-g but you can't specify a line to go to. yy works in the > codemirror example but not in web2py so I'm guessing that just needs some > tweaking. > > delete line and paste seems to work ok. > > cw seems to work fine. I haven't tested exhaustively because it's not > really critical for my use but it's a nice to have. I figure stuff like > this I can always tweak or help contribute to the upstream vim support in > codemirror if it really bothers me. > > On Monday, September 10, 2012 8:41:28 AM UTC-5, LightDot wrote: >> >> In regards to which editors to drop from the future releases, how about >> this: >> >> - next web2py release ships with all 4 included, CodeMirror is the default >> - everybody will try it, so any hidden bugs or incompatibilities should >> show quickly >> - after a while (before the next web2py release), community is asked if >> anyone uses anything else besides CodeMirror now. >> >> My guess is that most of the people don't change the default editor. >> Those who perhaps do will have a chance to make a case as to why web2py >> should keep one (or more) of the other editors. If no issues arise, I'd >> vote for keeping just CodeMirror. >> >> BTW, has anyone tested the emacs and vi key bindings with CodeMIrror? >> >> The main thing that still needs attention are breaks for the debugger. >> CodeMirror can display them besides the line numbers, but I'm not that >> familiar with the way current debugger works, so I didn't try to implement >> this yet. >> >> Regards, >> Ales >> >> >> On Sunday, September 9, 2012 8:52:34 PM UTC+2, Massimo Di Pierro wrote: >>> >>> If we move to codemirror (and we should) what do we get rid of >>> (editarea, amy, ace)? We cannot ship with 4 editors. >>> >>> On Sunday, 9 September 2012 13:48:44 UTC-5, Massimo Di Pierro wrote: >>>> >>>> Please, can you send them to me? >>>> >>>> On Sunday, 9 September 2012 11:32:53 UTC-5, LightDot wrote: >>>>> >>>>> I have added the following to web2py's CodeMirror implementation: >>>>> >>>>> - line highlight (line with the cursor is highlighted) >>>>> - autofocus (focus in the editor when page is opened) >>>>> - fullscreen toggle (F11 toggles editor to fill the entire window, ESC >>>>> or repeated F11 exits to default editor size). >>>>> >>>>> All this is basically taken from the existing CodeMirror demos and >>>>> from their docs. >>>>> >>>>> Is this something that could be useful to others? I know I'd miss all >>>>> three. >>>>> >>>>> Regards, >>>>> Ales >>>>> >>>>> >>>>> On Sunday, September 9, 2012 6:26:40 AM UTC+2, Massimo Di Pierro wrote: >>>>>> >>>>>> we are considering replacing the admin editor with codemirror since >>>>>> it should work with IE. >>>>>> >>>>>> Can you please help us try it? >>>>>> >>>>>> get web2py form github and edit admin/models/0.py and set the editor >>>>>> to 'codemirror'. >>>>>> >>>>>> let us know what browser you try and your findings. >>>>>> >>>>>> Massimo >>>>>> >>>>> --