Skip to content

feature request: add api to check if session with name exists #61

@Kamilcuk

Description

@Kamilcuk

Did you check existing requests?

  • I have searched the existing issues

Describe the feature

Would be great to have a require"resession".has(vim.fn.getcwd(), {dir = "dirsession"}) api for checking if a session named vim.fn.getcwd() exists. The list() is great, but the session name has replaced path separator and : by _, so there is nothing meaningful to do with list.

Alternatively, the function get_session_file could be exposed as public api.

Provide background

I am trying to check if session exists before loading it.

What is the significance of this feature?

nice to have

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1May get worked on if I get free time. PRs welcomeenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions