Skip to content

feat(client): add config option keys.scroll_exits#1744

Merged
ellie merged 3 commits into
atuinsh:mainfrom
tessus:feature/scroll-exits
Feb 21, 2024
Merged

feat(client): add config option keys.scroll_exits#1744
ellie merged 3 commits into
atuinsh:mainfrom
tessus:feature/scroll-exits

Conversation

@tessus

@tessus tessus commented Feb 21, 2024

Copy link
Copy Markdown
Contributor

If the config option is set the false, using the up/down key won't exit the TUI when scrolled past the first/last entry.

Example:

[keys]
scroll_exits = false

The default is true, which is the current behavior.

/ref https://forum.atuin.sh/t/add-option-to-stop-down-arrow-exiting-search/94

fixes #922

Checks

  • I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle
  • I have checked that there are no existing pull requests for the same thing

If the config option is set the `false`, using the up/down key won't
exit the TUI when scrolled past the first/last entry.

Example:

```
[keys]
scroll_exits = false
```

The default is `true`, which is the current behavior.
@atuin-bot

Copy link
Copy Markdown

This pull request has been mentioned on Atuin Community. There might be relevant details there:

https://forum.atuin.sh/t/add-option-to-stop-down-arrow-exiting-search/94/9

@akinomyoga akinomyoga left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The config scroll_exists should also be mentioned in atuin-client/config.toml.

Comment thread atuin/src/command/client/search/interactive.rs Outdated
Helmut K. C. Tessarek and others added 2 commits February 21, 2024 00:12

@ellie ellie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thank you!

Could we also get an update to the docs please? https://github.com/atuinsh/docs

Seeing as this is your first time contributing, if you would like a holographic contributors-only Atuin sticker, then please fill out this form!

@ellie ellie merged commit 56b971a into atuinsh:main Feb 21, 2024
@tessus

This comment was marked as spam.

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.

Feature request: Make exit-on-down-arrow behavior optional

4 participants