Blaž Hrastnik
7ad8eaaef0
wip
2021-12-14 00:41:51 +09:00
Blaž Hrastnik
b25d453f64
minor: Shorten goto file(s) descriptions
2021-12-13 14:36:53 +09:00
Omnikar
e91d357fae
Macros ( #1234 )
...
* Macros WIP
`helix_term::compositor::Callback` changed to take a `&mut Context` as
a parameter for use by `play_macro`
* Default to `@` register for macros
* Import `KeyEvent`
* Special-case shift-tab -> backtab in `KeyEvent` conversion
* Move key recording to the compositor
* Add comment
* Add persistent display of macro recording status
When macro recording is active, the pending keys display will be shifted
3 characters left, and the register being recorded to will be displayed
between brackets — e.g., `[@]` — right of the pending keys display.
* Fix/add documentation
2021-12-12 21:16:48 +09:00
ath3
3156577fbf
Open files with spaces in filename, allow opening multiple files ( #1231 )
2021-12-12 21:13:33 +09:00
Blaž Hrastnik
3307f44ce2
ui: popup: Don't allow scrolling past the end of content
2021-12-10 19:23:58 +09:00
Omnikar
b66d3d3d9d
Add save_selection
command ( #1247 )
2021-12-10 11:46:24 +09:00
Omnikar
44681c5057
Add default-run = "hx"
to helix-term/Cargo.toml
( #1244 )
...
Following the addition of `xtask`, `cargo run` has multiple possible
targets, necessitating the usage of `cargo run --bin hx` to run Helix
during development. This allows `cargo run` to be used to run `hx`.
2021-12-10 11:04:31 +09:00
Blaž Hrastnik
df3b88387b
dap: Improve variables UI
2021-12-09 11:28:53 +09:00
Blaž Hrastnik
dac317e620
TODO
2021-12-09 10:55:32 +09:00
Blaž Hrastnik
60c86eff89
dap: Simplify a few more statements that could use the debugger macro
2021-12-09 10:55:32 +09:00
Kirawi
29c053e84e
Only use a single documentation popup ( #1241 )
2021-12-08 16:11:18 +09:00
Gokul Soumya
71292f9f11
docs: Auto generate command list
2021-12-08 10:23:50 +09:00
Blaž Hrastnik
d8351d35ab
dap: Extract a macro that fetches a debugger or returns
2021-12-08 00:59:11 +09:00
Blaž Hrastnik
e98993d609
dap: Fix an off-by-one error when jumping
2021-12-08 00:22:48 +09:00
WindSoilder
93e276cd9d
Make kill_to_line_end behave like emacs ( #1235 )
2021-12-07 01:44:04 +09:00
Blaž Hrastnik
cab09093dd
fix: Normalize backtab into shift-tab
...
Fixes #1150
2021-12-06 12:25:19 +09:00
Blaž Hrastnik
bf8437d098
clippy lint
2021-12-06 09:36:02 +09:00
Blaž Hrastnik
dc8df7ba21
Make thread_picker non-blocking
2021-12-06 09:35:59 +09:00
Blaž Hrastnik
2b4de41bf0
dap: Reply to RunInTerminal
2021-12-06 09:32:21 +09:00
Blaž Hrastnik
d5d1a9b1ae
Apply suggestions from code review
...
Co-authored-by: Gokul Soumya <gokulps15@gmail.com>
2021-12-06 09:32:11 +09:00
Jason Rodney Hansen
461cd20563
Small change
2021-12-05 16:22:58 +08:00
Jason Rodney Hansen
31ed91dc2e
Don't increment for overlapping changes
2021-12-05 16:22:58 +08:00
Jason Rodney Hansen
c74cd48f38
Cleanup
2021-12-05 16:22:58 +08:00
Jason Rodney Hansen
37e484ee38
Add support for time and more date formats
2021-12-05 16:22:58 +08:00
Jason Rodney Hansen
c9641fcced
Add Increment
trait
2021-12-05 16:22:58 +08:00
Jason Rodney Hansen
c1f6167e37
Add support for dates for increment/decrement
2021-12-05 16:22:58 +08:00
ath3
11a2f9ac31
Assert in release mode too on duplicate keys ( #1228 )
2021-12-05 13:04:10 +09:00
Oskar Nehlin
a06871a689
feat: Make it possible to keybind TypableCommands
( #1169 )
...
* Make TypableCommands mappable
* Fix pr comments
* Update PartialEq implementation
2021-12-04 20:17:18 +05:30
Blaž Hrastnik
5545f8ebb5
dap: Add RunInTerminal reverse request, support replying to requests
2021-12-03 16:09:28 +09:00
Blaž Hrastnik
43fbb6d965
Make dap_start non-blocking
2021-12-03 13:27:00 +09:00
Blaž Hrastnik
371c84f70b
cargo fmt
2021-12-03 12:51:55 +09:00
Blaž Hrastnik
34f46e7502
Bump rust to 1.57, fix new lint failures
2021-12-03 12:48:07 +09:00
Blaž Hrastnik
2dbf966293
dap: Start working on runInTerminal support
2021-12-03 11:59:44 +09:00
Ivan Tham
e2b428cc2d
Add last modified file (gm) ( #1093 )
2021-12-02 13:46:57 +09:00
Bob
418b833d2b
fix goto_window index crash ( #1207 )
2021-12-02 13:42:34 +09:00
Blaž Hrastnik
d14ca05d6b
Simplify some cases that use return None to use ?
2021-12-02 10:31:19 +09:00
Blaž Hrastnik
de5e5863aa
dap: Use cursor_line over cursor + char_to_line
2021-12-02 10:24:17 +09:00
Blaž Hrastnik
54f8e5c9c3
dap: Fix an off-by-one and move the function over to commands/dap
2021-12-02 10:22:17 +09:00
Blaž Hrastnik
573cb39926
dap: Remove some unwraps
2021-12-02 10:20:19 +09:00
Blaž Hrastnik
ffc89e483b
Mark some more TODOs as resolved
2021-12-01 19:28:29 +09:00
Blaž Hrastnik
dfd499f5a9
dap: Highlight line of current stack frame
2021-12-01 19:23:42 +09:00
Blaž Hrastnik
c955eaa6cd
Revert "Improve dedent behavior, make kill_to_line_end behave like emacs ( #1173 )"
...
1. pressing o on a line with no indentation will open a new line as
expected, but esc will then delete the line altogether
2. the kill_line behavior happens after insert mode changes are already
commited to history, and the change isn't commited. pressing u after
this will break highlighting & undo history
This reverts commit c08d2fae58
.
2021-12-01 13:40:54 +09:00
Blaž Hrastnik
259678585c
ui: Optimize tree-sitter style lookups
...
Tree sitter returns an index referring to the position of the scope in
the scopes array. We can use that same index to avoid a hashmap lookup
and instead store the styles in an array.
This currently stores the styles in both a map and an array because the
UI still uses hashmap lookups, but it's a reasonable tradeoff.
2021-12-01 13:08:20 +09:00
Blaž Hrastnik
7bbf4c5b06
ui: Only calculate span styling when it's actually in bounds
2021-12-01 12:57:57 +09:00
Blaž Hrastnik
d562e13e1f
minor: Use anchor::ensure in some cases
2021-12-01 12:57:22 +09:00
Blaž Hrastnik
b4fd3148e3
These TODOs have been resolved
2021-12-01 12:56:41 +09:00
Blaž Hrastnik
96ae5897a1
Remove another parameter from render_view
2021-12-01 01:08:52 +09:00
Blaž Hrastnik
30ac5869df
dap: Extract diagnostics gutter into gutters.rs
2021-11-30 17:56:00 +09:00
Blaž Hrastnik
8ffafb826f
dap: Rewrite breakpoints so that there's a single set maintained
2021-11-30 17:56:00 +09:00
Blaž Hrastnik
3633f85b38
Pass editor into render_view & gutter, reducing the number of params
2021-11-30 16:47:46 +09:00