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

Add cursor tracking and multiline input navigation #131

Merged
merged 7 commits into from
Feb 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ env:
RUSTFLAGS: "-D warnings"
RUSTUP_MAX_RETRIES: 10
FETCH_DEPTH: 0
NIGHTLY_VERSION: nightly-2021-06-08

jobs:
rustfmt:
Expand Down Expand Up @@ -114,7 +113,7 @@ jobs:
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.NIGHTLY_VERSION }}
toolchain: stable
target: aarch64-unknown-linux-gnu
profile: minimal
override: true
Expand Down Expand Up @@ -196,7 +195,7 @@ jobs:
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.NIGHTLY_VERSION }}
toolchain: stable
target: aarch64-apple-darwin
profile: minimal
override: true
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ env:
RUSTFLAGS: "-D warnings"
RUSTUP_MAX_RETRIES: 10
FETCH_DEPTH: 0 # pull in the tags for the version string
NIGHTLY_VERSION: nightly-2021-06-08

jobs:
dist-changelog:
Expand Down Expand Up @@ -101,7 +100,7 @@ jobs:
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.NIGHTLY_VERSION }}
toolchain: stable
target: aarch64-unknown-linux-gnu
profile: minimal
override: true
Expand Down Expand Up @@ -189,7 +188,7 @@ jobs:
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.NIGHTLY_VERSION }}
toolchain: stable
target: aarch64-apple-darwin
profile: minimal
override: true
Expand Down
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,24 @@
### Added

- Add support for downloading attachments ([#122])
- Add release build for aarch64-unknown-musl ([#126])
- Add release build for `aarch64-unknown-musl` ([#126])
- Show qrcode in terminal instead of PNG viewer ([#128])
- Document key bindings and packages ([#130])

## Changed

- Add cursor tracking and multiline input navigation ([#131])

### Fixed

- Bug: infinite loop while skkiping words on input box ([#129], [#131])

[#122]: https://github.com/boxdot/gurk-rs/pull/122
[#126]: https://github.com/boxdot/gurk-rs/pull/126
[#128]: https://github.com/boxdot/gurk-rs/pull/128
[#129]: https://github.com/boxdot/gurk-rs/pull/129
[#130]: https://github.com/boxdot/gurk-rs/pull/130
[#131]: https://github.com/boxdot/gurk-rs/pull/131

## 0.2.3

Expand Down
34 changes: 34 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "gurk"
description = "Signal messenger client for terminal"
version = "0.2.3"
authors = ["boxdot <d@zerovolt.org>"]
edition = "2018"
edition = "2021"
keywords = ["signal", "tui"]
repository = "https://github.com/boxdot/gurk-rs"
license = "AGPL-3.0-only"
Expand Down Expand Up @@ -56,6 +56,8 @@ uuid = "0.8.2"
whoami = "1.1.2"

[dev-dependencies]
quickcheck = "1.0.3"
quickcheck_macros = "1.0.0"
tempfile = "3.2.0"
uuid = { version = "0.8.2", features = ["v4"] }

Expand Down
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ libraries that are not available on crates.io.
* [x] Reply functionality to a single message.
* [ ] Mouse navigation (works for channels, missing for the messages list).
* [ ] Search of messages/chats. Add quick switch between chats by name.
* [X] Multiline messages; the `Enter` key sends the message.
* [ ] Viewing/sending of attachments (sending works).
* [x] Multiline messages; the `Enter` key sends the message, `Alt+Enter` switches modes.
* [x] Viewing/sending of attachments.
* [ ] Support for blocked contacts/groups.
* [x] Reactions with emojis.
* [x] Open URL in selected message.
Expand All @@ -67,25 +67,29 @@ libraries that are not available on crates.io.
* App navigation
* `f1` Toggle help panel.
* `alt+tab` Switch between message input box and search bar.
* Message edition.
* Message input
* `tab` Send emoji from input line as reaction on selected message.
* `alt+enter` Add newline.
* `alt+enter` Switch between multi-line and singl-line input modes.
* `alt+left`, `alt+right` Jump to previous/next word.
* `ctrl+w / ctrl+backspace / alt+backspace` Delete last word.
* `enter` *when input box empty* Open URL from selected message.
* `enter` *when input box empty in single-line mode* Open URL from selected message.
* `enter` *otherwise* Send message.
* Multi-line message input
* `enter` New line
* `ctrl+j / Up` Previous line
* `ctrl+k / Down` Next line
* Cursor
* `alt+f / alt+Right / ctrl+Right` Move forward one word.
* `alt+b / alt+Left / ctrl+Left` Move backward one word.
* `ctrl+a / home` Move cursor to the beginning of the text.
* `ctrl+e / end` Move cursor the the end of the text.
* `ctrl+a / Home` Move cursor to the beginning of the line.
* `ctrl+e / End` Move cursor the the end of the line.
* Message/channel selection
* `Esc` Reset message selection.
* `alt+Up / PgUp` Select previous message.
* `alt+Down / PgDown` Select next message.
* `ctrl+j / Up` Select previous channel.
* `ctrl+k / Down` Select next channel.


## License

* GNU Affero General Public License v3 only ([AGPL-3.0-only](LICENSE-AGPL-3.0) or
Expand Down
Loading