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

Persistent user sessions #124

Closed
sharkdp opened this issue Aug 20, 2017 · 3 comments
Closed

Persistent user sessions #124

sharkdp opened this issue Aug 20, 2017 · 3 comments

Comments

@sharkdp
Copy link
Owner

sharkdp commented Aug 20, 2017

Use cases:

  • A user often works with a certain set of variables/functions and wants to store them between sessions (and load them by default).
  • A user works on two different projects and uses different environments in each of them..
  • A user does not like the default variable names and wants to redefine some of them.

Possible design:

  • Add save and load commands. Both take an optional string argument (session name)
  • save foo saves the current session (all variables and user-defined functions); load foo restores that session (on top of the current environment?).
  • If no name is given, save stores the current session under a default name. On startup, this default session is re-loaded. Similarly, load retrieves the last-saved session.
@sharkdp sharkdp added the idea label Aug 20, 2017
@erlenstar
Copy link

++. I was about to file a suggestion to give insect a .rc file, but I like the persistent sessions idea even better!

@sharkdp sharkdp added this to the v5.1 milestone Dec 19, 2017
@sharkdp sharkdp removed this from the v5.1 milestone Jul 10, 2019
@triallax
Copy link
Contributor

I do think this is a nice idea, but for what it's worth the first and third use cases are satisfied by the .insectrc file added recently.

@sharkdp
Copy link
Owner Author

sharkdp commented Sep 26, 2023

I think this is now reasonable solved with Numbats customizations features: https://numbat.dev/doc/cli-customization.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants