Commit Graph

96 Commits

Author SHA1 Message Date
Remo Senekowitsch
9fa223eaaf
chore(build): compile protobufs with protox (#2122)
* chore(build): compile protobufs with protox

protox is a pure-rust implementation of the protobuf compiler.
Therefore, it can be managed by cargo.

This removes the implicit dependency on protoc being available
in the environment for the build.

* fix(build): replace copypasta in build script

The paths passed to `compile` aren't actually used by the build.
`skip_protoc_run` prevents that.
That's why a clean build succeeds even with this mistake.

However, the paths are passed to a `cargo:rerun-if-changed` directive.
So this mistake would've caused a failed incremental build if the
protobuf definitions were changed.
2024-06-12 16:45:38 +01:00
YummyOreo
ce67e52772
feat(daemon): add support for daemon on windows (#2014)
* fix: gracefully exit on windows

* feat(daemon): tcp support for windows

* feat(daemon): add tcp port configuration

* fix: logging and fix compiler error

* docs: add build dependency to the readme

fix(docs): move a line up

* fix: missing field error

* docs: adds the daemon section to the default config

* fix: clippy and fmt

* feat: Update README.md

Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>

* refactor: changes tcp port and other stuff as per request

* fix(config): update default tcp port in example config

* fix: complier error on unix

* refactor: make the cfg stuff look better

---------

Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
2024-05-13 09:35:34 +07:00
Richard de Boer
78c6a6a7f0
docs: fix "From source" cd command (#1973)
`atuin` was moved into the `crates/` directory in 95cc4720
2024-04-22 15:46:51 +01:00
Koichi Murase
05becf9255
docs(bash-preexec): describe the limitation of missing commands (#1937) 2024-04-09 12:41:31 +01:00
David Legrand
3f80a9fca4
docs: add install instructions for cave/exherbo linux in README.md (#1927) 2024-04-08 13:12:37 +01:00
Ellie Huxtable
3e2e7292c0
docs: add security contact (#1867) 2024-03-12 17:30:51 +00:00
Koichi Murase
e2f080ccff
docs(README): clarify prerequisites for Bash (#1686)
* docs(README): clarify prerequisites for Bash

https://github.com/atuinsh/atuin/discussions/1683

* docs(README): fix grammar
2024-02-08 14:16:19 +00:00
Matthieu LAURENT
c56f8ff736
Add xonsh support (#1375)
* Add basic xonsh support

* Add init xonsh command

* Add Xonsh install instructions in docs

* Add xonsh ctrl-R search

* update xonsh script and instructions

Summary of changes:
* Added duration to postcommand hook
* Switched main search operation to use `subproccess.run()` rather than running as an xonsh shell command - this a) allows us to capture stderr without needing a temporary file and b) avoids a weird broken-buffer state that results from running a fullscreen TUI and then programmatically editing the buffer
* Added support for immediately executing chosen command via `__atuin_accept__:` (like bash/zsh/fish)

* strip newline from command before sending to atuin

* Add basic xonsh support

* Add init xonsh command

* Add xonsh ctrl-R search

* Remove advanced-install guide (was accidentally re-added during rebase)

* Clean up

Xonsh doesn't import private functions into the local namespace when sourcing a file

* Add xonsh ro readme

* Respect ATUIN_NOBIND

* Format with black, and improve PEP8 compliance

* Add up search

* Format rust code

---------

Co-authored-by: Joseph Montanaro <jfmonty2@gmail.com>
2024-01-29 12:17:36 +00:00
Koichi Murase
a7bed61461
fix(bash): work around bash < 4 and introduce initialization guards (#1533)
* fix(bash): add a guard for interactive shells

* fix(bash): add a guard for the Bash version

* fix(bash): localize READLINE_LINE in bash < 4

In bash < 4, the variables READLINE_LINE and READLINE_POINT are not
supported for the shell commands called by `bind -x`.  Even if it is
not supported, atuin works in not a bad way.  However, this sometimes
causes a strange behavior by the remaining values of READLINE_LINE set
in the previous calls of __atuin_history.  In bash < 4, we can
consistently use an empty string instead of $READLINE_LINE, and the
changes to READLINE_LINE and READLINE_POINT should be localized within
the function.

* fix(bash): add guard for double initialization

In bash, it is customary to reload the settings by sourcing `.bashrc`
again after modifying it.  In such a case, `eval "$(atuin init bash)"`
is executed again.  This registers duplicate hooks to
`preexec_functions` and `precmd_functions`.  To prevent this in this
patch, we introduce an include guard, so that the initialization is
not performed more than once.
2024-01-10 14:11:12 +00:00
Mike Tsao
803b2fed5c
docs: Improve style (#1537)
"backup" is a noun. "back up" is a verb.
2024-01-10 08:22:35 +00:00
Ellie Huxtable
d1fc843db3
docs: clarify enter/tab usage (#1538) 2024-01-10 08:18:47 +00:00
Azzam S.A
3a0e070e74
docs: fix Destination file already exists in Nushell (#1530)
It is a common practice to use `-f` in Nushell configurations to avoid
`Destination file already exists` error.
2024-01-09 16:37:57 +00:00
Ellie Huxtable
af51485767
docs: remove activity graph 2024-01-09 11:53:51 +00:00
Marcin Puc
d303d68010
docs(readme): add repology badge (#1494) 2024-01-03 16:41:25 +00:00
Ellie Huxtable
7053823e7f
docs: remove stray character from README 2024-01-01 20:07:12 +00:00
Ellie Huxtable
9d4fdf71d0
fix(docs): discord link expired 2023-12-31 19:14:24 +00:00
Koichi Murase
a4122f062a
fix(bash): improve the support for enter_accept with ble.sh (#1465)
* feat(bash): check version of ble.sh

blehooks are only supported in ble.sh >= 0.4, so we require the ble.sh
version to be larger or equal to 0.4.  We also describe the version
requirement in README.md.

* fix(bash): use ble.sh's contrib/integration/bash-preexec

ble.sh provides module "contrib/integration/bash-preexec", which can
be used with the same interface as bash-preexec.  This module provides
"preexec_functions" and "precmd_functions" without requiring
bash-preexec.

This module also properly handles it when both ble.sh and bash-preexec
are loaded; the module resolves the conflicts between ble.sh and
bash-preexec, and the module also tries to support bash-preexec in the
detached state of ble.sh.

* fix(bash): use ble.sh's accept-line widget for enter_accept

In ble.sh, one can directly call the widget "accept-line" from a shell
script.  The widget "accept-line" is the actual widget that reserves
the command execution in ble.sh, so calling "accept-line" is
equivalent to the normal execution.  It includes all the necessary
adjustments and processing including stty and history.

In addition, the command will be executed at the top-level context
instead in a function scope.  For example, without ble.sh, running
"declare -A dict=()" through enter_accept will create an associative
array in the function scope unexpectedly.  With ble.sh, since the
command is executed at the top-level context, such a problem does not
happen.

When ble.sh is in a detached state, we fall back to the manual
execution of the command.  In this case, we cannot assume the
existence of the shell function "__bp_set_ret_value", so we always use
__atuin_set_ret_value.
2023-12-28 20:08:45 +00:00
Ellie Huxtable
d58192ff55
docs(readme): use picture element for logo 2023-12-16 09:23:31 +00:00
Ellie Huxtable
206157dd23
docs(readme): fix light/dark mode logo 2023-12-16 09:20:57 +00:00
Ellie Huxtable
1d0f05b6fb
docs: add fish install script (#1447) 2023-12-14 08:19:51 +00:00
Marcin Puc
a973697724
docs: add Void Linux install instruction (#1445)
* docs(readme): add Void Linux install instruction

* docs: add Void Linux install instruction to advanced-install.md
2023-12-14 08:19:42 +00:00
Ellie Huxtable
57b5b03c11
docs: align setup links in docs and readme (#1446) 2023-12-14 08:04:54 +00:00
Ellie Huxtable
2d922d4069
docs: add link to forum 2023-12-12 23:42:14 +00:00
Ellie Huxtable
8a3834f9c8
docs(readme): add actuated linkback
Thanks again for the sponsorship @alexellis

ref: https://docs.actuated.dev/faq/#is-there-a-sponsored-subscription-for-open-source-projects
2023-12-12 15:33:19 +00:00
Ellie Huxtable
7019697fae
Update README.md logo height 2023-12-12 09:43:22 +00:00
Ellie Huxtable
c77b749e62
Update README.md logo 2023-12-12 09:42:49 +00:00
Ellie Huxtable
913c5a0d94
chore(readme): add contributor image to README (#1430) 2023-12-10 11:13:43 +00:00
Patrick Jackson
31653ed996
Bash enter_accept best effort fixes (#1384)
* fix(bash): Rewrite the enter_accept integration

* docs(bash): Update bash installation instructions with warnings
2023-11-10 23:58:05 +00:00
Ellie Huxtable
df7430f0bf
Remove fig from README (#1197) 2023-08-28 23:19:08 +01:00
Edward Loveall
0a3680f54c
Fix keybinding link in README (#1173) 2023-08-17 20:42:57 +00:00
Ellie Huxtable
1fb7caa2d6
Move all references to the old repo (#1132)
The repo now lives on an org! Move all references to the old path.
2023-07-30 23:08:00 +01:00
éclairevoyant
f8585e6109
Update Arch Linux links in README (#1016) 2023-05-30 09:49:00 +00:00
Conrad Ludgate
7d5a82df14
validate usernames on registration (#982)
improve login password incorrect error message

update docs for registration with passwords
2023-05-16 22:03:53 +01:00
Ellie Huxtable
dc523416f6
Include bash preexec warning (#983) 2023-05-16 21:58:05 +01:00
Aleks Bunin
1bdb470f69
Update README.md: Disable update check for offline mode (#960) 2023-05-09 11:18:04 +00:00
Richard de Boer
a38fc6e898
docs: fix "From source" cd command (#937)
Cloning does not automatically cd to the new directory,
and we need to cd to "atuin" *inside* the cloned repository.
2023-05-06 14:35:24 +00:00
Qiming Xu
b2fb5e6604
docs: Fix broken links in README.md (#920) 2023-05-02 02:43:30 +00:00
Robin Millette
50e2770f37
Fix fig plugin link (#924) 2023-04-28 13:25:04 +00:00
Ellie Huxtable
4e4fdb9f8e
Release Atuin v14 (#836)
* Bump versions

* Write release notes

* add link
2023-04-01 18:17:38 +01:00
Ellie Huxtable
4325ec4624
Update README.md 2023-03-26 15:44:31 +01:00
Steven Xu
a7cb21a51b
feat: add *Nushell* support (#788)
* feat: add *Nushell* support

* refactor: use `sh` to swap `STDOUT` and `STDERR` instead of using a temporary file

* feat: include both keybindings, with the current REPL buffer passed to *Atuin*'s

* feat: don't record commands run by keybindings
2023-03-26 15:44:06 +01:00
Krithic Kumar
9e05d747ea
docs(README): fix activity graph link (#753) 2023-03-02 22:52:37 +00:00
Ellie Huxtable
3e90031c0e Add verification 2023-02-28 22:29:34 +00:00
Ellie Huxtable
b40383fc90
Add Hachyderm links (#742) 2023-02-28 22:27:06 +00:00
Ellie Huxtable
c558da5beb
Add fancy web docs (#725)
* Add initial site

* WIP again

* Replace docs with web docs

* Bring back translations

* Update README.md

* remove images
2023-02-25 23:29:59 +00:00
Jamie Quigley
b2a0986ca6
Add nix files and install instructions (#477) 2023-02-15 09:04:07 +00:00
Eric Ripa
78b54662cd
docs(README): add static activity graph example (#680)
resolves ellie/atuin#678
2023-02-10 19:33:52 +00:00
Ellie Huxtable
936e51eb56
Update README.md (#704) 2023-02-10 09:08:42 +00:00
Martin Junghanns
4aa2011e0e
Fix CI build badge (#683)
see https://github.com/badges/shields/issues/8671

also, nice talk at FOSDEM :)
2023-02-05 16:56:09 +01:00
Jamie Quigley
a5616aea8f
Rework atuin init (#652)
* Rework `atuin init`

This allows users to disable the CTRL-R and Up Arrow bindings,
independently from one another

* Document --disable-{ctrl-r,up-arrow}

* Apply suggestions from code review

Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>

Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
2022-12-24 17:18:44 +00:00