Page MenuHomePhabricator

Add additional CodeEditor toolbar buttons
Open, LowPublic


Just some ideas:

  • Enable soft wrapping of lines
  • Disable syntax checking/linting
  • Disable gutter/linenumbers
  • Select editor skin
  • Edit snippets

I think we should be conservative in adding options though. I'd appreciate to hear from people as to what they think is important

Version: master
Severity: enhancement

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:37 AM
bzimport added a project: CodeEditor.
bzimport set Reference to bz59924.
bzimport added a subscriber: Unknown Object (MLST).
  • tab and page guides
  • undo/redo
  • indent/unindent
  • search and replace


Created attachment 14975
Screenshot of CodeEditor toolbar


Screen_Shot_2014-03-29_at_19.53.16.png (368×644 px, 82 KB)

Created attachment 14976
Screenshot of disabled CodeEditor toolbar


Screen_Shot_2014-03-29_at_18.02.10.png (98×609 px, 23 KB)

Change 122085 had a related patch set uploaded by TheDJ:
CodeEditor: Add support for Editor themes

Created attachment 15027
Toolbar enabled v2


Screen_Shot_2014-04-05_at_12.33.52.png (423×711 px, 99 KB)

Created attachment 15028
Toolbar disabled v2


Screen_Shot_2014-04-05_at_12.34.03.png (406×670 px, 88 KB)

Change 125195 had a related patch set uploaded by TheDJ:
[WIP] Add option to show all keyboard shortcuts

TheDJ changed the task status from Open to Stalled.Mar 15 2015, 5:32 PM
TheDJ changed the status of subtask T61923: Add toolbar button to toggle invisible characters from Open to Stalled.

This is stalled on button design

Change 125195 had a related patch set uploaded (by Paladox):
[WIP] Add option to show all keyboard shortcuts

Surely live autocompletion should be there, no?

The "Auto indent" feature (context.codeEditor.autoIndent()) is another good candidate. It's pretty handy—especially when you're pasting code from somewhere else, especially if it's not properly indented or uses soft tabs—yet it's not even available through a key command.