nguyenngoclongdev / vs-terminal-keeper

Easily save and recall previous terminal sessions, create new sessions, and edit or delete existing ones.
https://marketplace.visualstudio.com/items?itemName=nguyenngoclong.terminal-keeper
MIT License
18 stars 2 forks source link

VS Code global configuration, instead of configuration file per project #14

Closed pauloendoh closed 1 month ago

pauloendoh commented 3 months ago

Please describe feature/problem details and solution you'd like. I don't want to have a sessions.json file in each of my projects just to set up my terminals, specially for work related projects. Would it be possible to attach these configurations to the user settings (JSON) instead?

Describe alternatives you've considered Terminal keeper adds commands to the command palette, but does not add any configurable settings in the user settings JSON.

johurul-haque commented 3 months ago

I would love to see this. I want to add some suggestions:

nguyenngoclongdev commented 3 months ago

@johurul-haque Thank you for the excellent suggestions. I appreciate you taking the time to provide this constructive feedback. I will work on reviewing and releasing an update with these improvements soon. Please let me know if you have any other suggestions.

nguyenngoclongdev commented 1 month ago

@pauloendoh @johurul-haque

In the latest update (v1.1.23), we’ve introduced the ability to set some information in the VSCode settings, such as:

{
  "terminal-keeper.active": "default",
  "terminal-keeper.theme": "chaos",
  "terminal-keeper.noClear": false,
  "terminal-keeper.keepExistingTerminals": false,
  "terminal-keeper.activateOnStartup": false
}

However, we’ve decided to keep the sessions.json file because the terminal setting information can be quite large and complex. Additionally, having a separate file allows us to validate the content and support code suggestions based on the JSON schema. Therefore, we believe it’s better to have a dedicated place for this information.

We hope this answers your questions! Thank you!