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

Being able jump back/forth between the directories like vim-jump. #151

Open
rickgrammer opened this issue Jun 10, 2022 · 10 comments
Open

Being able jump back/forth between the directories like vim-jump. #151

rickgrammer opened this issue Jun 10, 2022 · 10 comments
Labels
enhancement New feature or request

Comments

@rickgrammer
Copy link

rickgrammer commented Jun 10, 2022

Is your feature request related to a problem? Please describe.
User should be able to hop back and forth between the directories similar to how the vim-jumps work. Just replacing the jump-marks with directory paths.

Describe the solution you'd like
I think it'd be intuitive to press <C-o> to hop to a parent directory, <C-i> to hop into the directory you came from.
Just imagine vim-jumps but jumping directories.

@rickgrammer rickgrammer added the enhancement New feature or request label Jun 10, 2022
@rickgrammer
Copy link
Author

Unrelated comment:
@fdschmidt93 Is there a way to make showing hidden files default?

@fdschmidt93
Copy link
Member

require("telescope").setup {
  extensions = {
    file_browser = {
      hidden = true
    },
  },
}

@fdschmidt93
Copy link
Member

fdschmidt93 commented Jun 10, 2022

C-i

Side comment: most terminal emulators interpret C-i as tab for historical reasons. Just try it in insert mode -- chances are it produces a tab.

Just replacing the jump-marks with directory paths.

We really shouldn't hook into jumplist here -- more complex and interferes with neovim otherwise. But I guess that's not necessarily what you meant.

I think it'd be intuitive to press to hop to a parent directory

This already exists and is mapped by default to C-g in insert mode and g in normal mode. You can access the action via require 'telescope'.extensions.file_browser.actions.goto_parent_dir and remap as per README of file browser or telescope (above setup -> extensions -> file_browser -> mappings in lua table structure).

hop into the directory you came from

The request feature should be relatively simple to implement. Would you be happy to take a crack at this?

@rickgrammer
Copy link
Author

@fdschmidt93 Not so well-versed with lua. I'll update this thread probably in the next 2 weeks if I did work on it.

@rickgrammer rickgrammer closed this as not planned Won't fix, can't repro, duplicate, stale Jun 20, 2022
@fdschmidt93
Copy link
Member

No harm in keeping this open. Mid July I should have more time again and it should be relatively straightforward for me to do.

@fdschmidt93 fdschmidt93 reopened this Jun 20, 2022
@uloco
Copy link

uloco commented Nov 10, 2022

I just want the directory i came from to be selected and not . when I jump up a directory. Is this related to this issue? It would probably solve it in a more visible way.
This is bugging me a lot and if you guys don't have any time doing this I might give it a try. Would need some help in pointing in the right direction I guess.

@fdschmidt93
Copy link
Member

fdschmidt93 commented Nov 10, 2022

Related, but not quite the same. What you are looking for is being worked on though.

Relevant PR: #193

Original comment in issue: #104 (comment)

@iHeadway
Copy link

require("telescope").setup {
  extensions = {
    file_browser = {
      hidden = true
    },
  },
}

Sorry for unrelated bump but this didn't help me. And Telescope, Oil.nvim and netrw see such folders without problems.

@jamestrew
Copy link
Collaborator

@iHeadway try <C-h>/h to toggle hidden files and see if that does anything. probably want to open a new issue with steps to reproduce using a minimal config if you're still experiencing issues.

@akoskm
Copy link

akoskm commented Mar 22, 2024

@fdschmidt93 I'd like to take a stab at this. I have no Lua experience, but if you give me a rough idea, I could create a prototype that I can test locally.

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

No branches or pull requests

6 participants