Ivan Tham
67bf4250ca
Optimize space for DocumentId with NonZeroUsize ( #1097 )
...
Now Option<DocumentId> uses one byte rather than two
3 years ago
Thanabodee Charoenpiriyakij
e8f800a141
Do not crash when run goto command without line number ( #1160 )
...
* Do not crash when run goto command without line number
Report an error when running goto command without entering a
line number.
Fixes #1159
* Use is_empty() instead check len zero
3 years ago
Thanabodee Charoenpiriyakij
95f392b18d
Fix bug report template use wrong hx version ( #1158 )
3 years ago
shenlebantongying
1eecd9a2ac
Add language: racket ( #1143 )
3 years ago
ath3
72f606ee19
Implement no-yank delete/change ( #1099 )
3 years ago
Gokul Soumya
7961355ba1
Change cursor shape on mode change
...
Fixes #323 . Due to terminal limitations we can only
change the shape of the primary cursor.
3 years ago
Martin Junghanns
57c14d4a93
Add `:<line>` and `:goto <line>` commands ( #1128 )
...
* Add typable `goto` command
* Support `:<line-number>` on prompt
* Rename function according to convention
* Directly call into goto_line_number function
3 years ago
Bob
21143e8d22
Align selections via & ( #1101 )
...
* 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>
3 years ago
dependabot[bot]
f24e5a3c41
build(deps): bump tokio from 1.13.1 to 1.14.0 ( #1146 )
...
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>
3 years ago
dependabot[bot]
2cc19bd8e4
build(deps): bump serde_json from 1.0.70 to 1.0.71 ( #1147 )
...
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>
3 years ago
dependabot[bot]
a2f301ee4f
build(deps): bump anyhow from 1.0.46 to 1.0.48 ( #1144 )
...
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>
3 years ago
dependabot[bot]
8fec8c0791
build(deps): bump tree-sitter from 0.20.0 to 0.20.1 ( #1145 )
...
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>
3 years ago
NexiNov
4238a843f7
Add link to Keymap page in book. ( #1137 )
3 years ago
Blaž Hrastnik
72576822f3
dap: Replace breakpoint when changed event comes through
3 years ago
Blaž Hrastnik
85b4410703
dap: Toggle breakpoints without changing selection, fix offset calc
3 years ago
Blaž Hrastnik
177b6fcdc9
cargo fmt
3 years ago
Blaž Hrastnik
28fd704bce
ui: Since diagnostics are sorted, we can use binary search
3 years ago
Blaž Hrastnik
b55ca8fdb8
dap: Always edit breakpoints on the correct document
3 years ago
Blaž Hrastnik
0eadeab8c7
dap: Remove the prompt line parameter, use insert_str instead
3 years ago
Blaž Hrastnik
5f329a22c4
dap: Modify breakpoints in place with no cloning
3 years ago
Blaž Hrastnik
3b3c396ca4
nix: Update to lld 13, drop flake-compat (was unused)
3 years ago
NNB
1724930765
Fix "good first issue" link ( #1140 )
3 years ago
Blaž Hrastnik
05d3ad4a0e
dap: Remove an excess clone on enable_exceptions
3 years ago
Blaž Hrastnik
d1854d8e6a
Merge remote-tracking branch 'origin/master' into debug
3 years ago
Dan Nases Sha
6a4d9693ba
File picker config ( #988 )
...
* 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
3 years ago
Skyler Hawthorne
05c6cb1d0b
Solarized theme: fix popup colors, adjust menu ( #1124 )
...
* fix popup colors, adjust menu
* fix hardcoded horizontal rule color
3 years ago
Martin Junghanns
a3a3b0b517
Jump to end char of surrounding pair from any cursor pos ( #1121 )
...
* 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
3 years ago
Koen Van der Auwera
b95c9470de
Add spacebones light theme ( #1131 )
...
* Add spacebones light theme
* Fix error background
3 years ago
Kirawi
ed76cdf238
revert log truncation ( #895 ) ( #1130 )
3 years ago
Blaž Hrastnik
2b7c086653
fix: Expand tilde first, then deal with relative paths
...
Otherwise the ~ gets treated as a relative path.
Fixes #1107
3 years ago
Martin Junghanns
f2b4ff23ba
Document scrolling for hover command in keymap.md ( #1117 )
...
* Document scrolling for hover command in keymap.md
* Move popup keys to a dedicated section
3 years ago
WindSoilder
5959356a24
Implement indent-aware delete ( #1120 )
...
* delete character backward can make undent behavior
* improve to handle mixed indentation
3 years ago
Ivan Tham
bd56dde6e2
Ensure cursor in view after pipe ( #1123 )
...
Fix #1024
3 years ago
Blaž Hrastnik
e9dc658de4
Remove unused imports
3 years ago
Blaž Hrastnik
9dcccb45bb
ui: Stop hardcoding markdown doc colors
3 years ago
Blaž Hrastnik
27ceeb83bb
Simplify view/doc macros
3 years ago
Blaž Hrastnik
fa4c59df46
Simplify compositor.find
3 years ago
ath3
90fd09f2cc
Fix selection remove doc comment ( #1122 )
3 years ago
WindSoilder
1132b7088a
improve nord status bar line
3 years ago
Blaž Hrastnik
8db6fffe90
ui: Increase diagnostics sideline width to 100 max and wrap if needed
3 years ago
Skyler Hawthorne
335ed7fa69
Improve Solarzed Dark theme ( #1105 )
...
Adjusts the Solarized Dark theme to be modeled more closely after
vim's incarnation. Also adjust the Solarized Light theme to match.
3 years ago
dependabot[bot]
f1d3d97004
build(deps): bump libloading from 0.7.1 to 0.7.2 ( #1113 )
...
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>
3 years ago
dependabot[bot]
39479949fc
build(deps): bump serde_json from 1.0.69 to 1.0.70 ( #1112 )
...
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>
3 years ago
dependabot[bot]
bc31d998de
build(deps): bump cc from 1.0.71 to 1.0.72 ( #1111 )
...
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>
3 years ago
dependabot[bot]
411f522e5d
build(deps): bump arc-swap from 1.4.0 to 1.5.0 ( #1110 )
...
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>
3 years ago
dependabot[bot]
7e4418468a
build(deps): bump tokio from 1.13.0 to 1.13.1 ( #1109 )
...
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>
3 years ago
Cole Helbling
225e7904ec
helix-view/editor: use SCRATCH_BUFFER_NAME const ( #1104 )
3 years ago
NexiNov
c95cb2be28
Remove extra instance of delete_word_backword in book ( #1103 )
3 years ago
Blaž Hrastnik
dd98727bad
fix: editor.close now takes only a single parameter
3 years ago
Jason Hansen
6cb35d28a8
Add command to inc/dec number under cursor ( #1027 )
...
* 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
3 years ago