mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-12 11:44:47 +00:00
modify dropdown to trigger on command completion if possible
This commit is contained in:
parent
55112dc7dc
commit
b8787e6e68
1 changed files with 7 additions and 0 deletions
|
@ -192,6 +192,13 @@ define [
|
|||
setTimeout () =>
|
||||
@editor.execCommand("startAutocomplete")
|
||||
, 0
|
||||
if (
|
||||
change.action == "insert" and
|
||||
change.lines[0] in ["\\begin{}", "\\ref{}", "\\usepackage{}", "\\cite{}"]
|
||||
)
|
||||
setTimeout () =>
|
||||
@editor.execCommand("startAutocomplete")
|
||||
, 0
|
||||
|
||||
monkeyPatchAutocomplete: () ->
|
||||
Autocomplete = ace.require("ace/autocomplete").Autocomplete
|
||||
|
|
Loading…
Add table
Reference in a new issue