Skip to content

Support sesh connect by hidden identifier separate from session name #281

@L3v3L

Description

@L3v3L

What would you like sesh to do?

Currently, I have many sesh connect commands scattered across aliases, scripts, and Neovim keymappings. The problem arises when I change a session’s name in my config I then need to update every reference to that session across my configurations.

It would be very helpful if sessions could also be assigned an identifier (id) in the sesh config that does not appear in sesh list, but can still be used with sesh connect. This would provide a stable reference point that doesn’t change when I rename a session.

Example:

Current usage:

[[session]]
name = "notebook"
path = "~/notebooks/main/"
startup_command = "nvim ."

sesh connect notebook


Proposed usage with identifier:

[[session]]
id = 3786
name = "notebook"
path = "~/notebooks/main/"
startup_command = "nvim ."

sesh connect --id=3786

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions