Skip to content

Flyline history jsonl backend - #860

Open
HalFrgrd wants to merge 49 commits into
masterfrom
jsonl_history
Open

Flyline history jsonl backend#860
HalFrgrd wants to merge 49 commits into
masterfrom
jsonl_history

Conversation

@HalFrgrd

Copy link
Copy Markdown
Owner

No description provided.

@HalFrgrd HalFrgrd changed the title Flyline histoyr backend Flyline history jsonl backend Jul 30, 2026
Comment thread src/history.rs
/// Refreshes history entries incrementally from the active backend.
///
/// When using `HistoryBackend::Flyline`, queries ~/.local/share/flyline/history.jsonl.
/// When using `HistoryBackend::Atuin`, queries the Atuin database for new entries.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

get rid of atuin history bakcend

Comment thread src/history.rs Outdated
Comment on lines +700 to +707
} else {
let memory_entries = Self::parse_bash_history_from_memory();
if memory_entries.len() > self.entries.len() {
for entry in memory_entries.into_iter().skip(self.entries.len()) {
Self::push_deduped_entry(&mut self.entries, entry);
}
self.index = self.entries.len();
self.fuzzy_search.clear_cache();

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

dont do anything for the bash backend

Comment thread src/lib.rs Outdated
&self.settings.session_id,
self.settings.history_manager.entries(),
);
let duration_ms = start_time.elapsed().as_millis() as u64;

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

store duration in nanos

Comment thread README.md Outdated
Comment on lines +474 to +480
## Atuin integration
Flyline ships with atuin support built in.
This allows for cross shell instance syncing.
TODO: more here.
```bash
flyline history --backend atuin
```

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

explain key points here about Flyline jsonl backend

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.

1 participant