Shane Kilkelly
76697599ae
Use the _ide version of browserIsSafari
2016-04-11 14:45:26 +01:00
Shane Kilkelly
8d6003dcc5
Add commentary
2016-04-11 09:58:37 +01:00
Shane Kilkelly
4fd4a0372c
In Safari, limit iterations of the command-parsing loop.
2016-04-11 09:55:53 +01:00
Shane Kilkelly
059d3432c2
Allow citations like -parencite[page 6]{
to work.
2016-03-30 11:28:56 +01:00
Shane Kilkelly
11d77df898
Fix weird tab behaviour
2016-03-17 16:18:46 +00:00
Shane Kilkelly
020fd2e88d
De-dupe autocomplete entries
2016-03-17 15:58:57 +00:00
Shane Kilkelly
53b46e42cd
Refactor, take indentation into account.
2016-03-17 15:27:20 +00:00
Shane Kilkelly
229ced6f2f
Remove Indentation.
2016-03-17 14:43:34 +00:00
Shane Kilkelly
95a6e1900e
Add autocomplete entries for the end{}
commands
2016-03-17 14:09:45 +00:00
Shane Kilkelly
d655e99439
Parse existing begin
commands too.
2016-03-17 12:07:21 +00:00
Shane Kilkelly
eebd25351d
Add the custom environments to the list of snippets
2016-03-17 11:23:53 +00:00
Shane Kilkelly
c25c2b676a
Parse \newenvironment{}
commands.
2016-03-17 11:14:05 +00:00
Shane Kilkelly
115734f82e
Rename Snippets -> SnippetManager
2016-03-17 10:04:14 +00:00
Shane Kilkelly
7cc3f7613e
Move the getCompletions
call for Snippets into the Snippets module.
2016-03-17 10:00:07 +00:00
Shane Kilkelly
2985a0b0b2
Account for later commands on the same line.
2016-03-16 11:42:30 +00:00
Shane Kilkelly
cff00c09b0
Add a '}' at the end of citation autocomplete if required.
2016-03-15 16:02:48 +00:00
Brian Gough
d89e855314
add client-side spelling cache to reduce load on server
2016-03-03 16:00:10 +00:00
Shane Kilkelly
b005f8233e
guard against null and undefined keys in \cite{}
autocomplete
2016-02-29 15:52:02 +00:00
Shane Kilkelly
2d954baa62
match cite commands like footcite
too.
2016-02-22 12:04:15 +00:00
James Allen
835b43cab2
Don't remove replace command so Ctrl+H is an option in Vim mode
2016-02-05 11:15:00 +00:00
James Allen
5cfd4e0d1f
Fix toggle comment hotkey for European keyboards
2016-02-04 15:42:54 +00:00
Shane Kilkelly
9880df496f
Display ellipsis instead of previous args if they are too long.
2016-02-04 10:49:01 +00:00
Shane Kilkelly
90fd6eb8a1
Autocomplete with many parameters to cite
.
2016-02-03 16:46:34 +00:00
Shane Kilkelly
7ef96be7dc
Handle cite commands like citep
and citet
, etc.
2016-02-03 15:08:52 +00:00
Shane Kilkelly
d0835fd2ba
Fully enable references autocomplete.
2016-02-03 11:08:51 +00:00
Shane Kilkelly
6866d45c3c
Delete dead code
2016-01-26 16:39:47 +00:00
Shane Kilkelly
6e3dba52e5
Set up feature flag for references autocomplete.
2016-01-26 16:35:58 +00:00
Shane Kilkelly
58edb87c61
Dumbest bug ever. Fix latex autocomplete.
2016-01-19 12:58:18 +00:00
Shane Kilkelly
dbbc3bbbbb
Fetch the keys when autocomplete is triggered on a cite element.
2016-01-18 10:29:13 +00:00
Shane Kilkelly
6244d013af
Null check before regex match
2016-01-14 10:18:12 +00:00
Shane Kilkelly
d5edea77db
Put the references autocomplete feature behind a feature flag for now.
2016-01-13 14:42:35 +00:00
Shane Kilkelly
3bd52f4aaf
Better matching against keys.
...
Allows for successive matching as you type.
2015-12-30 11:27:58 +00:00
Shane Kilkelly
7aa8f3a5da
autocomplete the cite{key part.
2015-12-30 11:11:30 +00:00
Shane Kilkelly
b0f3d9e6f4
load the keys if the command is a 'cite'
2015-12-29 15:48:42 +00:00
Shane Kilkelly
e94863d026
Get reference keys when project loads.
2015-12-29 13:30:57 +00:00
Shane Kilkelly
a48abcab0b
load references keys for autocomplete.
2015-12-29 11:02:59 +00:00
Henry Oswald
e801f288f2
add tabs to snippets
2015-12-12 11:53:33 +00:00
James Allen
1c9f9274a9
Remove uneeded and now wrong Sentry error capturing
2015-09-08 11:48:39 +01:00
James Allen
25b9a9be19
Upgrade Ace to 'package 11.07.15'
...
This required a refactor of all code that listen to events changes since the API
has changed. See https://github.com/ajaxorg/ace/pull/1745 for more details.
2015-09-07 17:04:05 +01:00
Brian Gough
92836f49fc
avoid unnecessary spell checks on session change
2015-05-11 10:07:11 +01:00
Brian Gough
2ed934120c
Fix display of annotations when switching files in ace editor
...
The annotations (error markers) were not preserved when switching
between files. The setAnnotations method was being called before the
document is ready -- when the document is attached to ace the content
is deleted and reinserted, which caused the annotations to be removed.
To fix the problem we set the annotations after attaching.
2015-04-08 14:39:39 +01:00
Mick O'Brien
9f037384b6
Update word regex for spellcheck
...
Adds Latin Extended-A characters to word regex to prevent splitting words half way through on characters like ąęćółżźńś.
2015-03-23 16:14:38 +00:00
James Allen
f037c466cd
Quieten noisy Ace warnings
2015-02-12 12:17:21 +00:00
James Allen
7dd1ab84d5
Wrap calls to localStorage in an exception handler
2015-02-12 11:32:27 +00:00
Brian Gough
5050c8c023
optimise common case for highlights (triggered on mousemove)
2015-01-26 15:14:55 +00:00
Brian Gough
5244fddce2
optimise common case for closing context menu (triggered on scroll)
2015-01-26 15:04:30 +00:00
James Allen
10653c12fd
Send more data to Sentry to track down error
2015-01-07 13:16:38 +00:00
James Allen
dbd7b95823
Close spell check menu on scroll so it doesn't appear in the wrong position
2014-11-28 13:27:25 +00:00
Henry Oswald
a2f99bc04f
prevent spell check from running twice on doc load
2014-11-04 14:20:59 +00:00
Henry Oswald
14d32af6bf
allow ace to scoll off screen
2014-10-30 08:33:54 +00:00