From ac90fdf602fde32504495aacbc2882f84e8bb561 Mon Sep 17 00:00:00 2001 From: Phil Weir Date: Sat, 3 Aug 2024 06:53:41 +0100 Subject: [PATCH 1/2] feat(ultracompact): adds setting for ultracompact mode --- src/content/docs/configuration/config.mdx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/content/docs/configuration/config.mdx b/src/content/docs/configuration/config.mdx index 0bdb41a..35791ad 100644 --- a/src/content/docs/configuration/config.mdx +++ b/src/content/docs/configuration/config.mdx @@ -252,6 +252,15 @@ Default: `true` Configure whether or not to show tabs for search and inspect. +### `auto_hide_height` +Atuin version: >= 18.4 + +Default: `8` + +Set Atuin to hide lines when a minimum number of rows is subceeded. This has no effect except +when `compact` style is being used (see `style` above), and currently applies to only the +interactive search and inspector. It can be turned off entirely by setting to `0`. + ### `exit_mode` Default: `return-original` From fc93cf891fe63f4dfe2eba77c34bf8dc1b265bdc Mon Sep 17 00:00:00 2001 From: Phil Weir Date: Sun, 29 Dec 2024 14:36:51 +0000 Subject: [PATCH 2/2] feat(inspector|themeing): update for atuin#2319 with theme and navigable inspector --- src/content/docs/configuration/key-binding.mdx | 3 +++ src/content/docs/guide/theming.mdx | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/src/content/docs/configuration/key-binding.mdx b/src/content/docs/configuration/key-binding.mdx index e2ad9ad..013b332 100644 --- a/src/content/docs/configuration/key-binding.mdx +++ b/src/content/docs/configuration/key-binding.mdx @@ -208,3 +208,6 @@ Open the inspector with ctrl-o | Esc | Close the inspector, returning to the shell | | ctrl+o | Close the inspector, returning to search view | | ctrl+d | Delete the inspected item from the history | +| ⬆ | Inspect the previous item in the history | +| ⬇ | Inspect the next item in the history | +| tab | Select current item and edit | diff --git a/src/content/docs/guide/theming.mdx b/src/content/docs/guide/theming.mdx index ad09712..2d3d3cd 100644 --- a/src/content/docs/guide/theming.mdx +++ b/src/content/docs/guide/theming.mdx @@ -22,6 +22,7 @@ Where `THEMENAME` is a known theme. The following themes are available out-of-th * default theme (can be explicitly referenced with an empty name `""`) * `autumn` theme * `marine` theme +* `(none)` theme (removes all styling) These are present to ensure users and developers can try out theming, but in general, you will need to download themes or make your own. @@ -102,6 +103,10 @@ where not all of the *Meanings* need to be explicitly defined. If they are absen then the color will be chosen from the parent theme, if one is defined, or if that key is missing in the `theme` block, from the default theme. +If the entire named theme is missing, which is inherently an error, then the theme +will drop to `(none)` and leave Atuin unstyled, rather than trying to fallback to +the any default, or other, theme. + This theme file should be moved to `~/.config/atuin/themes/my-theme.toml` and the following added to `~/.config/atuin/config.toml`: