Laurent Cozic
c668bb0370
Revert "Desktop: Fixes #5850 : Editor loses cursor focus when Ctrl+F search is closed ( #5919 )"
...
This reverts commit b98e64c881
.
Ref: https://github.com/laurent22/joplin/issues/6035
2022-01-19 09:03:35 +00:00
Kenichi Kobayashi
5143a81749
Desktop: Fixes #5981 : Scroll positions are not preserved when layout changes ( #6021 )
2022-01-17 10:30:09 +00:00
Kenichi Kobayashi
24dbede6c1
Desktop: Fixes #5890 : Scroll jump when checkbox is toggled in Viewer ( #5941 )
2022-01-09 11:26:40 +00:00
Kenichi Kobayashi
70e623e741
Desktop: Fixes #5918 : Scroll jumps when images are rendered in Markdown Editor ( #5929 )
2022-01-09 11:26:03 +00:00
Laurent Cozic
3cf0841775
Desktop: Fixes #5707 : Add back text editor commands to Command Palette
2021-12-31 09:20:29 +01:00
Laurent Cozic
297b992944
Desktop: Right click on image to copy it to clipboard
2021-12-28 12:00:40 +01:00
Kenichi Kobayashi
b98e64c881
Desktop: Fixes #5850 : Editor loses cursor focus when Ctrl+F search is closed ( #5919 )
2021-12-28 10:26:33 +00:00
Hieu-Thi Luong
46438a5888
Desktop: Better handling of bold text to simplify customisation ( #5732 )
2021-12-28 09:57:34 +00:00
Kenichi Kobayashi
852e6c141b
Desktop: Fixes #5549 : cannot jump if local search count is one ( #5894 )
2021-12-27 18:13:09 +00:00
Laurent Cozic
83c0c48c83
Plugins: Added "openItem" command
2021-12-27 17:44:53 +01:00
Laurent Cozic
960863fb75
Plugins: Add support for joplin.workspace.filterEditorContextMenu to allow dynamically setting editor menu items depending on context
2021-12-27 17:38:21 +01:00
Laurent Cozic
9ca298f500
Tools: Fixes #5902 : Correctly load external resources when bundling desktop app
2021-12-23 12:04:09 +01:00
Laurent
7f64fbfd9b
Tools: Use Yarn 3 to manage monorepo ( #5833 )
2021-12-20 15:08:43 +00:00
Kenichi Kobayashi
3a6380fa92
Doc: Fix sync-scroll comment to refer a correct URL ( #5868 )
2021-12-18 15:16:00 +00:00
Kenichi Kobayashi
fe2eb25acb
Desktop: Fixes #5872 : Markdown search no longer scrolls to result ( #5876 )
2021-12-18 15:14:57 +00:00
Kenichi Kobayashi
5c82e439a7
Desktop: Fixes #5708 : Scroll positions are preserved ( #5826 )
...
Features:
- Scroll position is preserved when the editor layout changes.
- Scroll position is remembered when a note selection changes.
Modifications:
- The current Sync Scroll feature (in v2.6.2) is modified to use line-percent-based scroll positions.
- Scroll position translation functions, Viewer-to-Editor and Editor-to-Viewer, are separated into V2L / L2E and E2L / L2V respectively.
- The scrollmap is moved from gui/utils/SyncScrollMap.ts to note-viewer/scrollmap.js.
- IPC Protocol about the scrollmap becomes not necessary and is removed.
- Ignores non-user scroll events to avoid sync with incorrect scroll positions.
- When CodeMirror is not ready, setEditorPercentScroll() is waited.
- Fixes the bug: An incorrect scroll position is sometimes recorded.
- Since scroll positions become line-percent-based, the following incompatibilities of scroll positions are fixed:
- Between Editor and Viewer.
- Between Viewer Layout and Split Layout of Viewer
- Between Editor Layout and Split Layout of Editor
2021-12-15 18:03:20 +00:00
Caleb John
aac044fc9c
Desktop: Fixes #5311 : Rich text editor flashing white when switching notes/editor ( #5793 )
2021-12-03 12:23:31 +00:00
Laurent Cozic
82defbdd7b
Chore: Fixed mobile build
2021-11-23 12:12:27 +00:00
Laurent Cozic
0e11273c45
Desktop: Fixes #5693 : Opening a file with ctrl and click leads to an error in the Rich Text editor
2021-11-22 17:20:48 +00:00
Laurent Cozic
c759982890
Desktop: Fixes #5710 : Text was unreadable in dark mode when dropping a note on Rich Text editor
2021-11-17 19:44:08 +00:00
Laurent Cozic
e53da58602
Desktop: Fixes #5666 : Message in search box dialog was not readable in dark mode
2021-11-17 19:32:27 +00:00
Laurent Cozic
e97bb78ce4
Desktop, Mobile: Added support for notebook icons
2021-11-15 17:19:51 +00:00
Kenichi Kobayashi
e4d5e9cefb
Desktop: Fixes #5582 : Currently opened note is not updated after sync (5582) ( #5711 )
2021-11-11 15:31:20 +00:00
Kenichi Kobayashi
630a400181
Desktop: Resolves #2242 : Implements Sync-Scroll for Markdown Editor and Viewer ( #5512 )
2021-11-03 12:10:46 +00:00
Laurent Cozic
60127831b8
Desktop: Fixed crash on certain Linux distributions when importing or exporting a file
...
Ref: https://discourse.joplinapp.org/t/20702/37
2021-11-01 07:38:06 +00:00
Brett Bender
8de9032321
Deskop: Fixed shortcut to focus the note body ( #5597 )
2021-10-30 18:00:01 +01:00
Laurent Cozic
0b01b5b0ef
Desktop, Mobile: Resolves #5593 : Enable safe mode for Markdown editor too
2021-10-30 17:51:19 +01:00
Rishabhraghwendra18
7b2480179f
Desktop: Fixes #5310 : Bright background around code block insertion dialog in dark mode ( #5491 )
2021-10-08 15:18:26 +01:00
Laurent Cozic
4a7746beb2
Desktop: Upgrade Electron from v10 to v14
2021-10-01 19:35:27 +01:00
Laurent Cozic
542fdb496a
Set default options
2021-09-19 18:54:14 +01:00
Laurent Cozic
e447acc076
Desktop: Resolves #5440 : Do not escape content when copying from Rich Text editor
2021-09-19 13:00:06 +01:00
Laurent Cozic
6d981864ef
Desktop: Fixes #5461 : Editor max width was not always applied in Rich Text editor
2021-09-19 12:04:23 +01:00
Caleb John
7a9ec627ee
Desktop: Resolves #5233 : Fire resize event whenever the layout changes ( #5344 )
...
* Fire resize event whenever the layout changes
This solves an issue where the markdown editor was changing size
physically, but the refresh function wasn't being called so the
editor would lose track of it's size and place the cursor wrongly.
The editor was able to correctly resize when the window resize event
was fired, but this didn't happen when the sidebars were toggled.
The solution implemented here is to hook in to the function where
layout props are changed, and emit a resize event there.
This means that anytime the layout changes (whether or not it affects
sizing), the resize event will be fired.
2021-09-19 11:36:23 +01:00
Helmut K. C. Tessarek
12ec7b0c1d
macOS: Added Cmd+Backspace shortcut to delete line ( #5478 )
2021-09-19 11:32:58 +01:00
Laurent Cozic
80762572cf
Chore: Moved app state to separate file
2021-09-04 18:11:29 +01:00
Laurent Cozic
f5891dfae8
Tools: Fixed build
2021-09-04 15:15:25 +01:00
Laurent Cozic
c529b972e3
Chore: Automatically create command index for desktop app
2021-09-04 13:43:25 +01:00
Laurent Cozic
4c72de8bd8
Desktop: Fixes #5380 : Prevent it from crashing with too long search queries
2021-08-27 17:16:09 +01:00
Caleb John
e3bd24f819
Desktop: Resolves #5364 : Disable inline code background in vim mode ( #5370 )
...
Also ensure that highlight marks are shown above inline code
2021-08-23 00:34:04 +01:00
Caleb John
a4785efd58
Desktop: Split code block class in two ( #5359 )
...
This makes it clear that once class controls the background
and the other controls the foreground
2021-08-21 10:34:54 +01:00
Caleb John
189f9d1091
Desktop: Fixes #5327 : Add more specific classes for CodeMirror elements ( #5333 )
...
Some themes use fairly specific classes so we need to overide them.
When changing notebooks, or when entering the editor from settings
the order that css is loaded changes in which case this bug wouldn't
manifest
2021-08-18 12:05:52 +01:00
Caleb John
352b78b5f7
Desktop: Removes markdown inline code padding ( #5331 )
...
Ref: https://github.com/laurent22/joplin/pull/5314#issuecomment-900256897
2021-08-18 12:03:34 +01:00
Caleb John
e159494231
Desktop: Place code-block background in the back in Markdown editor ( #5322 )
2021-08-17 07:13:52 +01:00
Caleb John
9783f57f75
Desktop: Resolves #5297 : Improved Markdown editor code styling, and add CSS classes for code ( #5314 )
...
Adds the cm-jn-inline-code and cm-jn-code-block classes
both classes are given styling based on the current theme
2021-08-15 10:25:47 +01:00
Laurent Cozic
8063c94ff7
Desktop: Allow setting a max width for the editor content
2021-08-14 12:19:53 +01:00
Laurent Cozic
f9cfefdb29
Desktop: Resolves #5273 : Prevent plugins from crashing the application
2021-08-06 13:08:32 +01:00
Laurent Cozic
bde39bf6b3
Desktop: Fixes #5268 : Disable "Dropped file type is not supported" notification in Rich Text editor
2021-08-05 12:09:21 +01:00
Laurent Cozic
8920db5537
Desktop: Fixes #5241 : Katex code could be broken after editing it in Rich Text editor
2021-07-26 14:50:31 +01:00
Laurent Cozic
07d2a60c75
Plugins: Add support for loading application chrome and note CSS from the plugin
2021-07-23 11:05:21 +01:00
Laurent
8e4be78013
Desktop: Make Markdown editor styling closer to view styling ( #5174 )
2021-07-16 11:32:29 +01:00
Philipp Keck
bc97bb242a
Desktop: Add keyboard shortcuts for inserting lists in Rich Text editor ( #5137 )
2021-07-09 10:48:50 +01:00
Philipp Keck
6f836b372d
Desktop: Fixes #4243 : Fix double-paste also on Linux ( #5143 )
...
See https://github.com/laurent22/joplin/issues/4243 .
Tested that it fixes the issue on Linux Mint with KDE.
2021-07-06 14:03:17 +01:00
Laurent Cozic
e9f5ca817b
Desktop: Resolves #4905 : Apply monospace font to code dialog in Rich Text editor
2021-06-23 12:35:37 +01:00
Caleb John
a7e67952b8
Plugins: Support executing codemirror commands from plugins when using execCommand ( #5012 )
2021-06-07 10:19:35 +01:00
Austin Doupnik
1b7d40387d
Desktop: Fixes #4877 : Incorrect list renumbering ( #4914 )
2021-06-07 10:17:46 +01:00
Laurent Cozic
e8a02c26d0
Desktop: Fixed: Ctrl+Clicking links in Rich Text editor was broken (regression)
2021-06-04 13:34:30 +02:00
Laurent Cozic
6ff560f22f
Desktop: Fixes #4591 : Prevent cursor from jumping to top of page when pasting image
2021-05-20 19:13:35 +02:00
Laurent Cozic
2226b79c46
Desktop: Fixed pasting HTML in Rich Text editor, and improved pasting plain text
2021-05-20 18:08:59 +02:00
Laurent Cozic
9e9bf63d70
Desktop: Regression: Pasting plain text in Rich Text editor was broken
2021-05-20 17:42:04 +02:00
Laurent Cozic
bd08041f53
Desktop: Pass custom CSS property to all export handlers and renderers
2021-05-19 15:00:16 +02:00
Andre Jilderda
f3e03d48bb
Desktop: Add classnames to DOM elements for theming purposes ( #4933 )
2021-05-17 19:33:44 +01:00
Laurent Cozic
6577f4f35d
Desktop: Regression: It was no longer possible to add list items in an empty note
2021-05-17 20:30:48 +02:00
Subhra264
df6f0ce9af
Desktop: Fixes #4891 : Solve "Resource Id not provided" error ( #4943 )
2021-05-13 09:34:03 +01:00
Laurent Cozic
bb77d7171a
Desktop: Fixes #4916 : Fixed pasting of text and images from Word on Windows
2021-05-10 11:12:29 +02:00
Laurent Cozic
4ea21e0c32
Desktop: Fixes #4916 : Ensure that image paths that contain spaces are pasted correctly in the Rich Text editor
2021-05-04 17:44:30 +02:00
Laurent Cozic
606a64f49c
Fixed resource error handling
2021-05-04 16:00:40 +02:00
Laurent Cozic
b5f01c005f
linter
2021-05-04 11:05:20 +02:00
Adarsh Singh
b1ecb75e1f
Desktop: Resolves #4813 : Skip empty lines while converting selection to list ( #4832 )
2021-05-04 09:49:56 +01:00
Nishant Mittal
eb82ae87ca
Desktop: Fixes #4767 : Create own copy of images while pasting ( #4852 )
2021-05-03 15:13:51 +01:00
Caleb John
b1ea3f3ad1
Desktop: Add "duplicate line" command in Markdown editor ( #4873 )
...
Ref: https://discourse.joplinapp.org/t/duplicate-line-command/12650/15
2021-04-25 09:57:35 +01:00
Roman Musin
f87ff54e3d
Desktop: Fixes #4797 (partially): Scroll position is not remembered in Markdown editor ( #4806 )
2021-04-25 09:52:05 +01:00
Caleb John
e95ea48ce9
Desktop: Fix: Fixed cursor moved to the top issue in Markdown editor ( #4870 )
...
Ref: https://discourse.joplinapp.org/t/cursor-moved-to-the-top-undo-history-removed/16837/6
2021-04-24 09:18:31 +01:00
Subhra264
f62bfbb853
Desktop: Fixes #4043 : File-Links with German Umlauts don't work ( #4804 )
2021-04-12 13:35:39 +01:00
Laurent Cozic
5a620ee26e
Desktop: Fixes #4669 : Copying code block from Rich Text editor results in two copies of the text
...
Also improved copying plain text from Rich Text editor - in that case the HTML is converted to Markdown
2021-04-11 19:01:06 +02:00
Nishant Mittal
9642f5f715
Desktop: Fixes #4788 : Set plain/text clipboard while copying ( #4791 )
2021-04-08 10:30:12 +01:00
Adarsh Singh
f59e312ee2
Desktop: Resolves #4750 Disappearing text in markdown editor ( #4781 )
...
Fixes #4750 by preventing automatic deletion of list elements in certain cases
2021-04-01 21:39:42 -06:00
Nishant Mittal
9cf5974c7b
Desktop: Fixes #4602 : Allow copying images from Joplin to external editors ( #4724 )
2021-03-29 09:40:50 +01:00
Caleb John
81b3ddf0e7
Desktop: Add monospace enforcement for certain elements in Markdown editor ( #4689 )
2021-03-26 09:08:22 +00:00
Laurent Cozic
8ba49c6fdf
Desktop: Add support for strikethrough, sub, sup and insert formatting on Rich Text editor
2021-03-17 09:48:01 +00:00
Laurent Cozic
f3b2ca4752
Desktop: Add support for higlighting text from Rich Text editor
2021-03-16 19:39:35 +00:00
zozolina123
aa067e3d16
Desktop: Fixes #4398 : Wrong background color for the table button in the toolbar ( #4681 )
2021-03-16 10:07:20 +00:00
Neeraj Kashyap
fd390dff6b
Desktop: Resolves #2810 : Ctrl+Shift+B to viewer when editor invisible ( #4537 )
2021-03-14 15:06:38 +00:00
Caleb John
6496172aed
Desktop: Bring editor katex highlight in line with renderer ( #4632 )
2021-03-11 14:37:58 +00:00
Caleb John
4d0beb6d47
Desktop: Toggle math highlighting in editor with markdown options ( #4631 )
2021-03-11 14:37:12 +00:00
James Wright
752c14d726
Desktop: Resolves #4554 : Improve mathmode syntax highlighting ( #4580 )
2021-02-23 22:32:01 +00:00
Caleb John
33e1214ef6
Desktop: Undo changes introduced in #4303 ( #4406 )
2021-02-06 16:01:06 +00:00
Laurent Cozic
dadec484e9
Merge branch 'release-1.7' into dev
2021-01-30 12:21:14 +00:00
Laurent Cozic
73314447b9
Desktop: Fixes #4441 : Fixed copying text from Rich Text editor
2021-01-30 11:08:11 +00:00
Laurent Cozic
ccbc329cbf
Server: Add support for sharing notes via a link
2021-01-29 18:45:11 +00:00
Laurent Cozic
12187b9da3
Mobile: Fixed mobile build
2021-01-27 17:42:58 +00:00
Laurent Cozic
dbbbd22aef
Desktop: Localise "Click to add tags" button
2021-01-25 10:20:56 +00:00
Laurent Cozic
63559ac8b9
Tools: Apply eslint rule "no-multi-spaces"
2021-01-23 15:51:19 +00:00
Laurent Cozic
86610e7561
Converted models and services to TypeScript
2021-01-22 17:41:11 +00:00
Laurent Cozic
fa9f5fd458
Desktop: Fixes #4337 : Make sure note is automatically saved when format is set via keyboard shortcut in Rich Text editor
2021-01-21 18:33:33 +00:00
Laurent Cozic
716a92944d
Desktop, Mobile: Fixes #4363 : Added missing translations
2021-01-21 18:23:32 +00:00
Laurent Cozic
2489409abb
Plugins: Added support for bi-directional messages in content scripts and webview scripts using postMessage
2021-01-11 23:33:10 +00:00
Caleb John
c484c88715
Desktop: Fix issue that was preventing editor context menu from being refreshed ( #4303 )
2021-01-08 16:35:23 +00:00
Laurent Cozic
ccf5271584
Desktop: Handle case where a command is sent to an editor that is gone
2021-01-07 22:03:13 +00:00
Laurent Cozic
df3e6a6219
Desktop: Fixed context menu not being displayed on high DPI screens
2021-01-07 21:44:31 +00:00
Caleb John
98cbb237b5
Desktop: Fixes : #4317 : Spell checker inserts correction at wrong location ( #4318 )
2021-01-07 17:01:44 +00:00