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

[Bug]: Incompatibility with oh-my-zsh plugin per-directory-history #1892

Open
1 task done
sysadmind opened this issue Mar 18, 2024 · 0 comments
Open
1 task done

[Bug]: Incompatibility with oh-my-zsh plugin per-directory-history #1892

sysadmind opened this issue Mar 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sysadmind
Copy link

What did you expect to happen?

After running commands, I expect to see them listed in atuin history list, atuin search and ctrl+r.

What happened?

I installed Atuin via the shell script and ran atuin import auto to import my zsh history. This worked as expected and I can see all of my previous commands in history. ctrl+r, atuin history, and atuin search all show my history from zsh. The next command that I run does not show up in ctrl+r or atuin search. It apears that atuin history list shows an entry, but the command is just empty. It shows the time of the command and how long it took to run, but no command. ctrl+r seems to know how long ago my last command was run, but it seems to lump all these "empty" commands together.

➜  ~ atuin history list | tail -n 10
2024-03-18 14:22:11		1s
2024-03-18 14:23:08		8ms
2024-03-18 14:23:12		13ms
2024-03-18 14:23:29		60ms
2024-03-18 14:23:52		893ms
2024-03-18 14:24:17		19ms
2024-03-18 14:27:41		16ms
2024-03-18 14:27:43		7ms
2024-03-18 14:27:46		115ms
2024-03-18 14:29:30		0s

I am using https://github.com/ohmyzsh/ohmyzsh with the plugin https://github.com/jimhester/per-directory-history. This has always enabled me to limit my up arrow and ctrl+r to commands that I have executed in the current directory. After disabling the plugin, atuin search, atuin history list, and ctrl+r all seem to work as expected.

I notice that atuin does have a local directory search option if you use ctrl+r several times to cycle the context. It would be cool if the history import understood the per-directory-history to fill that information in to Atuin's internal storage. I have not looked into if it's possible, but I would also like to default to the local directory search via ctrl+r.

I'm happy to provide any more details to help with investigation. I understand that compatibility with the per-directory-history plugin may not be something that Atuin is interested in supporting.

Atuin doctor output

Atuin Doctor
Checking for diagnostics


Please include the output below with any bug reports or issues

atuin:
  version: 18.1.0
  sync: null
shell:
  name: zsh
  plugins:
  - atuin
system:
  os: Ubuntu
  arch: x86_64
  version: '22.04'
  disks:
  - name: /dev/mapper/vgubuntu-root
    filesystem: ext4
  - name: /dev/mapper/vgubuntu-root
    filesystem: ext4
  - name: /dev/nvme0n1p3
    filesystem: ext4
  - name: /dev/nvme0n1p2
    filesystem: vfat

Code of Conduct

  • I agree to follow this project's Code of Conduct
@sysadmind sysadmind added the bug Something isn't working label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant