Skip to content

[Bug]: Atuin doesn't ignore commands starting with a space on Xonsh #2958

@Matthieu-LAURENT39

Description

@Matthieu-LAURENT39

What did you expect to happen?

Executing a command with a leading space (like echo test) should result in it not appearing in history.

What happened?

When running the command in Xonsh, it does appear in history, without the leading space.

Atuin doctor output

{
  "atuin": {
    "version": "18.8.0",
    "sync": {
      "cloud": true,
      "records": true,
      "auto_sync": true,
      "last_sync": "2025-10-21 16:05:01.148979717 +00:00:00"
    },
    "sqlite_version": "3.46.0"
  },
  "shell": {
    "name": "xonsh",
    "default": "bash",
    "plugins": [
      "atuin"
    ],
    "preexec": "built-in"
  },
  "system": {
    // Redacted, shouldn't be relevant for this issue
  }
}

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions