Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

next-file stops functioning when current file is deleted #511

Open
couleurm opened this issue Apr 16, 2023 · 1 comment
Open

next-file stops functioning when current file is deleted #511

couleurm opened this issue Apr 16, 2023 · 1 comment

Comments

@couleurm
Copy link

couleurm commented Apr 16, 2023

any insights?

PS: thank you for making uosc ❤️

@tomasklaen
Copy link
Owner

The way all file navigation works now is that it queries list of files in directory, finds the index of the current one, and selects next or previous one. If current can't be found, it'll return nil and nothing happens.

To fix this we should instead of finding current index return first file that is alphabetically before/after current path.

Nothing you can do yourself, this is a bug/oversight in current directory navigation logic. The best you can do is to use delete-file-next/prev commands instead.

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

2 participants