joshmedeski / sesh

Smart session manager for the terminal
MIT License
417 stars 17 forks source link

Custom DB #37

Closed joshmedeski closed 4 months ago

joshmedeski commented 5 months ago

As a user, I want a custom database optimized for sesh, so I can use more complex features and tweak sesh to my needs.

Zoxide is great in principle, but it's not optimized for sesh. It's optimized for zoxide. I want to be able to use sesh to its full potential, and that means a custom database.

Here are some ideas:

  1. Use sqlite to support more complex features
  2. Store a folder's path, session name, and score in the database, so it doesn't have to be calculated every time
  3. Allow for grouping of sessions by metadata
  4. Customizing the scoring algorithm to better fit how sesh is used
  5. Avoid having to cd into a folder to add it to the database (or add a sesh add command?)

I'm sure the community will have other ideas as well, but I think the flexibliity and power of a custom database will be a huge step forward for sesh.

AgusDOLARD commented 5 months ago

are you planning to deprecate zoxide in the future?

joshmedeski commented 5 months ago

That would be the goal if I move forward with this issue, for now it's a wishlist item.

AgusDOLARD commented 5 months ago

i’m working on it

joshmedeski commented 5 months ago

Start with the basics, I don't want you to spend a long time in development only for us to not merge it. So let's break down the most basic way of swapping this in optionally (as a session.list source for now)

joshmedeski commented 4 months ago

Based off experimentation we are going to abandon this feature right now.