aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui
Commit message (Collapse)AuthorAge
* dap: Move template selection into a pickerBlaž Hrastnik2021-11-06
| | | | It's time to move all these components out of ui/editor.rs
* Merge branch 'master' into debugBlaž Hrastnik2021-11-06
|\
| * Allow infoboxes to be disabled (#972)Omnikar2021-11-05
| | | | | | | | | | | | | | | | | | | | | | * Allow infoboxes to be disabled * Document `infoboxes` default value * Rename `infoboxes` to `auto_info` * Document `auto-info` * Fix incomplete rename
| * Replace documents SlotMap with BTreeMapBlaž Hrastnik2021-11-04
| |
| * Add c-s to pick word under doc cursor to prompt line & search completion (#831)CossonLeo2021-11-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add prompt shourtcut to book Add completions to search Add c-s to pick word under doc cursor to prompt line * limit 20 last items of search completion, update book * Update book/src/keymap.md Co-authored-by: Ivan Tham <pickfire@riseup.net> * limit search completions 200 Co-authored-by: Ivan Tham <pickfire@riseup.net>
| * Prevent preview binary or large file (#939)diegodox2021-11-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Prevent preview binary or large file (#847) * fix wrong method name * fix add use trait * update lock file * rename MAX_PREVIEW_SIZE from MAX_BYTE_PREVIEW * read small bytes to determine cotent type * [WIP] add preview struct to represent calcurated preveiw * Refactor content type detection - Remove unwraps - Reuse a single read buffer to avoid 1kb reallocations between previews * Refactor preview rendering so we don't construct docs when not necessary * Replace unwarap whit Preview::NotFound * Use index access to hide unwrap Co-authored-by: Blaž Hrastnik <blaz@mxxn.io> * fix Get and unwarp equivalent to referce of Index acess * better preview implementation * Rename Preview enum and vairant Co-authored-by: Gokul Soumya <gokulps15@gmail.com> * fixup! Rename Preview enum and vairant * simplify long match * Center text, add docs, fix formatting, refactor Co-authored-by: Blaž Hrastnik <blaz@mxxn.io> Co-authored-by: Gokul Soumya <gokulps15@gmail.com>
| * Truncate the starts of file paths instead of the ends in picker (#951)Omnikar2021-11-04
| | | | | | | | | | | | | | | | | | | | | | | | | | * Truncate the starts of file paths in picker * Simplify the truncate implementation * Break loop at appropriate point * Fix alignment and ellipsis presence * Remove extraneous usage of `x_offset` Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
| * Ensure coords in screen depends on char width (#885)Ivan Tham2021-11-03
| | | | | | | | | | The issue affected files with lots of tabs at the start as well. Fix #840
| * Extract a clear_completion methodBlaž Hrastnik2021-10-29
| |
| * Bump lsp-types to 0.91.0 (#932)Ivan Tham2021-10-29
| |
| * fix: When cycling through prompt history, update event needs to triggerBlaž Hrastnik2021-10-27
| |
| * Improve statusline (#916)Omnikar2021-10-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Improve statusline * Change diagnostic count display to show counts of individual diagnostic types next to their corresponding gutter dots. * Add selection count to the statusline. * Do not display info or hint count in statusline * Reduce padding Co-authored-by: Blaž Hrastnik <blaz@mxxn.io> * Reduce padding Co-authored-by: Blaž Hrastnik <blaz@mxxn.io> * Use `Span::styled` * Reduce padding * Use `Style::patch` * Remove unnecessary `Cow` creation Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
| * Clear competion items when start_offset > cursor (#906)CossonLeo2021-10-26
| |
| * move_up will select last item, when no item selected (#907)CossonLeo2021-10-26
| |
| * Add c-j c-k to menu keymap for move_up move_down (#908)CossonLeo2021-10-26
| |
| * fix warningBlaž Hrastnik2021-10-25
| |
| * completion: fully revert state before apply & insertText common prefixBlaž Hrastnik2021-10-25
| |
| * Mark a few functions as `const`Blaž Hrastnik2021-10-24
| |
| * Add commands for moving between splits with a direction (#860)Oskar Nehlin2021-10-23
| | | | | | | | | | | | | | | | | | * Add commands for moving between splits with a direction * Update keymaps * Change picker mapping * Add test and clean up some comments
| * Update to rust 1.56 + 2021 editionBlaž Hrastnik2021-10-22
| |
| * First stab at ignoring compressed files from picker (#767)Daniel S Poulin2021-10-22
| |
| * Add `C-j` and `C-k` to keybinds for picker (#876)VuiMuich2021-10-19
| | | | | | | | | | * Add `C-j` and `C-k` for moving down/up in pickers * Add new binds to keymap doc
* | Merge branch 'master' into debugBlaž Hrastnik2021-10-17
|\|
| * fix: If backspacing past the start offset, cancel completionBlaž Hrastnik2021-10-16
| | | | | | | | Refs #822
| * Merge pull request #821 from helix-editor/idle-timerBlaž Hrastnik2021-10-10
| |\ | | | | | | Idle timer / Autocompletion
| | * Allow trigger_offset to be unused for nowBlaž Hrastnik2021-10-10
| | |
| | * fix: Don't crash on empty completion, don't retrigger on closeBlaž Hrastnik2021-10-07
| | |
| | * Filter the initial completionBlaž Hrastnik2021-10-05
| | |
| | * Experiment with autocompletion on idleBlaž Hrastnik2021-10-05
| | |
| | * idle timer wipBlaž Hrastnik2021-10-05
| | |
| * | Picker: Don't panick at move_up/move_down when matches is empty (#818)Leoi Hung Kin2021-10-09
| |/
* | Merge branch 'master' into debugDmitry Sharshakov2021-09-25
|\|
| * Initial implementation of global search (#651)Leoi Hung Kin2021-09-21
| | | | | | | | | | | | | | | | | | | | | | * initial implementation of global search * use tokio::sync::mpsc::unbounded_channel instead of Arc, Mutex, Waker poll_fn * use tokio_stream::wrappers::UnboundedReceiverStream to collect all search matches * regex_prompt: unified callback; refactor * global search doc
| * enable smart case regex search by default (#761)kraem2021-09-20
| |
| * fix: Wrap around the top of the picker menu when scrollingBlaž Hrastnik2021-09-17
| | | | | | | | | | | | Forgot to port the improvements in menu.rs Fixes #734
| * syntax: Properly handle injection-regex for language injectionsBlaž Hrastnik2021-09-16
| |
| * ui: Trigger recalculate_size per popup render so contents can readjustBlaž Hrastnik2021-09-13
| |
| * Regex prompts should have a history with a specifiable registerBlaž Hrastnik2021-09-08
| |
| * Optimize completion doc position. (#691)CossonLeo2021-09-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * optimize completion doc's render * optimize completion doc's render * optimize completion doc position * cargo fmt * fix panic * use saturating_sub * fixs * fix clippy * limit completion doc max width 120
| * ui: Be smarter about centering previewsBlaž Hrastnik2021-09-08
| | | | | | | | | | Try centering the whole block. If the block is too big for the viewport, then make sure that the first line is within the preview.
| * Add a sticky mode for keymaps (#635)Gokul Soumya2021-09-05
| |
* | Get breakpoint reports from debuggerDmitry Sharshakov2021-09-06
| |
* | Make conditional logpoints underlinedDmitry Sharshakov2021-09-05
| |
* | Normalize line in picker preview to avoid crashDmitry Sharshakov2021-09-05
| |
* | different display for conditional logpointsDmitry Sharshakov2021-09-05
| |
* | Mouse command for editing logpointDmitry Sharshakov2021-09-05
| |
* | Support editing breakpoint condition with right clickDmitry Sharshakov2021-09-05
| |
* | Add command for editing breakpoint conditionDmitry Sharshakov2021-09-04
| |
* | Support setting breakpoints with mouseDmitry Sharshakov2021-09-04
| |
* | dap: Allow setting breakpoints before starting the adapterBlaž Hrastnik2021-09-03
| |