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.
(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)
* 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
* 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
* Fix trayicon on linux not appearing
---------
Co-authored-by: Fernando Pinedo <fernando.pinedo@luizalabs.com>
Co-authored-by: Jonatan Heyman <jonatan@heyman.info>
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
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.
* Add functionality to insert new block after the last block
- Update key bindings in `initial-content.ts` to include `Alt + Enter` for adding a new block after the last block.
- Implement `getLastNoteBlock` function in `block.js` to retrieve the last block in the note.
- Add `addNewBlockAfterLast` command in `commands.js` to handle the insertion of a new block after the last one.
- Integrate `addNewBlockAfterLast` command into the keymap in `keymap.js`.
* Add block insertion before/after current, before first and after last. Also, tests.
- Added `getFirstNoteBlock` in `block.js` for accessing the first text block.
- Implemented new functions in `commands.js` like `addNewBlockBeforeCurrent` and `addNewBlockBeforeFirst`.
- Updated `keymap.js` with new key bindings to facilitate block creation.
- Introduced `block-creation.spec.js` for testing the new block manipulation features.
* Fix visual bug when inserting new block at the top
* Update help text and Readme
* Fix wrong cursor position after inserting new blocks at the top of the buffer, when the previous first block's delimiter is long (e.g. Markdown)
* Make RegEx more generic
* Fix import
* Auto-generate the README.md and initial-content documentation
- Add a documentation generator
- Add an option to force the initial content to be erased with an env variable
* Add more specific tests
* Fix Mod key on Mac in test
---------
Co-authored-by: Jonatan Heyman <jonatan@heyman.info>
* Add a setting to toggle the auto bracket-closing of CodeMirror
* Move Auto-close brackets setting into new settings tab Editing
* Add tests for Auto-close bracket setting
---------
Co-authored-by: Jonatan Heyman <jonatan@heyman.info>
* Add support for opening settings dialog in the webapp
* Add tests for settings dialog
* Hide stand-alone app specific settings in web app
* Remove debug log