Commit Graph

453 Commits

Author SHA1 Message Date
Abhishek Maran
5eed314e32
fix: Block corruption when deleting block content using deleteLine command (#134)
* fix: cell corruption when deleting block contents

* customize deleteLine to fix cell corruption

* implemented tests for delete line

* moved deleteLine and selectedLineBlocks to delete-line.js
2024-02-07 13:03:59 +01:00
Jonatan Heyman
f9673b0954 Use explicit key bindings for copy/paste/cut, instead of just relying on default browser keys 2024-01-29 13:20:21 +01:00
Jonatan Heyman
a5088a48af Open the Heynote window when menu bar icon is left-clicked on Mac 2024-01-26 01:42:29 +01:00
BlackHoleFox
fdfce3d9c8 Remove unnessecary entitlements 2024-01-25 23:09:30 +01:00
BlackHoleFox
9e3ca58822 Remove insecure macOS entitlement 2024-01-25 23:09:30 +01:00
Jonatan Heyman
41d9ef7025
Copy whole current line(s) when selection(s) are empty (#177)
* Copy whole current line(s) when selection(s) are empty

* Fix tests on Linux/Windows
2024-01-25 17:44:38 +01:00
Jonatan Heyman
91f80ff84a Check that stored screen position and size are still valid (not larger than screen or outside screen), and if not, reset them. 2024-01-25 14:31:02 +01:00
ImKaashif
5e169a1927 added x and y co-ordinates to windowConfig 2024-01-25 14:31:02 +01:00
Jonatan Heyman
295e55552b Add version number to settings dialog.
For the web app we also display the git hash.
2024-01-12 15:09:13 +01:00
Jonatan Heyman
37b62d416e Move window.heynote.isWebApp to window.heynote.platform.isWebApp 2024-01-12 14:42:37 +01:00
Jonatan Heyman
e292fab449 Always show settings button in status bar (not just in web app) 2024-01-12 14:42:37 +01:00
Jonatan Heyman
15ee6b9194 Change "Preferences" to "Settings" in the application menu (#100) 2024-01-12 14:29:36 +01:00
Jonatan Heyman
5adbbc72ec
Add prev variable to Math blocks that holds the previous value (#156)
Moved documentation on Math blocks from the FAQ into it's own section in the Readme.
2024-01-11 21:28:11 +01:00
Jonatan Heyman
66e7082786 Set default font size to 16px in webapp for mobile devices in order to avoid auto zoom in when the keyboard appears on iOS Safari 2024-01-11 21:05:15 +01:00
Jonatan Heyman
c645b0bac8 Avoid zoom in on input focus, in the webapp on mobile devices
Set LanguageSelector's input font-size to 16px on mobile devices.

Add SASS mixins "webapp" and "webapp-mobile" to write specific CSS for those clients.
2024-01-11 21:05:15 +01:00
Jonatan Heyman
54e390eeec Set text color for language selector's input in dark mode
(in Electron it has a good default since the native UI gets it's theme set, but this does not happen in a browser where the user selects the dark theme)
2024-01-11 21:05:15 +01:00
Jonatan Heyman
922aa83a10 Fix "white flash" effect when resizing window in dark mode
* Fix so that the background color of the page gets properly set according to the current theme.

* Change so that we add the theme attribute to the <html> element instead of <body>, making it possible to use the +dark-mode SASS mixin in body CSS selectors

* Introduce CSS variables for the status bar's background and text colors
2024-01-11 16:58:21 +01:00
Jonatan Heyman
195a00a783 Add info on how to override format() in Math blocks 2024-01-10 18:05:31 +01:00
Jonatan Heyman
96667a9d3c Bump version to 1.6.0 2024-01-10 13:00:14 +01:00
Jonatan Heyman
85274103fc Bump version to 1.6.0-beta.5 2024-01-10 09:57:47 +01:00
Jonatan Heyman
fea7e3cec2 Fix bug causing crash when starting the app for the first time (without a config file) 2024-01-10 09:55:38 +01:00
Jonatan Heyman
73c3d12e38 Bump version to 1.6.0-beta.4 2024-01-09 00:46:57 +01:00
Jonatan Heyman
e1287d795e Remove AltGr from global hotkey setting on Windows
Did not work. On windows pressing Ctrl+Alt is the same as AltGr, so setting the hotkey to Ctrl+Alt+H will make the hotkey AltGr+H work.
2024-01-09 00:45:53 +01:00
Jonatan Heyman
090b6fc1dd Add tests for custom fonts 2024-01-09 00:35:33 +01:00
Jonatan Heyman
f0927add74 Fix broken Settings dialog in browsers that doesn't support queryLocalFonts() 2024-01-09 00:35:33 +01:00
Jonatan Heyman
780a949a73 Fix so that Settings dialog work when browser doesn't support queryLocalFonts() 2024-01-09 00:35:33 +01:00
Jonatan Heyman
09539f9cd8 Remove invalid code (copy & paste error) 2024-01-09 00:35:33 +01:00
Jonatan Heyman
a56a267e06 Add support for changing font family and font size 2024-01-09 00:35:33 +01:00
Jonathon Hodges
fb62652847 Update initial-content.ts
Fixed typo in initial content

## Why
The area of a circle is pi times the radius squared (A = π r²), not the volume.
2024-01-09 00:27:00 +01:00
Noah Andrews
bb7c4168da
Explicitly document that Math blocks use math.js expressions (#143)
* Explicitly document that Math blocks use math.js expressions
* Links to general docs instead of reference docs
* Adds explicit link to docs about expression syntax
2024-01-07 01:09:09 +01:00
Jonatan Heyman
ff7323ed63 Bump version to 1.6.0-beta.3 2024-01-06 21:31:42 +01:00
Jonatan Heyman
e887d7e35f Automatically remove/add window from Taskbar in Windows, when Show in tray is turned on.
Call setForceQuite() before autoUpdater.quitAndInstall() to make sure auto updating works when Tray/Menu Bar setting is turned on.
2024-01-06 21:30:41 +01:00
Jonatan Heyman
fcbf1733c4 Bump version to 1.6.0-beta.2 2024-01-06 03:13:07 +01:00
Jonatan Heyman
2a2703d6d3 Check showInMenu checkbox when showInDock is deselected 2024-01-06 03:11:15 +01:00
Jonatan Heyman
46b2ee0522 Use correct OS terminology for Tray in settings label 2024-01-06 03:11:15 +01:00
Jonatan Heyman
05aba1ac65 Make close button just hide the window if "Show in menu bar" is active on Mac 2024-01-06 03:11:15 +01:00
Jonatan Heyman
bb5975455c Hide Heynote from taskbar on Windows when Tray icon has been turned on. Make close button just hide the window, and require using the Tray menu to quit for real. Fixes 137. 2024-01-06 03:11:15 +01:00
Joshua Blum
aa420acd1d Resolve ~ to homedir 2024-01-06 02:10:45 +01:00
Fernando Pinedo
d055db1831
FIX: fixed trayicon on linux not appearing (#136)
* Fix trayicon on linux not appearing

---------

Co-authored-by: Fernando Pinedo <fernando.pinedo@luizalabs.com>
Co-authored-by: Jonatan Heyman <jonatan@heyman.info>
2024-01-06 02:04:50 +01:00
Jonatan Heyman
554e04ea67 Fix test on linux/windows
Change Playwright reporter when running in Github action

Change default emacs meta key to Alt on non Linux and Windows

Always set emacsMetaKey to "alt" if not on Mac, since the option is only available on Mac
2024-01-06 01:51:07 +01:00
Jonatan Heyman
17091d323c Remove debug log 2024-01-06 01:51:07 +01:00
Jonatan Heyman
957b22c70e Refactor the way we handle copy/cut/paste in Emacs mode
Previously we listened for the key bindings for copy, cut and paste in the Electron main process, and triggered the event using copy(), paste() and cut() methods on win.webContent. Now this is fully handled within the renderer process using the window.navigator.clipboard API.

This will make it simpler to implement fully customizable key bindings.
2024-01-06 01:51:07 +01:00
Jonatan Heyman
1b0b2d55b1 Support setting preventDefault to false in keymapFromSpec spec 2024-01-06 01:51:07 +01:00
Jonatan Heyman
37265d7796
Change title format in issue template 2024-01-05 02:13:41 +01:00
Jonatan Heyman
8b5ff99af7
Change title format in issue template 2024-01-05 02:13:18 +01:00
Jonatan Heyman
2ed2909f45
Better example values 2024-01-05 02:10:37 +01:00
Jonatan Heyman
787e0447d7
Minor formatting improvement to issue template 2024-01-05 02:09:23 +01:00
Jonatan Heyman
002ad64a2d
Update issue templates 2024-01-05 02:07:58 +01:00
Jonatan Heyman
efe78f7959 Fix broken windows build by adding old favicon.ico as icon.ico and pointing to it in electron-builder config 2024-01-05 01:16:34 +01:00
Jonatan Heyman
7841a91e3c Bump version to 1.6.0-beta 2024-01-05 01:01:38 +01:00