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

Allow specifying relative DFS index for focus command #682

Closed
wants to merge 1 commit into from

Conversation

lynaghk
Copy link

@lynaghk lynaghk commented Nov 10, 2024

I also wanted dfs next/prev as discussed in #248.

I figured I could implement without adding additional flags or breaking backwards compatibility by having the parser look for an optional +/- suffix on the existing dfs-index argument. The next/previous behavior can be had via:

focus --dfs-index +1
focus --dfs-index -1

respectively.

As with my other PR, I haven't implemented any automated tests around this but would be happy to look into doing so if desired.

@nikitabobko
Copy link
Owner

Thanks for the idea, but I think it should be implemented as separate dfs-next|dfs-prev arguments as mentioned in the issue, feel free to submit a different PR

You also forgot to update the docs and shell completion

@nikitabobko nikitabobko added the pr-rejected Pull Request is rejected label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-rejected Pull Request is rejected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants