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

fix: Neorg return to most recent file #1541

Merged
merged 1 commit into from
Jul 28, 2024

Conversation

benlubas
Copy link
Contributor

:Neorg return was bringing you to the first file you opened, this is not what the docs say, and also not intuitive.

Copy link
Member

@NTBBloodbath NTBBloodbath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch buddy :)

@boltlessengineer
Copy link
Contributor

You can use :enumerate() instead of ipair(…:totable())

for _, buffer in vim.iter(buffers):rev():enumerate() do

@benlubas benlubas force-pushed the push-klkwztowvyps branch from 9b1b25e to 063da5c Compare July 28, 2024 11:14
@benlubas
Copy link
Contributor Author

Even better, you can just iterate through vim.iter(list):rev() apparently

@NTBBloodbath NTBBloodbath merged commit e5e797e into nvim-neorg:main Jul 28, 2024
5 of 6 checks passed
@benlubas benlubas deleted the push-klkwztowvyps branch July 28, 2024 20:30
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 this pull request may close these issues.

3 participants