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

Help with importing from per-directory-history #2556

Open
TC72 opened this issue Jan 21, 2025 · 0 comments
Open

Help with importing from per-directory-history #2556

TC72 opened this issue Jan 21, 2025 · 0 comments

Comments

@TC72
Copy link

TC72 commented Jan 21, 2025

I've been using per-directory-history and I'd like to bring my history over to Atuin.

I have written some simple python to create a csv which looks like this:

cwd, timestamp, command
/Volumes/Users/tc,1675194859,nvim

What's the simplest way for me to import something like this into the Atuin database?

I've looked around and see #2431 explains after updating history.db you can use atuin history init-store to update records.db.
I could import a csv file into history.db using the TablePlus app on my mac but it wouldn't handle fields like id and session.
(I realise I'd also need to change the timestamp to nanoseconds)

It would be great if Atuin had a simple csv import/export built in. I think it'd make getting started easier. I also think people might be happier giving Atuin a try if they knew there was an easy way to get their history back if they needed to.

nvm, I see this gets very close to a csv export: atuin history list --format "{time},{duration},{command},{directory}"

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

No branches or pull requests

1 participant