summaryrefslogtreecommitdiff
path: root/public/js/lib/editor/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/lib/editor/index.js')
-rw-r--r--public/js/lib/editor/index.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/public/js/lib/editor/index.js b/public/js/lib/editor/index.js
index 2991998b..003b32b7 100644
--- a/public/js/lib/editor/index.js
+++ b/public/js/lib/editor/index.js
@@ -74,6 +74,8 @@ export default class Editor {
},
'Cmd-Left': 'goLineLeftSmart',
'Cmd-Right': 'goLineRight',
+ 'Home': 'goLineLeftSmart',
+ 'End': 'goLineRight',
'Ctrl-C': function (cm) {
if (!isMac && cm.getOption('keyMap').substr(0, 3) === 'vim') {
document.execCommand('copy')
@@ -169,13 +171,13 @@ export default class Editor {
this.statusLength.text('Length ' + docLength)
if (docLength > (config.docmaxlength * 0.95)) {
this.statusLength.css('color', 'red')
- this.statusLength.attr('title', 'Your almost reach note max length limit.')
+ this.statusLength.attr('title', 'You have almost reached the limit for this document.')
} else if (docLength > (config.docmaxlength * 0.8)) {
this.statusLength.css('color', 'orange')
- this.statusLength.attr('title', 'You nearly fill the note, consider to make more pieces.')
+ this.statusLength.attr('title', 'This document is nearly full, consider splitting it or creating a new one.')
} else {
this.statusLength.css('color', 'white')
- this.statusLength.attr('title', 'You could write up to ' + config.docmaxlength + ' characters in this note.')
+ this.statusLength.attr('title', 'You can write up to ' + config.docmaxlength + ' characters in this document.')
}
}