Commit Graph

1928 Commits (aaa42e1a69e4bf88e6761e51085957201295ca52)
 

Author SHA1 Message Date
Blaž Hrastnik 7bbf4c5b06 ui: Only calculate span styling when it's actually in bounds
Blaž Hrastnik d562e13e1f minor: Use anchor::ensure in some cases
George Rodrigues 3e15aead4a
Fix typo on docs ()
WindSoilder c08d2fae58
Improve dedent behavior, make kill_to_line_end behave like emacs ()
* restore indent when press esc right after open a new line

* add comment for restore_indent

* fix, and make kill to line end behaves like emacs

* update comment

* fix comment

* adjust cancel restore_indent situation

* check esc logic in mode transaction

* improve comment

* add more check for dedent

* update comment

* use matches to check for last_cmd

* no need to introduct CommandFun type
dependabot[bot] 94296229e7 build(deps): bump futures-executor from 0.3.17 to 0.3.18
Bumps [futures-executor](https://github.com/rust-lang/futures-rs) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.17...0.3.18)

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

Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] 5313d0f04e build(deps): bump anyhow from 1.0.48 to 1.0.51
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.48 to 1.0.51.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.48...1.0.51)

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

Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] fcd39adcaa build(deps): bump futures-util from 0.3.17 to 0.3.18
Bumps [futures-util](https://github.com/rust-lang/futures-rs) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.17...0.3.18)

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

Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] 987c4ad97f build(deps): bump serde_json from 1.0.71 to 1.0.72
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.71 to 1.0.72.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.71...v1.0.72)

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

Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] 82889d7c41 build(deps): bump actions/cache from 2.1.6 to 2.1.7
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.6 to 2.1.7.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.6...v2.1.7)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Corey Powell 0dd2303f64
Merge pull request from nichobi/patch-1
Remove defunct helix-bin AUR link
Nicholas Boyd Isacsson 6204c38556
Remove defunct helix-bin AUR link
Blaž Hrastnik 225e8ccf31 Extract gutters into helix-view
Blaž Hrastnik 27c1a84f05 Reuse a text buffer for each gutter line
Blaž Hrastnik ba45db84d4 Tie the GutterFn lifetime to the doc so we can avoid cloning data
Blaž Hrastnik c71c9f69e2 TODO
Blaž Hrastnik 30171416cb Gutter functions
Bob 42fde95223
Accept count for goto_window ()
* accept count for goto_window

also fix view is not fullfilled issue

* fix fulfilled mispell

* Update helix-term/src/commands.rs

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

* Update helix-term/src/commands.rs

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

* fix merge issue

* revert line computation logic

Co-authored-by: Ivan Tham <pickfire@riseup.net>
Bob 4f9390a435
gf as goto_file ()
* goto_file

* support goto_file under current cursor

* add C-w f/F

* sync space w with window mode

* Update helix-term/src/commands.rs

Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
Kirawi 6f1a7b1220
Add llvm grammar ()
Gokul Soumya dc53e65b9e
Fix surround cursor position calculation ()
Fixes . This was caused by the assumption that a block
cursor is represented as zero width internally and simply
rendered to be a single width selection, where as in reality
a block cursor is an actual single width selection in form and
function.

Behavioural changes:

1. Surround selection no longer works when cursor is _on_ a
    surround character that has matching pairs (like `'`
    or `"`). This was the intended behaviour from the start
    but worked till now because of the cursor position
    calculation mismatch.
ath3 1d773bcefb
Implement black hole register ()
RustyStriker 103b5125e4
Detect filetype on :write ()
fixes 

* removed a log::info

* removed temp.rs

* cargo clippy no longer complains

* new get_lang_server function

* get_lang_server is now launch_language_server

* launch_lang_server will now close the previous one

* better code readability

* remove resfresh_ls(and a wrong comment)
ath3 3b2b7341a5
Fix next char delete key documentation for prompt ()
Kirawi 4ec20eaeff
Add language support for WGSL ()
Blaž Hrastnik 6e62c3de47 Simplify some code in editor.rs
Ivan Tham 67bf4250ca
Optimize space for DocumentId with NonZeroUsize ()
Now Option<DocumentId> uses one byte rather than two
Thanabodee Charoenpiriyakij e8f800a141
Do not crash when run goto command without line number ()
* Do not crash when run goto command without line number

Report an error when running goto command without entering a
line number.

Fixes 

* Use is_empty() instead check len zero
Thanabodee Charoenpiriyakij 95f392b18d
Fix bug report template use wrong hx version ()
shenlebantongying 1eecd9a2ac
Add language: racket ()
ath3 72f606ee19
Implement no-yank delete/change ()
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. ()
NNB 1724930765
Fix "good first issue" link ()
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