Commit Graph

56 Commits

Author SHA1 Message Date
Jonatan Heyman
fcbf1733c4 Bump version to 1.6.0-beta.2 2024-01-06 03:13:07 +01:00
Jonatan Heyman
7841a91e3c Bump version to 1.6.0-beta 2024-01-05 01:01:38 +01:00
Jonatan Heyman
93fb003476 Bump version to 1.5.0 2023-12-27 01:12:02 +01:00
Jonatan Heyman
1487590d1d Bump version to 1.5.0-beta 2023-12-26 01:34:34 +01:00
Jonatan Heyman
bb511b868b
Add support for more languages (#69)
* Contain language selection dialog in an element that can be scrolled, and automatically scroll it if needed when navigating the list with arrow keys

* Add support for more languages:

Clojure, Erlang, Golang, Lezer, Ruby, Shell, YAML

* Move prettier auto format settings for languages into Language() class

* Remove invalid import

* Fix bug that could cause auto formatting to fail for the last block.
Add tests for language auto detection and formatting.

* Fix broken tests

* Fix language auto detection on Safari Webkit which was broken

* Remove unnecessary wait time
2023-12-26 00:27:43 +01:00
Jonatan Heyman
1006fd4580
Implement tests using Playwright (#68)
* Set up Playwright and add first test

* Add npm run commands for running tests
Run tests in github actions

* Fix tests on non Mac environments

* Add method to HeynoteEditor class to set the buffer content

* Add more tests

* Set Github action job name
2023-12-25 17:41:15 +01:00
Jonatan Heyman
079fa666d6
Implement web version of Heynote (#63)
* Move windows.darkMode -> window.heynote.themeMode

* Only add UpdateStatusItem if window.heynote.autoUpdate is set

* Update Vite

* Implement web version of Heynote.

Add a child vite project in ./webapp/ that is Heynote running within a browser. Imports almost all code from ../src/ and only adds a thin bridge that corresponds to the API between the Electron main process and the app code.

* Remove commented out tag

* Specify publicDir in vite config, instead of using a symlink

* Add webapp_dev npm command to package.json

* Add npm run command: webapp:build

* Add resolve alias '@' that points to project root.
Move assets file from public to assets in order to let Vite/Rollup handle bundling.
2023-12-25 14:18:44 +01:00
Ahmed M. Atia
96440b28ba
Add syntax highlighting support for C# (#55)
* feat: add syntax highlighting support for C#

* update README - add C# sysntac highlighting support

* restore original indentation / formatting

* Fix syntax error in Lezer grammar

* Fix language auto detection of C#

---------

Co-authored-by: Jonatan Heyman <jonatan@heyman.info>
2023-12-24 10:59:24 +01:00
Jonatan Heyman
745052828a Bump version to 1.4.2 2023-12-21 19:27:06 +01:00
Jonatan Heyman
41795c14ea Bump version to 1.4.1 2023-12-21 10:44:40 +01:00
Jonatan Heyman
6086976dc4 Update prettier version and fix formatting bug.
Prettier currently has a bug that causes it's formatWithCursor() to be extremely slow in some cases. In Heynote, whenever you pasted a large JSON chunk and auto formatted it, with the cursor at the beginning or the start of the block, this would trigger that bug. This commit introduces a work around by using format() if the cursor is at the beginning or the end of the block.

Update to latest version of Prettier.
2023-12-21 03:09:53 +01:00
Jonatan Heyman
2a42eea089 Bump version to 1.4.0 2023-12-12 15:16:37 +01:00
Jonatan Heyman
82e89f9821 Bump version 2023-12-11 00:32:07 +01:00
Jonatan Heyman
d5ea4c77ab Set version to 1.4.0-beta.2 2023-12-11 00:13:53 +01:00
Jonatan Heyman
cc7eefbb75 Bump version to beta2 2023-12-10 23:45:43 +01:00
Jonatan Heyman
192bd2a62f Bump version to 1.4.0-beta 2023-12-10 23:01:07 +01:00
Jonatan Heyman
131a9ec877 Upgrade Electron to version 28.0.0 2023-12-10 22:56:50 +01:00
Jonatan Heyman
caddb1e66f Add electron-log to dependencies instead of devDependencies 2023-12-10 14:18:43 +01:00
Jonatan Heyman
ec80c8f814
Fix broken build action (#5) 2023-12-10 14:06:55 +01:00
Jonatan Heyman
ef06d68708 Bump version to 1.3.3-beta 2023-12-10 12:19:27 +01:00
Jonatan Heyman
a88f9cc49b Update dependency versions
Explicitly add "@codemirror/*" packages instead of relying on the "codemirror" sample package.
Update to newer versions for implicit dependencies in in package-lock.json.

This should fix errors in development mode on Windows.
2023-12-10 12:18:43 +01:00
Jonatan Heyman
6886fe9dbe Bump version to 1.3.2 2023-12-08 13:29:37 +01:00
Jonatan Heyman
456aaecc20 Bump version to 1.3.2-beta 2023-12-08 00:29:51 +01:00
Jonatan Heyman
8fd7f45174 Upgrade @lezer/markdown
Fixes a bug causing automatic creation of new list items in Markdown mode not work
2023-12-07 18:29:48 +01:00
Jonatan Heyman
ca20c494a0 Bump version to 1.3.0-beta 2023-12-07 02:12:48 +01:00
Jonatan Heyman
3b1aae8e15 Update to latest version of electron-updater 2023-12-06 14:27:30 +01:00
Jonatan Heyman
146937a78a Upgrade to latest versions of Codemirror and Lezer packages 2023-12-06 11:33:55 +01:00
Jonatan Heyman
201ae99370 Bump version to 1.2.6 2023-12-05 18:02:42 +01:00
dependabot[bot]
c2ec66adeb
Bump postcss from 8.4.20 to 8.4.32
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.20 to 8.4.32.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.20...8.4.32)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-05 16:57:51 +00:00
dependabot[bot]
6ee2f9e560
Bump electron from 22.0.2 to 22.3.25
Bumps [electron](https://github.com/electron/electron) from 22.0.2 to 22.3.25.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v22.0.2...v22.3.25)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-05 16:49:24 +00:00
Jonatan Heyman
355be66387 Bump version to 1.2.5 2023-12-05 17:47:49 +01:00
Jonatan Heyman
4c910c6872 Bump version to 1.2.4 2023-07-17 12:03:31 +02:00
dependabot[bot]
9758f73a50
Bump vite from 4.0.4 to 4.0.5
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.0.4 to 4.0.5.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.0.5/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.0.5/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-17 10:01:18 +00:00
Jonatan Heyman
ba89b1f3ca Bump version to 1.2.3 2023-07-12 18:20:42 +02:00
Jonatan Heyman
3847a6b563 Bump version to 1.2.2 2023-07-11 11:25:57 +02:00
Jonatan Heyman
9e856a9521 Bump version to 1.2.1 2023-07-09 01:03:32 +02:00
Jonatan Heyman
fe2c006817 Bump version to 1.2.0 2023-07-08 16:50:17 +02:00
Jonatan Heyman
548034da90 Add rollup-plugin-license to automatically pull out license banners from dependencies and write to dependencies.txt 2023-07-08 16:48:36 +02:00
Jonatan Heyman
8c6d22d10d 1.1.0 2023-03-20 11:24:59 +01:00
Jonatan Heyman
f4a5806f0c 1.0.13 2023-03-13 17:22:48 +01:00
Jonatan Heyman
9015986b82 1.0.12 2023-03-12 18:22:32 +01:00
Jonatan Heyman
9d729b6055 1.0.11 2023-03-08 13:56:43 +01:00
Jonatan Heyman
00b88c9282 Fix cursor position issue when pressing page up/down
The cursor was not staying at the same viewport position, and could even get positioned outside the viewport.
2023-03-06 01:55:06 +01:00
Jonatan Heyman
7ce91016d6 Add auto update support 2023-03-06 01:30:37 +01:00
Jonatan Heyman
092d3816be Use electron-builder-notarize for Mac app notarization
#build
2023-03-05 14:41:34 +01:00
Jonatan Heyman
205471aec3 Try to get Mac singning and notarization working in github action
#build
2023-03-05 13:28:15 +01:00
Jonatan Heyman
f3c5a49fbf Add ability to format code for JSON, JS, CSS, HTML and Markdown blocks 2023-03-03 00:57:33 +01:00
Jonatan Heyman
a120938fc6 Update @lezer/lr that fixes bug that can cause parser to crash
https://github.com/lezer-parser/cpp/issues/2

#windows-build
2023-02-01 15:53:07 +01:00
Jonatan Heyman
a3545f5b52 Update to latest version of Lezer 2023-01-24 16:17:05 +01:00
Jonatan Heyman
60d8e9589c Remember window size and position between sessions 2023-01-19 02:38:19 +01:00