stevearc / resession.nvim

A replacement for mksession with a better API
MIT License
175 stars 13 forks source link

`Feature request`: Option to hide session name #26

Closed Zeioth closed 10 months ago

Zeioth commented 10 months ago

Did you check the docs and existing issues?

Neovim version (nvim -v)

0.9.1

Operating system/version

arch

Describe the bug

For users who prefer managing sessions based on directory, displaying the session name is redundant.

Current behavior

Load session display session items as _my_dir_name [~/dir/name]

screenshot_2023-09-09_14-22-26_323908032

Desired behavior

An option to display just the right part

~/dir/name

Why

Steps To Reproduce

x

Expected Behavior

x

Directory structure

x

Repro

x

Did you check the bug with a clean config?

Zeioth commented 10 months ago

This PR is ready on my machine. I will ship both when I finish #25

screenshot_2023-09-09_18-32-14_319943816

The PR is gonna offer the the new option load_list_style that accept the value default, default_numbered, dir, dir_numbered.

The one in the screenshot is dir_numbered.