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

QUESTION: open relative path #1561

Open
LeonB opened this issue Sep 16, 2024 · 1 comment · May be fixed by #1634
Open

QUESTION: open relative path #1561

LeonB opened this issue Sep 16, 2024 · 1 comment · May be fixed by #1634

Comments

@LeonB
Copy link

LeonB commented Sep 16, 2024

When using the 'open' command the absolute path of the selected file will be opened. Is it possible to configure/customize this behaviour so the relative path to the cwd is used?

@vsajko
Copy link

vsajko commented Dec 18, 2024

file_opened event is a one way to solve problem

      event_handlers = {
        {
          event = "file_opened",
          handler = function(file_path)
            vim.cmd("cd .")
          end
        },
      }

@epheien epheien linked a pull request Dec 30, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants