diff options
| author | Ellie Huxtable <ellie@elliehuxtable.com> | 2024-05-14 12:16:04 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-14 12:16:04 +0700 |
| commit | 34265613b80d1d2249d276da5fcd5e4c274af357 (patch) | |
| tree | 0993650d0a8475f37dfdb8ead5491ee5d196f00e /ui/src/pages | |
| parent | fix: alias enable/enabled in settings (#2021) (diff) | |
| download | atuin-34265613b80d1d2249d276da5fcd5e4c274af357.zip | |
feat(ui): add history explore (#2022)
* break out HistoryRow, add drawer
* syntax highlighting!
* smaller text
* allow inspecting all old commands, no drag command
* fix query bug
* add loader
Diffstat (limited to 'ui/src/pages')
| -rw-r--r-- | ui/src/pages/Dotfiles.tsx | 10 | ||||
| -rw-r--r-- | ui/src/pages/History.tsx | 1 |
2 files changed, 5 insertions, 6 deletions
diff --git a/ui/src/pages/Dotfiles.tsx b/ui/src/pages/Dotfiles.tsx index 29b6b54a..43ecfa2a 100644 --- a/ui/src/pages/Dotfiles.tsx +++ b/ui/src/pages/Dotfiles.tsx @@ -5,7 +5,7 @@ import Vars from "@/components/dotfiles/Vars"; enum Section { Aliases, Vars, - Scripts, + Snippets, } function renderDotfiles(current: Section) { @@ -14,7 +14,7 @@ function renderDotfiles(current: Section) { return <Aliases />; case Section.Vars: return <Vars />; - case Section.Scripts: + case Section.Snippets: return <div />; } } @@ -60,9 +60,9 @@ function Tabs({ current, setCurrent }: TabsProps) { section: Section.Vars, }, { - name: "Scripts", - isCurrent: () => current === Section.Scripts, - section: Section.Scripts, + name: "Snippets", + isCurrent: () => current === Section.Snippets, + section: Section.Snippets, }, ]; diff --git a/ui/src/pages/History.tsx b/ui/src/pages/History.tsx index 6eaa6f67..34ad93c2 100644 --- a/ui/src/pages/History.tsx +++ b/ui/src/pages/History.tsx @@ -5,7 +5,6 @@ import HistoryList from "@/components/HistoryList.tsx"; import HistorySearch from "@/components/HistorySearch.tsx"; import Stats from "@/components/history/Stats.tsx"; import Drawer from "@/components/Drawer.tsx"; -import InfiniteHistory from "@/components/InfiniteHistory.tsx"; import { useStore } from "@/state/store"; |
