Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support editing data cells #6

Merged
merged 42 commits into from
Aug 26, 2023
Merged

support editing data cells #6

merged 42 commits into from
Aug 26, 2023

Conversation

amtoine
Copy link
Owner

@amtoine amtoine commented Aug 22, 2023

  • add $.editor to the config which has the following type
record<
    frame: record<background: color, foreground: color>,
    buffer: record<background: color, foreground: color>
>
  • allow editing string cells in the data
  • show errors on the screen, e.g. when trying to edit a non-string cells
  • add / move Nushell-related functions to src/nu/

this should allow to edit the text in the editor buffer.
this commit also returns an "error" when edit is launched on
non-string values.
this test cannot run for now because non-string editing
is not allowed.
this will make later debugging / improving `mutate_value_cell` a
lot easier.
this allows to stay at the same place when confirming an edition.
@amtoine amtoine marked this pull request as ready for review August 26, 2023 17:26
@amtoine amtoine merged commit 98e66fb into main Aug 26, 2023
4 checks passed
@amtoine amtoine deleted the edition branch August 26, 2023 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant