Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/phuix/PHUIXAutocomplete.js
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | _activate: function(code) { | ||||
case '\n': | case '\n': | ||||
case '\t': | case '\t': | ||||
case '(': // Might be "(@username, what do you think?)". | case '(': // Might be "(@username, what do you think?)". | ||||
case '-': // Might be an unnumbered list. | case '-': // Might be an unnumbered list. | ||||
case '.': // Might be a numbered list. | case '.': // Might be a numbered list. | ||||
case '|': // Might be a table cell. | case '|': // Might be a table cell. | ||||
case '>': // Might be a blockquote. | case '>': // Might be a blockquote. | ||||
case '!': // Might be a blockquote attribution line. | case '!': // Might be a blockquote attribution line. | ||||
case ':': // Might be a "NOTE:". | |||||
// We'll let these autocomplete. | // We'll let these autocomplete. | ||||
break; | break; | ||||
epriestley: Probably just get rid of this, or leave a more detailed note if you want? | |||||
default: | default: | ||||
Not Done Inline ActionsFWIW, this works fine since `NOTE: ' typically has a space after it. chad: FWIW, this works fine since `NOTE: ' typically has a space after it. | |||||
// We bail out on anything else, since the user is probably not | // We bail out on anything else, since the user is probably not | ||||
// typing a username or project tag. | // typing a username or project tag. | ||||
return; | return; | ||||
} | } | ||||
// Get all the text on the current line. If the line only contains | // Get all the text on the current line. If the line only contains | ||||
// whitespace, don't actiavte: the user is probably typing code or a | // whitespace, don't actiavte: the user is probably typing code or a | ||||
// numbered list. | // numbered list. | ||||
▲ Show 20 Lines • Show All 584 Lines • Show Last 20 Lines |
Probably just get rid of this, or leave a more detailed note if you want?