rmagatti / session-lens

A session-switcher extension for rmagatti/auto-session using Telescope.nvim
MIT License
227 stars 13 forks source link

Strange session path display #24

Open desilinguist opened 2 years ago

desilinguist commented 2 years ago

This plugin is a life-saver and I love it! However, the paths it displays in the session-lens window are a little strange. For some reason, it shows .//Users/... as the prefix instead of just /Users/.... Please see attached screenshot.

Screen Shot 2022-03-12 at 1 57 29 PM

I am on macOS 12.2, neovim 0.6.0 stable. I did try to search for similar issues but didn't find anything. If this has been previously discussed and resolved, I apologize in advance.

chriztheanvill commented 2 years ago

In your config:

    require('session-lens').setup({
        -- path_display = { 'shorten' }, <-- Disable this or delete it.
        theme_conf = { border = true },
        previewer = true,
        prompt_title = 'Sessions',
    })
desilinguist commented 2 years ago

That seems to make no difference. Please see attached screenshot. I still see the weird .// at the beginning of every entry.

image
rmagatti commented 2 years ago

Hey sorry about the wait! I actually didn't have the right notification settings for this repo! 🤦 @bradleybauer submitted a few issues about display on Windows, this plugin (probably regrettably) uses auto-session's unescape_dir function for display purposes, I think that's part of what's causing some weirdness here but also I'd have to find an optimal display parsing to use, since as per this observation there seems to also be a difference depending on what finder Telescope ends up using.