Commit graph

849 commits

Author SHA1 Message Date
roboticsdude60 3f86af051c
Update README.md (#767)
bump the version requirement of Elixir to match 1.13 from the previous 1.12
2021-12-08 08:08:23 +01:00
jonatanklosko 6144b679b6 Update assets 2021-12-07 18:16:26 +00:00
Jonatan Kłosko 89ea67861f
Improve "changed" indicator and batch evaluation shortcuts (#766)
* Make cell status italic when content changed

* Add Ctrl+Shift+Enter for evaluating all cells

* Improve the behaviour of evaluating all cells

* Fix typo
2021-12-07 19:14:32 +01:00
jonatanklosko 812f753a37 Update assets 2021-12-06 13:17:40 +00:00
Jonatan Kłosko 84222d0a0c
Allow editor command palette to overflow (#764) 2021-12-06 14:15:44 +01:00
jonatanklosko e98bfacfd0 Update assets 2021-12-06 12:11:56 +00:00
Jonatan Kłosko 859dfd9eb2
Disable word suggestions on Elixir cells (#763) 2021-12-06 13:10:16 +01:00
Kyungyeol Kim (Bret) a5cb366c73
Fix class name in import_file_uploader_component (#762) 2021-12-06 12:38:39 +01:00
Jonatan Kłosko f44e34d3d7
Release 0.4.0 (#745) 2021-12-05 19:12:11 +01:00
Jonatan Kłosko b97cde0879
Improve completion (#756)
* Don't show variable value in intellisense

* Don't complete quoted atoms
2021-12-05 16:49:51 +01:00
Jonatan Kłosko be3225fe3a
Bump Kino in explore notebooks (#755) 2021-12-05 16:26:46 +01:00
jonatanklosko d40a884f31 Update assets 2021-12-05 14:00:34 +00:00
Jonatan Kłosko d909272746
Improve completion (#747)
* Add keywords to completion

* Fix signature request caching for call without parentheses

* Don't insert parentheses for def* macros

* Don't trigger missing runtime message when auto completion is enabled

* Don't insert parentheses for keyword macros

* Improve completion of env macros

* Apply review comments

* Update locals without parentheses

* Apply suggestions from code review

Co-authored-by: José Valim <jose.valim@dashbit.co>

* Format

Co-authored-by: José Valim <jose.valim@dashbit.co>
2021-12-05 14:58:30 +01:00
Jonatan Kłosko 4b5ea87b3d
Include notebook name in the autosaved notebook path (#748)
* Include notebook name in the autosaved notebook path

* Add test for persisting unsaved notebooks
2021-12-05 14:58:19 +01:00
Kevin 40e3a61e00
Expand System.tmp_dir!() path by default (#754)
Since System.tmp_dir!/0 returns the path with backslashes instead of
frontslash it is piped to Path.expand/1 to normalize it to frontslashes.
2021-12-05 14:58:07 +01:00
Jonatan Kłosko 34697bfdfc
Bump earmark parser (#749) 2021-12-05 13:06:34 +01:00
ryg-git 2fe9ca73c7
Fix typo in keyboard shortcuts modal (#751) 2021-12-05 12:50:28 +01:00
jonatanklosko 2795e8aad1 Update assets 2021-12-04 15:30:57 +00:00
Jonatan Kłosko f0606b109d
Automatically back up notebooks without a file (#736)
* Improve file select layout on long paths

* Automatically back up notebooks without a file

* Run formatter

* Add margin when there are no sections

* Add an informative note about autosave directory

* Store autosave path instead of file in the config

* Rename autosave dir to autosave path

* Fix insert mode escape on section headlines

* Show ellipsis on selected file too

* Always create the default directory

* Apply review comments
2021-12-04 16:29:14 +01:00
jonatanklosko c28eb6979b Update assets 2021-12-04 14:04:56 +00:00
Adam Lancaster a764073848
Allow for XML syntax highlighting in markdown cells (#743)
* Update webpack.config.js

Allows for xml syntax highlighting in markdown cells

* Extend theme to cover XML and JSON specific tokens

* Refactor theme colors into a single palette

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2021-12-04 15:02:53 +01:00
Jonatan Kłosko 037c425643
Bump Kino version in explore notebooks (#744) 2021-12-04 14:44:53 +01:00
jonatanklosko 7fdfafe35d Update assets 2021-12-04 12:46:03 +00:00
Jonatan Kłosko cc772f4ffe
Never show automatic completion popup in Markdown cells (#742) 2021-12-04 13:44:07 +01:00
Jonatan Kłosko ab0a237ab6
Completion adjustments (#740)
* Show exceptions at the end of completion list

* Don't complete hidden functions
2021-12-03 23:28:34 +01:00
José Valim 18d8eccc9e
Do not try to accidentally load elixir.beam (#739) 2021-12-03 22:50:45 +01:00
jonatanklosko 64fce545d3 Update assets 2021-12-03 20:59:15 +00:00
Jonatan Kłosko e2490c0f7f
Implement signature intellisense (#640)
* Remove Code.Fragment backport

* Fix tests compatibility with Elixir 1.13

* Implement signature intellisense

* Don't show signatures on module attributes

* Add tests for calls with do-end block

* Unify spec formatting

* Insert parentheses when completing a function call

* Send all text until cursor in signature request

* Add configuration for completion/signature popups (#693)

* Add editor settings form

* Add configuration for intellisense defaults

* Read fresh settings when editor mounts

* Scope attribute names

* Fix disabled button styling

* Simplify signature box and enable by default

* Split settings into system and user sections

* Update lib/livebook_web/live/settings_live.ex

Co-authored-by: José Valim <jose.valim@dashbit.co>

* Update lib/livebook_web/live/settings_live.ex

Co-authored-by: José Valim <jose.valim@dashbit.co>

Co-authored-by: José Valim <jose.valim@dashbit.co>

* Fix spacing in documentation tests

Co-authored-by: José Valim <jose.valim@dashbit.co>
2021-12-03 21:57:21 +01:00
Jonatan Kłosko 47d29cb389
Require Elixir 1.13 (#737)
* Bump required Elixir version to 1.13 and fix TODOs

* Fix tests

* Remove the deprecated URI.parse/1

* Bump Docker base image

* Bump Elixir on CI
2021-12-03 21:47:20 +01:00
Jonatan Kłosko ac6b423e79
Fix frame rendering (#735)
* Fix frame rendering

* Add test for the dynamic frame
2021-12-03 18:59:08 +01:00
Jonatan Kłosko 6de1dd84c2
Fix long section names alignment (#734) 2021-12-03 15:18:48 +01:00
José Valim 2c91de3cd6
Streamline introductory notebooks (#733) 2021-12-03 15:17:09 +01:00
Jonatan Kłosko 04f15f60a3
Add Pong notebook to the explore section (#729) 2021-12-03 15:08:28 +01:00
jonatanklosko 2f1c58d7f7 Update assets 2021-12-03 13:25:32 +00:00
Jonatan Kłosko 4debf2c1fb
Fix evaluation timer on page refresh (#732) 2021-12-03 14:23:50 +01:00
Jonatan Kłosko 0b6acb9d34
Hide reconnect runtime button once reconnected (#731) 2021-12-03 14:03:06 +01:00
Jonatan Kłosko 5eb0cf2517 Update changelog 2021-12-02 18:25:47 +01:00
jonatanklosko 8a80c6683d Update assets 2021-12-02 15:46:37 +00:00
Jonatan Kłosko 264d6c3ff2
Add support for controls output type (#710)
* Add support for controls output type

* Split controls into individual widgets

* Adjust ids

* Improve widget and controls garbage collection

* Allow arbitrary functions as object release hook

* Add type to button and input events

* Add keyboard status event

* Change release hooks into monitor messages

* Rename pointer to reference and return an error on bad monitor
2021-12-02 16:45:00 +01:00
Alex Reichert 236ea4dd96
Fix typo in drag_and_drop directory name (#723)
* Fix typo in drag_and_drop directory name

* Fix import
2021-12-01 19:44:42 +01:00
Alexandre de Souza 79d6a9e6a2
Rename restart runtime to reconnect (#721)
* Rename restart runtime to reconnect

* Update lib/livebook_web/live/output.ex

Co-authored-by: José Valim <jose.valim@gmail.com>
2021-12-01 17:21:49 +01:00
jonatanklosko bfb9dc371e Update assets 2021-11-25 17:45:38 +00:00
Jonatan Kłosko c2636b8220
Migrate inputs to Kino (#714)
* Migrate inputs to Kino

* Update lib/livebook/session/data.ex

Co-authored-by: José Valim <jose.valim@dashbit.co>

* Try parsing numbers as integers

* Garbage collect input values

* Adjust tests

* Remove unused variable

* Fix frame rendering

* Wrap inputs in border depending on its type

* Add textarea

* Reorder

* Update tests

Co-authored-by: José Valim <jose.valim@dashbit.co>
2021-11-25 18:43:42 +01:00
jonatanklosko b6ddf1883c Update assets 2021-11-18 17:48:24 +01:00
Jonatan Kłosko bfe2036d34 Fix headline blur on click and improve editor focus 2021-11-18 17:34:04 +01:00
jonatanklosko 551444ec76 Update assets 2021-11-16 20:58:38 +00:00
Jonatan Kłosko f64dd0ea90
Restructure j/k navigation to support headlines (#707)
* Accessibility fixes

* Restructure j/k navigation to support headlines

* Focus modal content when open

* Further focus adjustments

* Fix tests

* Remove unused functions
2021-11-16 21:57:10 +01:00
Jonatan Kłosko 4d92aeba2e
Support file scheme when importing from URL (#706)
* Add test

* Support file scheme when importing from URL
2021-11-12 15:49:22 +01:00
José Valim d78a3cf865
Include reason if we can't start Livebook, closes #703 (#705) 2021-11-12 14:36:02 +01:00
Jonatan Kłosko 9532348bce
Update the list of Ubuntu packages with necessary Erlang applications (#704) 2021-11-12 12:39:58 +01:00