aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/editor.rs
Commit message (Collapse)AuthorAge
* Merge remote-tracking branch 'origin/master' into debugBlaž Hrastnik2021-11-21
|\
| * helix-view/editor: use SCRATCH_BUFFER_NAME const (#1104)Cole Helbling2021-11-15
| |
| * helix-term/commands: implement buffer-close (bc, bclose) (#1035)Cole Helbling2021-11-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * helix-term/commands: implement cquit (#1096)Cole Helbling2021-11-15
| | | | | | This allows you to exit helix with an exit code, e.g. `:cq 2`.
| * Allow piping from stdin into a buffer on startup (#996)Jason Hansen2021-11-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allow piping from stdin into a buffer on startup * Refactor * Don't allow piping into new buffer on macOS * Update helix-term/src/application.rs Co-authored-by: Blaž Hrastnik <blaz@mxxn.io> * Update helix-term/src/application.rs Co-authored-by: Blaž Hrastnik <blaz@mxxn.io> * Fix Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
| * Add LSP rename_symbol (space-r) (#1011)CossonLeo2021-11-08
| | | | | | improve apply_workspace_edit
| * Launch with defaults upon invalid config/theme (#982)Omnikar2021-11-06
| | | | | | | | | | | | | | | | * Launch with defaults upon invalid config/theme * Startup message if there is a problematic config * Statusline error if trying to switch to an invalid theme * Use serde `deny_unknown_fields` for config
* | dap: Fully extract template parameter promptsBlaž Hrastnik2021-11-07
| |
* | dap: Extract out variable renderingBlaž Hrastnik2021-11-07
| | | | | | | | Will improve on the UI later
* | 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
| * Fix crash on changing from empty scratch buffer to itself (#975)ath32021-11-04
| |
| * Replace documents SlotMap with BTreeMapBlaž Hrastnik2021-11-04
| |
| * If switching away from an empty scratch buffer, remove it (#935)Omnikar2021-10-31
| | | | | | | | | | | | | | * If switching away from an empty scratch buffer, remove it * Move `view.jumps.push` call into `else` clause * Refactor
| * find motion and textobj motion repeat (#891)CossonLeo2021-10-24
| |
| * log syntax highlighting init errors (#895)Kirawi2021-10-23
| |
| * 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
| * Improve completion trigger (#838)CossonLeo2021-10-18
| | | | | | | | | | | | | | * improve idle completion trigger * add completion-trigger-len to book * rename semantics_completion to language_server_completion and optimize idle completion trigger
* | Merge branch 'master' into debugBlaž Hrastnik2021-10-17
|\|
| * Make auto-completion a config (#853)Ivan Tham2021-10-16
| |
| * fix: Make sure to actually use idle_timeout config value for the timersBlaž Hrastnik2021-10-10
| |
| * Make idle-timeout configurableBlaž Hrastnik2021-10-10
| |
| * idle timer wipBlaž Hrastnik2021-10-05
| |
* | Merge branch 'master' into debugDmitry Sharshakov2021-09-25
|\|
| * Add option for automatic insertion of closing-parens/brackets/etc (#779)lurpahi2021-09-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add auto-pair editor option * Document auto-pair editor option * Make cargo fmt happy * Actually make cargo fmt happy * Rename auto-pair option to auto-pairs * Inline a few constants Co-authored-by: miaomai <cunso@tutanota.com>
| * enable smart case regex search by default (#761)kraem2021-09-20
| |
| * log errors produced when trying to initialize the LSP (#746)Kirawi2021-09-15
| |
| * Regex prompts should have a history with a specifiable registerBlaž Hrastnik2021-09-08
| |
| * lsp: Don't send notifications until initialize completesBlaž Hrastnik2021-09-06
| | | | | | | | Then send open events for all documents with the LSP attached.
| * Simplify documents & documents_mut()Blaž Hrastnik2021-09-06
| |
| * lsp: Refactor code that could use document_by_path_mutBlaž Hrastnik2021-09-06
| |
| * Simplify textDocument/didClose, we don't need to look up LSP againBlaž Hrastnik2021-09-06
| |
| * Document macros (#693)oberblastmeister2021-09-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add docs * clean up * remove * more * Update helix-view/src/macros.rs Co-authored-by: Ivan Tham <pickfire@riseup.net> Co-authored-by: Ivan Tham <pickfire@riseup.net>
* | dap: Allow setting breakpoints before starting the adapterBlaž Hrastnik2021-09-03
| |
* | Merge remote-tracking branch 'origin/master' into debugDmitry Sharshakov2021-08-31
|\| | | | | | | Contains type fix on helix-term/src/ui/editor.rs:752:13
| * Shell commands (#547)Omnikar2021-08-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement shell interaction commands * Use slice instead of iterator for shell invocation * Default to `sh` instead of `$SHELL` for shell commands * Enforce trailing comma in `commands` macro * Use `|` register for shell commands * Move shell config to `editor` and use in command * Update shell command prompts * Remove clone of shell config * Change shell function names to match prompts * Log stderr contents upon external command error * Remove `unwrap` calls on potential common errors `shell` will no longer panic if: * The user-configured shell cannot be found * The shell command does not output UTF-8 * Remove redundant `pipe` parameter * Rename `ShellBehavior::None` to `Ignore` * Display error when shell command is used and `shell = []` * Document shell commands in `keymap.md`
* | Defaults in completions, better schemaDmitry Sharshakov2021-08-29
| |
* | wip: refactor parameters in UI startDmitry Sharshakov2021-08-29
| |
* | Customized completion for template parametersDmitry Sharshakov2021-08-28
| |
* | New way of starting debug sessionsDmitry Sharshakov2021-08-28
| |
* | Paginated variablesDmitry Sharshakov2021-08-28
| |
* | Merge remote-tracking branch 'origin/master' into debugDmitry Sharshakov2021-08-25
|\|
| * Move path util functions from helix-term to helix-core (#650)Kirawi2021-08-25
| |
* | refactor: handle DAP events in editor main loopDmitry Sharshakov2021-08-21
| |
* | Add stack pointer display when stoppedDmitry Sharshakov2021-08-21
| |
* | Work towards a breakpoint UIBlaž Hrastnik2021-08-20
| |
* | Start integrating into the editor's event loopBlaž Hrastnik2021-08-20
|/
* Extract view.inner_area(), simplify render_focused_view_elementsBlaž Hrastnik2021-08-19
|
* Refactor view.first_line/first_col into view.offset (Position)Blaž Hrastnik2021-08-19
|