Don't laugh but I like the admin editor ;o)

124 views
Skip to first unread message

Edward Shave

unread,
Oct 10, 2015, 8:06:32 AM10/10/15
to web2py-users
Only thing is I can't find much by way of instructions for it so if anyone can point me in the right direction.

I'm particularly interested in search and replace and any short-cut keys...

Also any nifty undocumented features you may know about.

best regards
Ed

Gary Cowell

unread,
Oct 10, 2015, 12:12:48 PM10/10/15
to web2py-users
I like it too. It makes it possible to work on sites with just a browser, like on a Chromebook. Which in fact, I do.

Anthony

unread,
Oct 10, 2015, 12:17:42 PM10/10/15
to web2py-users
It's CodeMirror. You can see how it is configured here and here.

Anthony

Edward Shave

unread,
Oct 10, 2015, 1:26:59 PM10/10/15
to web...@googlegroups.com
Following Anthony's links I quickly came across this file...

\applications\admin\views\default\editor_shortcuts.html"

which contais the following...

<div>
   
<h4>{{=T("Keyboard shortcuts")}}</h4>
   
<ul class="keybindings unstyled">
   
<li></li>
        {{=shortcut('Ctrl+S', T('Save via Ajax'))}}
        {{=shortcut('Ctrl+F11', T('Toggle Fullscreen'))}}
 {{=shortcut('Shift+Esc', T('Exit Fullscreen'))}}
        {{=shortcut('Ctrl-F / Cmd-F', T('Start searching'))}}
        {{=shortcut('Ctrl-G / Cmd-G', T('Find Next'))}}
        {{=shortcut('Shift-Ctrl-G / Shift-Cmd-G', T('Find Previous'))}}
        {{=shortcut('Shift-Ctrl-F / Cmd-Option-F', T('Replace'))}}
        {{=shortcut('Shift-Ctrl-R / Shift-Cmd-Option-F', T('Replace All'))}}
        {{=shortcut('Ctrl-/ ', T('Toggle comment'))}}
        {{=shortcut('Tab', T('Expand Abbreviation (html files only)'))}}
        {{=shortcut('Ctrl-Space', T('Autocomplete Python Code'))}}
   
</ul>
</div>

Don't know if they work?  Off to try them now...  :o)

Edward Shave

unread,
Oct 10, 2015, 1:41:24 PM10/10/15
to web2py-users
Seems search and replace doesn't work..!  How disappointing. 

Anthony

unread,
Oct 11, 2015, 11:36:59 AM10/11/15
to web2py-users

<div>
   
<h4>{{=T("Keyboard shortcuts")}}</h4>
   
<ul class="keybindings unstyled">
   
<li></li>
        {{=shortcut('Ctrl+S', T('Save via Ajax'))}}
        {{=shortcut('Ctrl+F11', T('Toggle Fullscreen'))}}
 {{=shortcut('Shift+Esc', T('Exit Fullscreen'))}}
        {{=shortcut('Ctrl-F / Cmd-F', T('Start searching'))}}
        {{=shortcut('Ctrl-G / Cmd-G', T('Find Next'))}}
        {{=shortcut('Shift-Ctrl-G / Shift-Cmd-G', T('Find Previous'))}}
        {{=shortcut('Shift-Ctrl-F / Cmd-Option-F', T('Replace'))}}
        {{=shortcut('Shift-Ctrl-R / Shift-Cmd-Option-F', T('Replace All'))}}
        {{=shortcut('Ctrl-/ ', T('Toggle comment'))}}
        {{=shortcut('Tab', T('Expand Abbreviation (html files only)'))}}
        {{=shortcut('Ctrl-Space', T('Autocomplete Python Code'))}}
   
</ul>
</div>


You shouldn't have to look in the source code for these -- they are shown right on the page beneath the editor itself. Are you not seeing them?

Anthony

Anthony

unread,
Oct 11, 2015, 11:37:48 AM10/11/15
to web2py-users
Which version of web2py, platform, and browser? Find and replace works for me.

Edward Shave

unread,
Oct 11, 2015, 1:24:41 PM10/11/15
to web...@googlegroups.com
How embarrassing..!  I didn't see them until I read your post.

Funny thing is I spent time looking for them and still didn't see them.
That dark area at the bottom blends in with my windows 10 taskbar 
and that together with my eyes being 68 years old are my only excuses.

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/lBGXfPZ6n7A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Edward Shave

unread,
Oct 11, 2015, 1:32:04 PM10/11/15
to web...@googlegroups.com

Version

2.12.3-stable+timestamp.2015.08.19.00.18.03
(Running on Rocket 1.2.6, Python 2.7.9)

web2py is up to date


After failing to see the bottom editor menu,

I'm reluctant to say this, but...

I don't see anything when I press Shift-Ctrl-F


--

Edward Shave

unread,
Oct 13, 2015, 5:10:48 AM10/13/15
to web2py-users
Ok, I don't know why it took so long but just in case anyone else out there is as thick as me...

Make sure the editor has the focus before using the find and replace feature, otherwise your key presses will be directed to the browser  DOH..!

Dave S

unread,
Oct 13, 2015, 1:52:56 PM10/13/15
to web2py-users


On Tuesday, October 13, 2015 at 2:10:48 AM UTC-7, Edward Shave wrote:
Ok, I don't know why it took so long but just in case anyone else out there is as thick as me...

Make sure the editor has the focus before using the find and replace feature, otherwise your key presses will be directed to the browser  DOH..!

Useful feedback, thanks.

/dps
 
Reply all
Reply to author
Forward
0 new messages