Commit Graph

375 Commits

Author SHA1 Message Date
Espen Jacobsson
475f3465fe
Add TypeScript, JSX and TSX language support (#64)
* Add language support for TypeScript

* Add formatter for TypeScript

* Add language autodetection for TypeScript

* Add TypeScript to list of featured languages

* Add language support for JSX and TSX

* Add JSX and TSX to list of featured languages

* Remove guesslang token from JSX and TSX

* Fix syntax error

---------

Co-authored-by: Jonatan Heyman <jonatan@heyman.info>
2023-12-26 00:47:28 +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
6eda3efa63
Fix wrong badge URL 2023-12-25 23:48:33 +01:00
Jonatan Heyman
ae5bd48495 Remove debug print 2023-12-25 19:44:53 +01:00
Jonatan Heyman
9d0d38194c Add Build status badge 2023-12-25 17:43:19 +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
Jonatan Heyman
bbb6387581 Make sure saveFunction() is called when the page is unloaded 2023-12-24 22:21:41 +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
5d7af5031d Improve settings dialog
* Fix issue where it would overflow the viewport if using high enough zoom
* Some minor design improvements
2023-12-24 00:23:07 +01:00
Jonatan Heyman
bb9a39fe6e Fix bug where language auto detection will not trigger in some cases
E.g. if you pasted a piece of javascript, selected the whole block and deleted the text (which will change back the default language to Plaintext (auto)) and then paste the same javascript code again.
2023-12-24 00:13:17 +01:00
Jonatan Heyman
206abbc31c Change tense 2023-12-23 12:17:14 +01:00
Jonatan Heyman
b4953bf8a3 Fix links to Github issues 2023-12-23 12:16:30 +01:00
Jonatan Heyman
9290c8ef73 Add FAQ question on naming blocks/tags 2023-12-23 12:15:05 +01:00
Jonatan Heyman
0c88fbf242 Fix typo 2023-12-23 12:02:55 +01:00
Jonatan Heyman
6678c264d5 Add note about installation on Linux (ChromeOS)
Fixes #48.
2023-12-23 12:02:26 +01:00
Jonatan Heyman
6a5efea5c9 Add FAQ to Readme 2023-12-23 11:39:07 +01:00
Joshua Blum
f532c7939b
Add bufferPath to config, support bufferPath symlink (#27)
* Add bufferPath to config, support bufferPath symlink

* defaultPath before checking realpath

* Move code for retrieving buffer path into its own file

* Do the realpathSync() call for the whole final file path, to allow the buffer file to be a symlink

---------

Co-authored-by: Jonatan Heyman <jonatan@heyman.info>
2023-12-23 11:17:13 +01:00
Jonatan Heyman
d1ea17c197 Fix keyboard shortcut help text in the initial buffer text 2023-12-23 00:52:14 +01:00
Jonatan Heyman
9ee25ab758 Tweak body background in light mode 2023-12-22 20:09:39 +01:00
Jonatan Heyman
1b4b22eb62 Set dark body background in dark mode to prevent white flicker when resizing 2023-12-22 20:07:42 +01:00
Jonatan Heyman
8d261571b3 Improve help text of initial buffer content 2023-12-22 20:07:42 +01:00
Noah Andrews
a871291ec6
Remove reference to Linux support "coming soon" in the README (#18)
* Note that Linux support is now available in the README
2023-12-22 18:43:36 +01:00
Jonatan Heyman
0924a6dcd8 Add feature to Readme 2023-12-22 11:40:24 +01:00
Jonatan Heyman
ae1ee94ffb Update Readme 2023-12-22 11:36:04 +01:00
Jonatan Heyman
745052828a Bump version to 1.4.2 2023-12-21 19:27:06 +01:00
Jonatan Heyman
f8db397e0c Show keyboard shortcuts in status bar tooltips 2023-12-21 19:26:02 +01:00
Jonatan Heyman
49d3e5cd7d
Add Linux support (#6)
* Add linux AppImage build target
* Add ubuntu to Github Actions build matrix
* Show help text on how to open Menu, on Linux
2023-12-21 19:18:04 +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
eb886a39e5 Add beta channel info to about window
To avoid confusion for users on beta channel when the latest released version is a non-beta version.
2023-12-12 17:26:48 +01:00
Jonatan Heyman
6ec64ed3ee Add help text about showing menu with the Alt key, to the initial buffer text on windows 2023-12-12 15:39:01 +01:00
Jonatan Heyman
2a42eea089 Bump version to 1.4.0 2023-12-12 15:16:37 +01:00
Jonatan Heyman
6f5348fe3b Change default global hotkey 2023-12-11 14:30:26 +01:00
Jonatan Heyman
82e89f9821 Bump version 2023-12-11 00:32:07 +01:00
Jonatan Heyman
388f2e1cc0 Fix hotkey hiding on Windows 2023-12-11 00:31:40 +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
f8678a91ec Hide Heynote when global hotkey is pressed if the window is already focused 2023-12-10 23:44:58 +01:00
Jonatan Heyman
9e50446417 Restore window if minimized when global hotkey is pressed 2023-12-10 23:32:17 +01:00
Jonatan Heyman
192bd2a62f Bump version to 1.4.0-beta 2023-12-10 23:01:07 +01:00
Jonatan Heyman
198ce3066b Add global hotkey functionality 2023-12-10 22:59:42 +01:00
Jonatan Heyman
13afe62e11 Add global SASS include for all Vue components 2023-12-10 22:58:33 +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