Skip to content

Workspace filter shows incorrect relative paths (includes workspace directory as prefix) #337

@t0w2

Description

@t0w2

Description:

• Plugin: nvim-telescope/telescope-frecency.nvim
• When using workspace=CWD filter, path display includes the workspace directory name as a prefix
• Paths appear relative to the parent of the workspace instead of relative to the workspace root

Example:

• Workspace: /home/user/project/ (nvim started here)
• Current directory: /home/user/project/src/
• File: /home/user/project/src/file.lua
• Expected display: src/file.lua (relative to workspace root)
• Actual display: project/src/file.lua (includes workspace name)

Expected behavior:

• Paths should be relative to the workspace root (CWD when using CWD filter)
• Should not include the workspace directory name as a prefix

Steps to reproduce:

• Start nvim in project directory: cd /home/user/project && nvim
• Navigate to a subdirectory: cd src
• Run :Telescope frecency workspace=CWD
• Observe path display shows project/src/file.lua instead of src/file.lua

Suggestion: Fix workspace path display to be relative to workspace root, not include workspace directory name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions