session-lens icon indicating copy to clipboard operation
session-lens copied to clipboard

Strange session path display

Open desilinguist opened this issue 4 years ago • 3 comments

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.

desilinguist avatar Mar 12 '22 19:03 desilinguist

In your config:

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

chriztheanvill avatar Apr 26 '22 00:04 chriztheanvill

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

image

desilinguist avatar Apr 26 '22 15:04 desilinguist

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.

rmagatti avatar Jun 29 '22 05:06 rmagatti