Commit Graph

5981 Commits (84c8c7524537954a28c9c33a4ce5f94d50828ee8)
 

Author SHA1 Message Date
Martin Junghanns 57c14d4a93
Add `:<line>` and `:goto <line>` commands ()
* Add typable `goto` command

* Support `:<line-number>` on prompt

* Rename function according to convention

* Directly call into goto_line_number function
Bob 21143e8d22
Align selections via & ()
* align lines

* remove log statement

* use selections to align

* fix a clippy issue

* only accept 1,2,3 as user count

* Update helix-term/src/commands.rs

Co-authored-by: Ivan Tham <pickfire@riseup.net>

* return if user count is not correct

* add doc

Co-authored-by: Ivan Tham <pickfire@riseup.net>
dependabot[bot] f24e5a3c41
build(deps): bump tokio from 1.13.1 to 1.14.0 ()
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.13.1 to 1.14.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.13.1...tokio-1.14.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] 2cc19bd8e4
build(deps): bump serde_json from 1.0.70 to 1.0.71 ()
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.70 to 1.0.71.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.70...v1.0.71)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] a2f301ee4f
build(deps): bump anyhow from 1.0.46 to 1.0.48 ()
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.46 to 1.0.48.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.46...1.0.48)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] 8fec8c0791
build(deps): bump tree-sitter from 0.20.0 to 0.20.1 ()
Bumps [tree-sitter](https://github.com/tree-sitter/tree-sitter) from 0.20.0 to 0.20.1.
- [Release notes](https://github.com/tree-sitter/tree-sitter/releases)
- [Commits](https://github.com/tree-sitter/tree-sitter/compare/v0.20.0...v0.20.1)

---
updated-dependencies:
- dependency-name: tree-sitter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
NexiNov 4238a843f7
Add link to Keymap page in book. ()
Blaž Hrastnik 72576822f3 dap: Replace breakpoint when changed event comes through
Blaž Hrastnik 85b4410703 dap: Toggle breakpoints without changing selection, fix offset calc
Blaž Hrastnik 177b6fcdc9 cargo fmt
Blaž Hrastnik 28fd704bce ui: Since diagnostics are sorted, we can use binary search
Blaž Hrastnik b55ca8fdb8 dap: Always edit breakpoints on the correct document
Blaž Hrastnik 0eadeab8c7 dap: Remove the prompt line parameter, use insert_str instead
Blaž Hrastnik 5f329a22c4 dap: Modify breakpoints in place with no cloning
Blaž Hrastnik 3b3c396ca4 nix: Update to lld 13, drop flake-compat (was unused)
NNB 1724930765
Fix "good first issue" link ()
Blaž Hrastnik 05d3ad4a0e dap: Remove an excess clone on enable_exceptions
Blaž Hrastnik d1854d8e6a Merge remote-tracking branch 'origin/master' into debug
Dan Nases Sha 6a4d9693ba
File picker config ()
* squashed WIP commits

* hide_gitignore working with config

* pass reference to new config parameter of file_picker()

* update config option name to match name on walk builder

* add comments to config and documentation of option to book

* add git_ignore option to WalkBuilder within prompt in commands.rs

* WIP: add FilePickerConfig struct

* WIP: cleanup

* WIP: add more options including max_depth

* WIP: changed defaults to match ignore crate defaults

* WIP: change WalkBuilder in global_search() to use config options

* WIP: removed follow_links, changed max_depth to follow config setting

* WIP: update book with file-picker inline table notation

* update documentation for file-picker config in book

* adjusted to [editor.file-picker] in book configuration.md

* adjust comments in editor.rs to be doc comments, cleanup

* adjust comments

* adjust book
Skyler Hawthorne 05c6cb1d0b
Solarized theme: fix popup colors, adjust menu ()
* fix popup colors, adjust menu

* fix hardcoded horizontal rule color
Martin Junghanns a3a3b0b517
Jump to end char of surrounding pair from any cursor pos ()
* Jump to end char of surrounding pair from any cursor pos

* Separate bracket matching into exact and fuzzy search

* Add constants for bracket chars

* Abort early if char under cursor is not a bracket

* Simplify bracket char validation

* Refactor node search and unify find methods

* Remove bracket constants
Koen Van der Auwera b95c9470de
Add spacebones light theme ()
* Add spacebones light theme

* Fix error background
Kirawi ed76cdf238
revert log truncation () ()
Blaž Hrastnik 2b7c086653 fix: Expand tilde first, then deal with relative paths
Otherwise the ~ gets treated as a relative path.

Fixes 
Martin Junghanns f2b4ff23ba
Document scrolling for hover command in keymap.md ()
* Document scrolling for hover command in keymap.md

* Move popup keys to a dedicated section
WindSoilder 5959356a24
Implement indent-aware delete ()
* delete character backward can make undent behavior

* improve to handle mixed indentation
Ivan Tham bd56dde6e2
Ensure cursor in view after pipe ()
Fix 
Blaž Hrastnik e9dc658de4 Remove unused imports
Blaž Hrastnik 9dcccb45bb ui: Stop hardcoding markdown doc colors
Blaž Hrastnik 27ceeb83bb Simplify view/doc macros
Blaž Hrastnik fa4c59df46 Simplify compositor.find
ath3 90fd09f2cc
Fix selection remove doc comment ()
WindSoilder 1132b7088a improve nord status bar line
Blaž Hrastnik 8db6fffe90 ui: Increase diagnostics sideline width to 100 max and wrap if needed
Skyler Hawthorne 335ed7fa69
Improve Solarzed Dark theme ()
Adjusts the Solarized Dark theme to be modeled more closely after
vim's incarnation. Also adjust the Solarized Light theme to match.
dependabot[bot] f1d3d97004
build(deps): bump libloading from 0.7.1 to 0.7.2 ()
Bumps [libloading](https://github.com/nagisa/rust_libloading) from 0.7.1 to 0.7.2.
- [Release notes](https://github.com/nagisa/rust_libloading/releases)
- [Commits](https://github.com/nagisa/rust_libloading/commits)

---
updated-dependencies:
- dependency-name: libloading
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] 39479949fc
build(deps): bump serde_json from 1.0.69 to 1.0.70 ()
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.69 to 1.0.70.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.69...v1.0.70)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] bc31d998de
build(deps): bump cc from 1.0.71 to 1.0.72 ()
Bumps [cc](https://github.com/alexcrichton/cc-rs) from 1.0.71 to 1.0.72.
- [Release notes](https://github.com/alexcrichton/cc-rs/releases)
- [Commits](https://github.com/alexcrichton/cc-rs/compare/1.0.71...1.0.72)

---
updated-dependencies:
- dependency-name: cc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] 411f522e5d
build(deps): bump arc-swap from 1.4.0 to 1.5.0 ()
Bumps [arc-swap](https://github.com/vorner/arc-swap) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/vorner/arc-swap/releases)
- [Changelog](https://github.com/vorner/arc-swap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/vorner/arc-swap/compare/v1.4.0...v1.5.0)

---
updated-dependencies:
- dependency-name: arc-swap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] 7e4418468a
build(deps): bump tokio from 1.13.0 to 1.13.1 ()
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.13.0 to 1.13.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.13.0...tokio-1.13.1)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Cole Helbling 225e7904ec
helix-view/editor: use SCRATCH_BUFFER_NAME const ()
NexiNov c95cb2be28
Remove extra instance of delete_word_backword in book ()
Blaž Hrastnik dd98727bad fix: editor.close now takes only a single parameter
Jason Hansen 6cb35d28a8
Add command to inc/dec number under cursor ()
* Add command to inc/dec number under cursor

With the cursor over a number in normal mode, Ctrl + A will increment the
number and Ctrl + X will decrement the number. It works with binary, octal,
decimal, and hexidecimal numbers. Here are some examples.

0b01110100
0o1734
-24234
0x1F245

If the number isn't over a number it will try to find a number after the
cursor on the same line.

* Move several functions to helix-core

* Change to work based on word under selection

* It no longer finds the next number if the cursor isn't already over
  a number.
* It only matches numbers that are part of words with other characters
  like "foo123bar".
* It now works with multiple selections.

* Add some unit tests

* Fix for clippy

* Simplify some things

* Keep previous selection after incrementing

* Use short word instead of long word

This change requires us to manually handle minus sign.

* Don't pad decimal numbers if no leading zeros

* Handle numbers with `_` separators

* Refactor and add tests

* Move most of the code into core
* Add tests for the incremented output

* Use correct range

* Formatting

* Rename increment functions

* Make docs more specific

* This is easier to read

* This is clearer

* Type can be inferred
Bob 46d9ae2b62
Readline style insert mode ()
* readline style insert mode

* update keymap.md

* don't save change history in insert mode

* Revert "don't save change history in insert mode"

This reverts commit cb47f946d7.

* don't affect register and history in insert mode

* add insert_register

* don't call exit_select_mode in insert mode

* avoid set_selection

* avoid duplicated current!
Cole Helbling c638b6b60e
helix-term/commands: implement buffer-close (bc, bclose) ()
* helix-view/view: impl method to remove document from jumps

* helix-view/editor: impl close_document

* helix-view/editor: remove close_buffer argument from `close`

According to archseer, this was never implemented or used properly. Now
that we have a proper "buffer close" function, we can get rid of this.

* helix-term/commands: implement buffer-close (bc, bclose)

This behaves the same as Kakoune's `delete-buffer` / `db` command:

* With 3 files opened by the user with `:o ab`, `:o cd`, and `:o ef`:
  * `buffer-close` once closes `ef` and switches to `cd`
  * `buffer-close` again closes `cd` and switches to `ab`
  * `buffer-close` again closes `ab` and switches to a scratch buffer
* With 3 files opened from the command line with `hx -- ab cd ef`:
  * `buffer-close` once closes `ab` and switches to `cd`
  * `buffer-close` again closes `cd` and switches to `ef`
  * `buffer-close` again closes `ef` and switches to a scratch buffer
* With 1 file opened (`ab`):
  * `buffer-close` once closes `ab` and switches to a scratch buffer
  * `buffer-close` again closes the scratch buffer and switches to a new
    scratch buffer

* helix-term/commands: implement buffer-close! (bclose!, bc!)

Namely, if you have a document open in multiple splits, all the splits
will  be closed at the same time, leaving only splits without that
document focused (or a scratch buffer if they were all focused on that
buffer).

* helix-view/tree: reset focus if Tree is empty
Blaž Hrastnik cccc1949eb Enable thin LTO
It compiles about half a second slower for me, so it seems fine to use
by default.
Cole Helbling 87e61a0894
helix-term/commands: implement cquit ()
This allows you to exit helix with an exit code, e.g. `:cq 2`.
Blaž Hrastnik f5e070e808 minor: Remove leftover log line
Blaž Hrastnik e128a8702e Implement MarkedString rendering
Solves typescript and python documentation rendering