aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/editor.rs
Commit message (Collapse)AuthorAge
...
* | | dap: Rewrite breakpoints so that there's a single set maintainedBlaž Hrastnik2021-11-30
| | |
* | | Merge remote-tracking branch 'origin/master' into debugBlaž Hrastnik2021-11-30
|\| |
| * | Gutter functionsBlaž Hrastnik2021-11-29
| | |
| * | Detect filetype on :write (#1141)RustyStriker2021-11-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes #1136 * 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)
| * | Simplify some code in editor.rsBlaž Hrastnik2021-11-26
| | |
| * | Optimize space for DocumentId with NonZeroUsize (#1097)Ivan Tham2021-11-25
| |/ | | | | Now Option<DocumentId> uses one byte rather than two
| * File picker config (#988)Dan Nases Sha2021-11-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | cargo fmtBlaž Hrastnik2021-11-22
| |
* | 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
| |