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

[Feature Request] go pass directories that contains only one single subdirectory #428

Closed
1 task done
Ziqi-Yang opened this issue Dec 4, 2023 · 7 comments
Closed
1 task done
Labels
feature New feature request

Comments

@Ziqi-Yang
Copy link

Ziqi-Yang commented Dec 4, 2023

Is your feature request related to a problem? Please describe

In a common java project, there are empty folders servers as package name specifier. For example:

.
└── src
    ├── main
    │   ├── java
    │   │   └── xxx
    │   │       └── yyy
    │   │           └── zzz
    │   │               └── tasm
    │   │                   ├── accounts
    │   │                   │   ├── model
    │   │                   │   ├── repos
    │   │                   │   └── service
    │   │                   ├── application
    │   │                   ├── config
    │   │                   ├── utils
    │   │                   └── websecurity
    │   └── resources
    │       ├── static
    │       └── templates
    └── test
        └── java
            └── bdic
                └── comp3013j
                    └── group1
                        └── tasm
                            └── utils

It would be nice if I can navigate directly from ./src/main/java directory to ./src/main/java/comp3013j/xxx/yyy/zzz/tasm directory.

Will you be willing to contribute this feature?

  • Yes, I'll give it a shot

Describe the solution you'd like

If a directory only contains one sub-directory, then the ending of its name line can display a simple like ->, which notifys me that I can go directly into the destination directory using a special keybinding like L. By pressing L, I go directly into the destination folder.

Describe alternatives you've considered

No response

Additional context

No response

@Ziqi-Yang Ziqi-Yang added the feature New feature request label Dec 4, 2023
@Ziqi-Yang Ziqi-Yang changed the title [Feature Request] go pass directories that contains only one single subdirectories [Feature Request] go pass directories that contains only one single subdirectory Dec 4, 2023
@sxyazi
Copy link
Owner

sxyazi commented Dec 5, 2023

Would you like to implement it as a Lua plugin once Yazi's plugin system is ready?

@Ziqi-Yang
Copy link
Author

Yes, I'd like to. Keep going on great work!

@Rolv-Apneseth
Copy link
Contributor

@Ziqi-Yang would you still like to give this a go? I'd be interested in that plugin. All good if you don't though, I could have a go myself

@Ziqi-Yang
Copy link
Author

@Rolv-Apneseth You are welcome to take this on! At the moment, my schedule is quite packed, and since I'm not working with java this semester, my enthusiasm for developing this plugin has diminished somewhat.

@Rolv-Apneseth
Copy link
Contributor

All good. I use stow for dotfiles so do still have a good use case for this. I'll investigate when I get some free time

@Rolv-Apneseth
Copy link
Contributor

Plugin for this here: https://github.com/Rolv-Apneseth/bypass.yazi

Not ideal at the moment as I'm just using a sleep statement to wait for directories to finish loading, but works well enough for me

Copy link

I'm going to lock this issue because it has been closed for 30 days. ⏳
This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

3 participants