Skip to content

Shell ring buffer #244

Closed
Closed

Description

@sophiajt

What if we had multiple shells you could switch between, which would maintain the state (current working directory, etc) in each. The shells would form a ring buffer you could switch between.

Adding a new shell to the ring buffer

enter /my/project/directory

This would add a new shell to the ring buffer that begins in /my/project/directory.

Switching between shells

prev and next could switch between the current shell and the previous/next shell in the ring buffer

Possible: non-shell shells

Previously, we have an enter command that allowed you to enter into the contents of a table/object and cd/ls around inside of it. We could revisit being able to do so as part of this. Note that there is design investigation around how this piece would interact with the other commands and how mutation is handled (if at all).

Leaving the shell

exit would let us quite out of the current shell in the buffer. Alternatively, leave would leave the current shell, and exit would quite nu, but would ask "are you sure?" if there were multiple active shells on the ring.

(idea from @androbtech / @jonathandturner)

Activity

  1. sophiajt commented on Aug 10, 2019

    @sophiajt
    ContributorAuthor

    This is now available in nightly

  2. added a commit that references this issue on Feb 7, 2022
  3. added a commit that references this issue on Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions