codemirror update + build
This commit is contained in:
parent
31e09f9e4a
commit
e1b12b5dc6
|
@ -57,23 +57,23 @@ Currently the following languages are supported:
|
|||
|
||||
```
|
||||
xrsh # screen –DR # list of detached screen
|
||||
xrsh # screen –r PID # attach detached screen session
|
||||
xrsh # screen –dmS Myses # start a detached screen session
|
||||
xrsh # screen –r MySes #attach screen session with name MySession
|
||||
xrsh # screen –r PID # attach detached screen session
|
||||
xrsh # screen –dmS Myses # start a detached screen session
|
||||
xrsh # screen –r MySes #attach screen session with name MySession
|
||||
```
|
||||
|
||||
## Basics
|
||||
|
||||
```
|
||||
ctrl a c -> create new window
|
||||
ctrl a A -> set window name
|
||||
ctrl a w -> show all window
|
||||
ctrl a 1|2|3|… -> switch to window n
|
||||
ctrl a " -> choose window
|
||||
ctrl a ctrl a -> switch between window
|
||||
ctrl a d -> detach window
|
||||
ctrl a A -> set window name
|
||||
ctrl a w -> show all window
|
||||
ctrl a 1|2|3|… -> switch to window n
|
||||
ctrl a " -> choose window
|
||||
ctrl a ctrl a -> switch between window
|
||||
ctrl a d -> detach window
|
||||
ctrl a ? -> help
|
||||
ctrl a [ -> start copy, move cursor to the copy location, press ENTER, select the chars, press ENTER to copy the selected characters to the buffer
|
||||
ctrl a [ -> start copy, move cursor to the copy location, press ENTER, select the chars, press ENTER to copy the selected characters to the buffer
|
||||
ctrl a ] -> paste from buffer
|
||||
```
|
||||
|
||||
|
@ -82,10 +82,10 @@ ctrl a ] -> paste from buffer
|
|||
```
|
||||
ctrl a S -> create split screen
|
||||
ctrl a TAB -> switch between split screens
|
||||
ctrl a Q -> Kill all regions but the current one.
|
||||
ctrl a X -> remove active window from split screen
|
||||
ctrl a O -> logout active window (disable output)
|
||||
ctrl a I -> login active window (enable output)
|
||||
ctrl a Q -> Kill all regions but the current one.
|
||||
ctrl a X -> remove active window from split screen
|
||||
ctrl a O -> logout active window (disable output)
|
||||
ctrl a I -> login active window (enable output)
|
||||
```
|
||||
|
||||
# Importing files
|
||||
|
|
|
@ -63,7 +63,7 @@ AFRAME.registerComponent('codemirror', {
|
|||
},
|
||||
|
||||
createEditor: function(value){
|
||||
this.el.setAttribute("window", `title: codemirror; uid: ${this.el.dom.id}; attach: #overlay; dom: #${this.el.dom.id}; width: ${this.data.width}px; height: ${this.data.height}px`)
|
||||
this.el.setAttribute("window", `title: codemirror; uid: ${this.el.dom.id}; attach: #overlay; dom: #${this.el.dom.id}; width: ${this.data.width}px; height: ${this.data.height}px; class: no-full, no-resize`)
|
||||
this.editor = CodeMirror( this.el.dom, {
|
||||
value,
|
||||
mode: this.data.file.match(/\.js$/) ? "text/javascript" :
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue