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
77333c923b
Merge branch 'master' into sk-references-ac
2016-01-04 09:37:10 +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
Brian Gough
1b70e08f82
reinstate the chaosmonkey
2015-12-18 09:55:24 +00:00
Shane Kilkelly
1ea13a74dd
Refresh the references when the bib file is closed.
2015-12-17 15:13:02 +00:00
Henry Oswald
e801f288f2
add tabs to snippets
2015-12-12 11:53:33 +00:00
Henry Oswald
88799fc881
add help link when user needs to refresh page
2015-12-04 08:43:55 +00:00
James Allen
dea97bb9dc
Fix bad connection debugging parameters
2015-11-19 13:15:51 +00:00
James Allen
442ae638de
Revert "Report unsaved changes after 60 seconds"
...
This reverts commit 44a7e598f2fdbd91d18cc340de477ca3d33a1338.
2015-11-19 12:04:35 +00:00
James Allen
99bca31766
Error and hard refresh document after 30 seconds unsaved changes
2015-11-19 12:04:12 +00:00
James Allen
bf452bf306
Keep the connection.id up to date with socket.io client id
...
The meta.source of an update is populated on the server side so
we need to keep our local connection id up to date with it. When a duplicate
op is submitted we must send all possible client ids that it could have
been sent with.
2015-11-19 12:04:12 +00:00
James Allen
cde5144c42
Retry updates that have not been acknowledged.
...
If we do not get a reply from the server acknowledging our update after 5 seconds,
send it again. If it never got to the server, this is like normal. If the update
got to the server, but we never received the ack then we need to rely on ShareJs's
duplicate handling. We set the dupIfSource parameter on any retried updates which
let ShareJs know that it's a dup if we already have an op with this version number
and client id. The doc-updater and real-time services need changes to correctly
send another ack only to the submitting client in the case of a duplicate update.
2015-11-19 12:04:12 +00:00
James Allen
2476c1e868
Report unsaved changes after 60 seconds
2015-11-18 15:23:23 +00:00
James Allen
a153c6682a
Put in client side check for document getting too long
2015-11-06 12:51:43 +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
James Allen
87d625b5e0
Delay flushes performed after getting an op acknowledgement as well
2015-04-17 17:32:23 +01:00
James Allen
8a32ca1b64
Reduce buffer delay to 1 second
2015-04-17 16:45:17 +01:00
James Allen
af85c83877
Buffer updates when only a single user is editing a document
...
Add in 5 second delay between flushing updates when only a single user
is editing a document. As soon as an update is received from another user
we switch to sending updates immediately again so there is no latency
between collaborators. The logic applies to individual docs, so two users
can be editing different docs and will still buffer updates since they
will not affect each other.
2015-04-17 11:24:28 +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
Brian Gough
6320fcccec
remove underscore from pollSavingStatus
...
the underscore module is not loading in time for some users on MacOS
2015-03-19 14:22:22 +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
James Allen
753a80ada5
Navigate away from deleted docs. Closes #141
2015-02-03 13:51:56 +00:00
Brian Gough
994b307e3f
added comment for background polling change
2015-01-26 16:06:50 +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
Brian Gough
0453c657da
prevent $scope.$apply from firing on every unsaved files check
...
only trigger a digest when there is a change in the saved state
2015-01-22 17:00:56 +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
James Allen
2a69e185ce
Append spell check menu to body so it isn't hidden by PDF view resizer
2014-10-27 14:51:28 +00:00
James Allen
9f1a7c7396
Send source of update to doc updater and allow external updates to be ignored in UI
2014-10-16 11:27:10 +01:00
Mick O'Brien
834e27f3c5
Fix indentation in italics shortcut
2014-10-08 16:34:44 +01:00
Mick O'Brien
b7db72e574
Replace $isEmpty check
2014-10-08 16:17:38 +01:00
Mick O'Brien
72fc630e81
Added keyboard shortcuts to bold and italicise text
2014-10-08 15:44:01 +01:00
James Allen
7e24972b46
Fix off by one error in track changes highlights
2014-08-08 14:01:30 +01:00
James Allen
9f26214142
Fix double context menu in FF
2014-07-28 17:11:15 +01:00
James Allen
9db2fc93a4
Add spell check underline to front marker layer
2014-07-28 16:28:01 +01:00
James Allen
3a3933dfe9
Don't immediately close context menu in Firefox
2014-07-28 16:23:46 +01:00
James Allen
bb55d8f406
Reset undo state when switching documents
2014-07-25 21:10:50 +01:00
James Allen
d3fd161c25
Clear annotations
2014-07-25 16:54:49 +01:00
James Allen
4809c5ceee
Track events that were done in analytics manager
2014-07-24 16:51:04 +01:00
James Allen
fb98509789
Report client side errors to server
2014-07-24 16:07:43 +01:00
James Allen
1d6314a2c1
add Ctrl-Enter hotkey
2014-07-21 15:39:15 +01:00
James Allen
088d27f22b
Make sure gotoLine works when changing session
2014-07-21 11:50:02 +01:00
James Allen
b785ab4d15
Fix broken project list page
2014-07-18 12:18:05 +01:00
James Allen
462403bb4f
Finger print Ace files
2014-07-18 12:08:56 +01:00
James Allen
596ad4cf1c
Null check
2014-07-16 17:32:04 +01:00
James Allen
8f08823d34
Sort out fingerprints and pdf.js worker path
2014-07-16 11:28:52 +01:00
James Allen
eb818be2df
Use Ace in no-conflict mode
2014-07-16 11:07:18 +01:00
James Allen
76415ae02b
Show labels for tracked changes above and below
2014-07-11 16:17:59 +01:00
James Allen
39e4f46bdb
Style search and replace box
2014-07-10 17:27:19 +01:00
James Allen
e102e65325
Set autocomplete menu to editor font size
2014-07-10 15:52:36 +01:00
James Allen
aaebb0902d
Fix synctex controls with new Ace
2014-07-10 14:36:04 +01:00
James Allen
9e4653d83c
Try to clean up to avoid memory leaks
2014-07-09 20:49:10 +01:00
James Allen
f2b8a5971f
Don't do a scope.apply on every change
2014-07-09 20:32:03 +01:00
James Allen
16e382bef2
Update Ace and fix autocomplete
2014-07-09 17:59:04 +01:00
James Allen
c93902345a
Remove all console.log debug statements
2014-07-09 16:18:09 +01:00
James Allen
51d0026b74
More performance tweaks
2014-07-09 16:07:42 +01:00
James Allen
b0f43eab19
Use events for updating cursor = big performance gain
2014-07-09 15:38:38 +01:00
James Allen
8067432e09
Fix include paths
2014-07-08 13:29:09 +01:00
James Allen
8ed03694c3
Add missing files
2014-07-08 12:02:26 +01:00