Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange session path display #24

Open
desilinguist opened this issue Mar 12, 2022 · 3 comments
Open

Strange session path display #24

desilinguist opened this issue Mar 12, 2022 · 3 comments

Comments

@desilinguist
Copy link

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
Copy link

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
Copy link
Author

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

image

@rmagatti
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants