Commit Graph

63 Commits

Author SHA1 Message Date
Malik Glossop
9d58797a04 Merge pull request #31981 from overleaf/mg-context-mobile
[web] Add stricter mobile detection for context menu

GitOrigin-RevId: 9c9e75a14c1f9841b5125cb4fb4ef8c2f3b8a33f
2026-03-06 09:16:21 +00:00
Malik Glossop
87c7b23107 Merge pull request #32007 from overleaf/mg-context-ctrl-click
[web] Only allow ctrl+click context menu trigger for macos

GitOrigin-RevId: ca0476bd94e25e92e6fa86f5bcaf8a209212c1b9
2026-03-06 09:16:08 +00:00
Malik Glossop
a293474c0c Merge pull request #31035 from overleaf/mg-context-menu-analytics
Add analytics event for context menu, comment, track changes, and jump to location

GitOrigin-RevId: 8412cc3c8039cd1582ccee20b162b4bef4467dea
2026-03-06 09:14:26 +00:00
Malik Glossop
ae5e3543c5 Merge pull request #30596 from overleaf/mg-context-menu-hide-others
Hide other menus when right-click context menu opens

GitOrigin-RevId: c7a2126ec58ed69520f31ba20fa450a6f1524a3f
2026-01-20 09:06:37 +00:00
Alf Eaton
03a3518aae Merge pull request #30703 from overleaf/ae-prettier
Upgrade Prettier to v3.7.4

GitOrigin-RevId: 0f4434019bc7d12f2d5b7ecbb833ee20570d0706
2026-01-16 09:56:07 +00:00
Malik Glossop
a0fc14b367 Merge pull request #30495 from overleaf/mg-context-menu-paste
[web] Support paste with formatting in context menu

GitOrigin-RevId: 551ed1d49ca423395bd9bfc756e10e8d59d71ecd
2026-01-15 14:19:03 +00:00
Malik Glossop
f087d125c1 Merge pull request #30168 from overleaf/mg-context-menu
Add context menu (right click) to editor

GitOrigin-RevId: f2e567b51b04170ba1a46b0ab4659f3481b05bfe
2026-01-15 14:18:58 +00:00
Domagoj Kriskovic
4e2ea44b61 [web] add BibTeX visual editor module (#30726)
* [web] add BibTeX visual editor module

* Make the visual editor hook open to extension

Instead of looking specifically for the bibtex visual editor, allow any
extension to provide a visual editor.

* Fix stylelint error

---------

Co-authored-by: Eric Mc Sween <5454374+emcsween@users.noreply.github.com>
GitOrigin-RevId: c85c27a2b119c826e3d00cbd475a2a21f1508091
2026-01-15 09:05:13 +00:00
Alf Eaton
861b66b007 Revert "Cite an article by pasting the DOI (#29994)" (#30607)
This reverts commit a68af023b24fcf87bbc608395f2898df8e9b41a5.

GitOrigin-RevId: c0dd9ae3f6a0e12e6ba7d1e856327ea89eae8157
2026-01-09 09:07:14 +00:00
Alf Eaton
18b2621855 Cite an article by pasting the DOI (#29994)
GitOrigin-RevId: a68af023b24fcf87bbc608395f2898df8e9b41a5
2026-01-09 09:06:51 +00:00
Malik Glossop
4462472e33 Merge pull request #30027 from overleaf/mg-svg-figure-modal
Support svg files in figure modal

GitOrigin-RevId: 4f0e110dad3c06f5e5ac699e0bfcaf3cd6c784ff
2025-12-10 09:05:44 +00:00
Mathias Jakobsen
129a002055 Merge pull request #29074 from overleaf/mj-figure-modal-eps
[web] Allow eps files in figure modal

GitOrigin-RevId: 2678f1415d04b366a6e8a829a9e75e3ef1133685
2025-10-16 08:05:51 +00:00
David
584572bb40 Merge pull request #28760 from overleaf/dp-hackathon-knip
Add Knip and remove a bunch of unused code

GitOrigin-RevId: 42ab99fc65973c883d2361e0027e7181767e714e
2025-10-15 08:05:57 +00:00
Alf Eaton
7e74841a97 Ensure that invalid search regexp is correctly highlighted (#28724)
GitOrigin-RevId: f122e2ea649d8cbfa984ddad0b7424aa96bd015a
2025-10-07 08:06:40 +00:00
Alf Eaton
2c1baa717d Use tracked changes and comments from the snapshot (#26267)
GitOrigin-RevId: c2bf0c9c9a5ab4f8837b8712ca549119a31cf067
2025-09-05 08:05:56 +00:00
Mathias Jakobsen
d8f18f9667 Merge pull request #27099 from overleaf/mj-no-duplicate-themes
[web] Avoid creating duplicate CM6 themes

GitOrigin-RevId: f6132d6cdd94ef353e047ce229d89147acc89603
2025-08-05 08:05:14 +00:00
Alf Eaton
d3668bddec Clamp minimum valid doc position to 0 (#27461)
GitOrigin-RevId: d531e2b5351b41217ccc8385f8f317cce91a840b
2025-07-30 08:06:09 +00:00
Alf Eaton
9958ffdf68 Merge pull request #27123 from overleaf/ae-goto-scroll-select-text
Highlight double-clicked word when syncing position from PDF to code

GitOrigin-RevId: da120af9dec203346cb85c6aa7e403f4e585c748
2025-07-29 08:05:51 +00:00
Alf Eaton
2304e6d32b Upgrade Lezer dependencies (#21987)
GitOrigin-RevId: 5eb834bb1144c499ea29539750f1b73edeeff2f8
2024-11-21 09:04:03 +00:00
Alf Eaton
36acad4d1b Rename $SectioningCommand to $SectioningCtrlSeq or $Section (#21534)
GitOrigin-RevId: 5b3173d82ec4c00fe69e2ab059bf48a872a4ca3e
2024-11-18 09:04:51 +00:00
Domagoj Kriskovic
0329a18875 Show "add comment" tooltip below cursor if near viewport top (#21348)
* Scroll selection anchor into view when adding new comment

* check if cursor is near viewport edge

* Show "add comment" tooltip below cursor if near viewport top

GitOrigin-RevId: 0dc2234bc03b1d88a3719ba01a4a865f218b9bfa
2024-10-28 09:05:47 +00:00
Domagoj Kriskovic
db23262611 Scroll selection anchor into view when adding new comment (#21328)
* Scroll selection anchor into view when adding new comment

* check if cursor is near viewport edge

GitOrigin-RevId: 57d4195f7ce1513a56249365b45b3959b4ea813f
2024-10-28 09:05:29 +00:00
Alf Eaton
c0d6a9c5f0 Use noSpellCheckProp NodeProp to exclude node types from spell check (#21335)
GitOrigin-RevId: 91ba72285b0f01c3c00fdb1a64c30e9ff67f72f5
2024-10-28 09:05:16 +00:00
Alf Eaton
77ad90d59a Refactor to texOrPdfString function
GitOrigin-RevId: b084966a4fc13de4708973685844b2d9d2405e9b
2024-09-26 08:05:13 +00:00
Copybot
2a2bb3f064 Merge pull request #1245 from AnessZurba:tex-or-pdf
GitOrigin-RevId: 096f7e5bb581c3984db8dc74e7a4c525de862cce
2024-09-26 08:05:08 +00:00
David
9cf94e57d3 Include \def, \let, \newenvironment and \renewenvironment commands in the math preview (#20197)
* Include \def commands in command definitions

* Allow command name to be in CtrlSym

* Pull nodeIntersectsChange check out of branches

* Fix \def handling

* Add handling for \newenvironment and \renewenvironment

* Allow \def to have optional arguments

* :x
Revert "Add handling for \newenvironment and \renewenvironment"

This reverts commit a70d3a0a13ed552daf3b761893e3f8609f0b0fc8.

* Add let commands to defintions

* Add environment names to math preview

* Ignore let command definitions in autocomplete

* Move nodeIntersectsChange check back into each block

* Add childOfNodeWithType utility and use to get command names

* commandNameText -> commandName

* Only include environment definitions

* Rename documentEnvironmentNames to documentEnvironments

* EnvironmentName -> Environment

* Format

GitOrigin-RevId: 9c5d701423ae786e5ff91960b4bcd94cd35d21c8
2024-09-17 08:04:53 +00:00
David
f4c57fce4c Merge pull request #20246 from overleaf/dp-math-preview-closing-delimiter
Don't show math preview tooltip if the node has a parse error

GitOrigin-RevId: 330ebb945c70da4b5fe9ee4ee2f149a95435899b
2024-09-04 08:05:50 +00:00
Anass Zurba
d1f15b7216 outline: handle texorpdfstring command. 2024-08-28 22:24:40 +03:00
Alf Eaton
603ff28df0 Add text formatting commands to the LaTeX grammar (#19607)
GitOrigin-RevId: f69cd323992c80de3f0a458a637fa8f160017076
2024-08-02 08:06:11 +00:00
David
72c7b946ed Merge pull request #19617 from overleaf/dp-tooltip-alignment
Always render math preview tooltip at start of math content

GitOrigin-RevId: b0af7aa3c0920b2a9b9930f27a580018de1d2f52
2024-07-29 08:04:36 +00:00
David
c07d2f3fa2 Merge pull request #19528 from overleaf/dp-equation-preview
Equation Preview

GitOrigin-RevId: 98e71e5d2c1a83d6c9fa685eeee1f4b93a5a3da1
2024-07-25 08:05:04 +00:00
Mathias Jakobsen
34422b1428 Merge pull request #19418 from overleaf/mj-write-and-cite-custom-render
[web] Write & Cite autocomplete prototype

GitOrigin-RevId: f51edb9b1ab9cc2ac8f18277cb291ee87650c213
2024-07-24 08:05:04 +00:00
Mathias Jakobsen
abaf07a8bb Merge pull request #19158 from overleaf/mj-commands-autocomplete-optional-args
[web] Avoid double counting optional arguments for autocomplete

GitOrigin-RevId: 7abdc73657791b945bd5a7a9e29f5cd127c7882b
2024-06-27 08:04:31 +00:00
Mathias Jakobsen
d21da7d084 Merge pull request #19157 from overleaf/mj-separate-unknowncommands
[lezer] Separate unknown commands for definition fragments

GitOrigin-RevId: 21ce8d03e68f4af13c3937b4b5fd6f7ed0e50995
2024-06-26 11:11:53 +00:00
Mathias Jakobsen
46a160f127 Merge pull request #19072 from overleaf/mj-known-commands-reuse
[web] Parse known commands in math mode

GitOrigin-RevId: e7937fc46320f13c716d1612eca36aa67c8fb967
2024-06-25 11:12:14 +00:00
Mathias Jakobsen
9b1c703f6b Merge pull request #18901 from overleaf/mj-math-mode-args
[lezer] Parse command arguments in math mode

GitOrigin-RevId: 85a35f412de4c7238d735253c2642066ebffb393
2024-06-19 08:04:16 +00:00
Alf Eaton
e7827fbd57 Validate URL protocol before opening from Visual Editor tooltip (#18393)
GitOrigin-RevId: 1da255d3e8ccd91e8c8774d140ec663906be948f
2024-05-21 08:04:26 +00:00
Alf Eaton
c1c098e2f9 Allow files to be dragged from the file tree into the editor (#15028)
GitOrigin-RevId: f926666c032d1398a0e3f72a298116a3c7a9cd75
2024-05-09 08:04:46 +00:00
Alf Eaton
ab5495023a [visual] Add support for description list environments (#13460)
GitOrigin-RevId: d1ddfeed4ba453afa348e57d75fdb3e12d29f5fc
2024-05-03 08:04:53 +00:00
Alf Eaton
4a7a24b44d Update the CodeMirror language when the current file is renamed (#16342)
GitOrigin-RevId: 8b51df0d1acfeeb8b0323cebf6de78572c8cb95c
2024-01-15 09:04:27 +00:00
Alf Eaton
8feef7bf5e Remove findEffect (#16343)
GitOrigin-RevId: b8472f5128deac5e7f94fb1ec1e64899a8da510a
2024-01-04 09:03:20 +00:00
Alf Eaton
c2b553e915 [ide-react] Improve file tree and outline components in the editor sidebar (#16225)
* Upgrade react-resizable-panels
* Add FileTreeOpenProvider
* Add OutlineProvider and OutlineContainer
* Convert Outline tests to Cypress

GitOrigin-RevId: afd9ae8190edf37642e36a4ffb331f1182c8982d
2023-12-18 09:03:53 +00:00
Alf Eaton
9875e55a27 Remove Ace (#14299)
GitOrigin-RevId: ec8788fdbc8aea73ca33ec2810f4e588fe9476b5
2023-11-29 09:04:08 +00:00
Mathias Jakobsen
0d7730f37a Merge pull request #14712 from overleaf/mj-table-adjustbox
[visual] Disable caption dropdown when tabular is wrapped in command

GitOrigin-RevId: 08131d27e8bb4cb99eee3060435084f671bc3dd6
2023-09-08 08:04:23 +00:00
Alf Eaton
03fbc5e0a8 [visual] Place cursor in editable content when closing the preamble (#14162)
GitOrigin-RevId: 35f146caa4469c7f31fb00dc6047a421b1daadb0
2023-08-30 08:04:27 +00:00
Domagoj Kriskovic
67632212d7 [cm6] show full title for section outline (#14100)
* [cm6] prefer showing full title in outline for sections

* fix test

* remove fallback

* test rename

GitOrigin-RevId: ac7a2a2c4fa7740a51661710953c85f03394292f
2023-08-04 08:04:15 +00:00
Alf Eaton
08c82a24a9 [visual] Apply style to the content of color commands (#13726)
GitOrigin-RevId: 4ae8b745618e91b487d17c357cdb0e697038b3a3
2023-07-19 08:04:56 +00:00
Alf Eaton
05adb9d14d [visual] Add decorations for theorem environments (#13708)
GitOrigin-RevId: ba78be534fd7efba7d8722a214d69b21b0e3917c
2023-07-19 08:04:12 +00:00
ilkin-overleaf
12bcdad850 Merge pull request #13744 from overleaf/mj-big-projects
[cm6] Optimise getUpdatedProjection

GitOrigin-RevId: af321d3828185b245f557ab0e046851192c97296
2023-07-17 10:56:52 +00:00
Alf Eaton
7e20d41c4c Remove list items when list is toggled off (#13580)
GitOrigin-RevId: 19c63b26798fcf3c8e631090c614f0a693d4f071
2023-07-17 10:50:02 +00:00