* Starting to make some progress on extmarks for prefixes
* Finished up extmarks for multi-icons
* Cleaned up update_prefix calls, added display highlights
* remove highlight_one_row
* Remove TODOs
* stylua fixes
* fixes for luacheck
* Fixed whitespace to appease the stylua gods
* fixed a couple nits from pr
* Got tests passing with new highlighting functionality
* Apply suggestions from code review
Co-authored-by: Fabian David Schmidt <39233597+fdschmidt93@users.noreply.github.com>
Co-authored-by: Fabian David Schmidt <39233597+fdschmidt93@users.noreply.github.com>
* fix(notify): don't report request on new line
* ref(notify): update message format
* ref(msgs): always quote values + decrease duplication
* fix(ci): undefined variables
* ref(actions): temporary silent actions.__index errors
* cleanup
* revert: panic effort, we continue to use error for those
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
* Change center layout strategy to allow vertical anchoring
Affects `telescope.pickers.layout_strategies.center` that is used by dropdown
(`telescope.themes.get_dropdown()`) theme, allowing more customization for
dropdown theme, i. e. setting it in the top with mirrored preview.
For `anchor` containing `N` or `S` will ignore `mirror` config
and preview will be placed as follows:
- Anchoring for `N` put the preview below the prompt result block.
- Anchoring for `S` put the preview above the prompt result block.
- For horizontal anchoring preview will be placed according to `mirror`.
* [docgen] Update doc/telescope.txt
skip-checks: true
Co-authored-by: Github Actions <actions@github>
* fix: `multi_icon` with `select/drop/toggle_all`
* typos
* fix: add check for no caret found
* fix: add check for no line found
* fix: check `max_results` in `Picker:can_select_row`
- also switch order of highlighting in `select/drop/toggle_all` actions
* fix: make `max_results` check a strict inequality
* [docgen] Update doc/telescope.txt
skip-checks: true
* fix: update `prompt_status` on `select/drop/toggle_all` actions
Co-authored-by: Github Actions <actions@github>
* feat: add `multi_icon` option to pickers and corresponding highlight
* feat: allow `multi_icon` to be any length
* fix: adjust `selection_caret` highlighting
* feat: extend functionality of `entry_display.create`
- now allows passing functions or fractional values to `width` option
* refactor: cache `width` instead of results window size
* feat: use new `width` functionality for more entry makers
* wip: 2021-07-22 15:00 BST
* wip: `horizontal` refactored
* wip: `center` refactored
* wip: `cursor` and `vertical` refactored
* wip: `current_buffer` refactor
- also changed `layout_config_defaults` as they gave errors when using `current_buffer`
* wip: `bottom_pane` refactor
* [docgen] Update doc/telescope.txt
skip-checks: true
* fix: put accidentally remove config option back
* [docgen] Update doc/telescope.txt
skip-checks: true
* wip: standardise `height` calculation for `center` and `bottom_pane`
* wip: improve comments
* [docgen] Update doc/telescope.txt
skip-checks: true
* stylua
- also fix a merge mistake
* [docgen] Update doc/telescope.txt
skip-checks: true
* fix: attempt to fix bad merge
* refactor: remove unused entry in `borderchars` table
- also fix some typos
* wip: tweak padding for `bottom_pane`
* wip: add `tabline` checks to `bottom_pane`
- also tweaked position so that `statusline` is not covered when borders are enabled
* stylua
* refactor: factor out size capping function
* [docgen] Update doc/telescope.txt
skip-checks: true
* fix: adjust tests that relied on height being number of results
* fix: forgot variable in calc_size_and_spacing
* fix: maybe this fixes these tests?
* test: try other plenary branch for ci
* test: switch back to main plenary branch for ci
* fix: actually define `max_results` in the test
* fix: final tweaks for edge cases
Co-authored-by: Github Actions <actions@github>
* fix: check if tabline is present when calculating certain layouts
- also tweaks height calculation for `center` strategy
* refactor: remove `center` strategy tweak
- will reimplement something similar in another PR for a few of the strategies
* fix: check if `preview.line` is `nil`
* refactor: factor out `tbln` calculation and `max_lines` adjustment
- also tweaked `vertical` calculations so that no `nil` check is required