Commit Graph

543 Commits

Author SHA1 Message Date
dependabot[bot]
802a2258cb
Bump tokio from 1.5.0 to 1.6.0 (#132)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.5.0...tokio-1.6.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-17 19:46:10 +01:00
dependabot[bot]
4d52c5e872
Bump urlencoding from 1.3.1 to 1.3.3 (#133)
Bumps [urlencoding](https://github.com/kornelski/rust_urlencoding) from 1.3.1 to 1.3.3.
- [Release notes](https://github.com/kornelski/rust_urlencoding/releases)
- [Commits](https://github.com/kornelski/rust_urlencoding/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-17 19:45:10 +01:00
dependabot[bot]
87c9f61e27
Bump serde from 1.0.125 to 1.0.126 (#124)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.125 to 1.0.126.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-14 22:34:48 +01:00
dependabot[bot]
9303f48216
Bump urlencoding from 1.1.1 to 1.3.1 (#125)
Bumps [urlencoding](https://github.com/kornelski/rust_urlencoding) from 1.1.1 to 1.3.1.
- [Release notes](https://github.com/kornelski/rust_urlencoding/releases)
- [Commits](https://github.com/kornelski/rust_urlencoding/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-14 22:33:32 +01:00
Michael Bianco
cb7d656c7d
instructions to install without tap (#127) 2021-05-14 22:30:40 +01:00
Ellie Huxtable
f55d5cf0bf
Ignore commands beginning with a space, resolve #114 (#123) 2021-05-14 08:31:29 +01:00
Ian Smith
a127408e93
run shellcheck (#97)
* run shellcheck

* Update .github/workflows/shellcheck.yml

Co-authored-by: Conrad Ludgate <oon@conradludgate.com>

* shellcheck fixes in which i am highly confident

* shellcheck fixes in which I am less confident - not executing this is fine, right?

* SC2155

In src/shell/atuin.bash line 1:
export ATUIN_SESSION=$(atuin uuid)
       ^-----------^ SC2155: Declare and assign separately to avoid masking return values.

* shellcheck doesn't support zsh, per https://github.com/koalaman/shellcheck/wiki/SC1071

* yaml fix

* gotta checkout our code, too

* yaml fix

* action spelling

* exclude .zsh

* Shellcheck doesn't support zsh, per

https://github.com/koalaman/shellcheck/wiki/SC1071, and the ignore: param
in ludeeus/action-shellcheck only supports _directories_, not _files_.
So instead, we manually add any error the shellcheck step finds in the
file to the above line ...

* comment all the ignores

* Update src/shell/atuin.bash

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

* new zsh plugin shellcheck errors

* new zsh plugin shellcheck errors, pt 2

Co-authored-by: Conrad Ludgate <oon@conradludgate.com>
Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
2021-05-14 08:31:15 +01:00
Michael Bianco
f041d7fe4a
Adding plugin for zsh (#117)
* Adding plugin for zsh

* plugin manager documentation
2021-05-12 20:47:06 +00:00
Frank Hamand
fd90bd3413
Fix doc links in sync.md (#115) 2021-05-11 14:44:13 +00:00
Manel Vilar
477c685217
Elementary Linux add as supported (#113) 2021-05-11 08:37:00 +00:00
Ellie Huxtable
4286f65b01
Release v0.7.1 (#108) 2021-05-10 21:31:41 +00:00
Conrad Ludgate
fa5c94de65
feat: build individual crates (#109) 2021-05-10 21:25:42 +00:00
Ellie Huxtable
fe45787474
Re-add macro_use to atuin-common (#107)
* Re-add macro_use to atuin-common

When build as a dependency, the macro is available from another crate.
When you try to build common by itself, the macro is not found. Magic,
huh?

* chore: remove unneeded use - clippy is confused

Co-authored-by: Conrad Ludgate <conradludgate@gmail.com>
2021-05-10 21:16:07 +00:00
Ellie Huxtable
d3059af815
Release v0.7.0 (#103)
* Release v0.7.0

- Update all the crate versions
- Update the demo gif
- Write a changelog
- Adjust the title of the search screen (has the old name still)
- Adjust the colours of the quick-jump numbers (sadly invisible on some
  colour schemes as dark grey :/)

* Update README, default config file, docs

* Link usernames

* Trigger release workflow upon release creation, as well as tags
2021-05-10 21:28:07 +01:00
Omer Katz
32c674889f
Increase number of optimizations on release builds. (#101)
This allows us to produce a faster executable (which is useful in shells) at the expense of rarely spending more compilation time upon releasing a new version.
I do this in all of my rust projects, perhaps because they are too small for compilation time to really matter. We should measure next time we release and see how that goes.
2021-05-10 12:01:19 +00:00
Yuvi Panda
c02934d184
Implement 'quick access' via Alt-<n> (#79)
* Implement 'quick access' via numbers

Puts numbers 0-9 next to commands *above* current selection.
Ctrl-<number> should activate them - but since Ctrl-<num> are
reserved by terminal, this does not currently work. Need to
find different sets of keyboard shortcuts.

Numbers are *above* current selection, since the user must use
the arrow keys to go over the commands below current selection
before reaching selection.

* Use Alt+<n> to select last nth command

* Don't print Opt+0

Same as <Enter>

* Run rustfmt

* Simplify code

- Use ? operator for getting selected item
- Use RangeInclusive to check if character pressed is a number
2021-05-10 12:55:29 +01:00
Yuvi Panda
f0463326fa
Use format! instead of string concat (#94)
Cleaner
2021-05-09 22:33:57 +01:00
Ellie Huxtable
c16a26cdbf
Fix sync (#95)
The data part of the add history request is actually a string. I don't
want to introduce any structure here, and would rather keep it as "just
a blob". Even if that blob has structure secretly!

My fault for missing this in the last review
2021-05-09 22:31:11 +01:00
Conrad Ludgate
de2e34ac50
some changes 🤷 (#83)
* make everything a cow

* fmt + clippy
2021-05-09 21:17:24 +01:00
Ellie Huxtable
e43e5ce74a
Add logout, only login if not already logged in (#91)
Also:
- Ensures that a key is generated as soon as a user registers!
- Ensures that "atuin key" will generate a key if needed, and doesn't
  double base64 encode data

And a few other little fixes :)

Resolves #85
Resolves #86
2021-05-09 20:11:17 +01:00
Jamie Quigley
af707ac5a4
Fix resh importer crashing on end of file (#92) 2021-05-09 19:09:09 +00:00
Will Fancher
623df9064e
Add Emacs style ctrl-g, ctrl-n, and ctrl-p (#77) 2021-05-09 18:43:55 +00:00
Conrad Ludgate
4b9ff801a6
fix some bugs (#90)
* fix some bugs

* format
2021-05-09 19:12:41 +01:00
Ellie Huxtable
bd4db1fa03
Allow listing or searching with only the command as output (#89)
Should be useful for using other tools, such as FZF
2021-05-09 18:01:21 +00:00
Ellie Huxtable
d39e3cb479
Fix bash integration to set the session (#88) 2021-05-09 18:47:41 +01:00
Conrad Ludgate
090120a834
Generic Importer Trait (#71)
* initial importer trait

* appease linters

* improve file handling. fixes #66

* use size hint

* format + comment

* update serde rename mess

* tested 😎 🚀

* small formatting
2021-05-09 18:34:15 +01:00
Jamie Quigley
725ea9b16b
Fix resh importer, and change error handling method (#82) 2021-05-09 15:20:39 +01:00
Yuvi Panda
c69f6ee3f9
Run shellcheck on bash file (#81)
Ref #64
2021-05-09 13:12:09 +01:00
Yuvi Panda
a04865d9d8
Use an enum for dialect (#80) 2021-05-09 11:39:39 +01:00
Yuvi Panda
19bd00f620
Support fulltext search of commands (#75) 2021-05-09 08:33:56 +01:00
Ellie Huxtable
07c5461013
Retain the query entered into the TUI (#76)
If no results are found, and the user presses enter, keep the query!

Resolves #73
2021-05-08 22:10:40 +01:00
Jamie Quigley
bb086808b1
Add importer for resh_history file (#69)
* Added resh history importer

* Silence trivial clippy warnings for the PR CI
2021-05-08 17:29:46 +01:00
Ellie Huxtable
56b75bc7bf
Add homebrew install instructions 2021-05-08 15:06:40 +01:00
Jamie Quigley
2e5f16a6a3
Add Ctrl-d as a way of exiting the TUI (#65) 2021-05-08 14:04:33 +00:00
Ellie Huxtable
220e2d05e3
Put cargo install in the right place (#63)
Resolves #61
2021-05-08 14:30:41 +01:00
Ellie Huxtable
8bd4d12cfa
Add ATUIN_NOBIND (#62)
* Add ATUIN_NOBIND

* Update docs/key-binding.md

`<kbd>`, what magic

Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>

Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
2021-05-08 14:17:22 +01:00
avinassh
035bf9a99b
Add a newline when editing shell rc files (#60)
* Add a newline when editing shell rc files

* Update install.sh

Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>

* Update install.sh

Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>

Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
2021-05-08 12:57:27 +00:00
dependabot[bot]
7c87624d8a
Bump indicatif from 0.15.0 to 0.16.0 (#45)
Bumps [indicatif](https://github.com/mitsuhiko/indicatif) from 0.15.0 to 0.16.0.
- [Release notes](https://github.com/mitsuhiko/indicatif/releases)
- [Commits](https://github.com/mitsuhiko/indicatif/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-08 09:58:25 +01:00
dependabot[bot]
b35db2c4e1
Bump tui from 0.14.0 to 0.15.0 (#44)
Bumps [tui](https://github.com/fdehau/tui-rs) from 0.14.0 to 0.15.0.
- [Release notes](https://github.com/fdehau/tui-rs/releases)
- [Changelog](https://github.com/fdehau/tui-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/fdehau/tui-rs/compare/v0.14.0...v0.15.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-08 09:45:11 +01:00
dependabot[bot]
d7a47d39a7
Bump cli-table from 0.4.5 to 0.4.6 (#43) 2021-05-08 07:49:21 +00:00
dependabot[bot]
11323446eb
Bump directories from 3.0.1 to 3.0.2 (#41)
Bumps [directories](https://github.com/soc/directories-rs) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/soc/directories-rs/releases)
- [Commits](https://github.com/soc/directories-rs/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-08 08:37:26 +01:00
Ellie Huxtable
99f26ff383
Allow using Ctrl-c to exit (#53) 2021-05-08 00:02:39 +01:00
Conrad Ludgate
086f4cc27c
cache builds (#49)
* cache builds

* improve cache steps

* un-restrict target cache

* remove release cache
2021-05-07 20:28:16 +00:00
Conrad Ludgate
1c59f85ea8
remove dyn Reply (#48)
* cleanup reply types

* cleanup error api

* small update

* improve api some more

* fmt
2021-05-07 21:06:56 +01:00
Ian Smith
e2edcbf994
Fix ubuntu install (#46)
The filename for the deb is versioned like '0.6.4', not 'v0.6.4'.
2021-05-07 19:06:43 +01:00
Ellie Huxtable
cbb472bba6 Update README and docs 2021-05-07 16:59:12 +01:00
Ellie Huxtable
6cc5006b10
Update install.sh
😳 oops
2021-04-27 18:42:16 +01:00
Ellie Huxtable
c11865f589
Update install.sh 2021-04-27 18:34:30 +01:00
Ellie Huxtable
04b2a1bd7b
Update install.sh 2021-04-27 18:33:06 +01:00
Ellie Huxtable
a503fa8b7d
Update README.md 2021-04-27 18:32:44 +01:00