summaryrefslogtreecommitdiff
path: root/lua/tests
AgeCommit message (Collapse)Author
2023-01-06fix(tests): uses testharness in scrolling strategy (#2307)Adam Tajti
2022-08-19Revert "rfc: use extmarks for highlighting and carets (#2099)" (#2138)Fabian David Schmidt
This reverts commit 8d13f4ca8a449d9bd687234b4cb7c531c50b0fa4.
2022-08-18rfc: use extmarks for highlighting and carets (#2099)Jeremy Saenz
* 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>
2022-08-04fix: restore testing framework to actually work (#2070)TJ DeVries
after refactor to some new asynchronous items for finders, the tests stopped actually doing anything. now they do things again.
2022-06-30feat: add min max boundary to width, hight resolver (#2002)Simon Hauser
2022-04-03chore: reformat with stylua 0.13Simon Hauser
2022-03-31fix: action replace/enhance if the replaced/enhanced action as combined (#1814)Simon Hauser
2022-03-13fix: action mt again (#1487)Simon Hauser
actions should be concatinable again
2022-01-31chore: format with stylua 0.12.0 (#1730)Simon Hauser
2022-01-09feat: tiebreak config function (#1401)Julian Fricker
Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-12-10feat: layout `anchor` (#1582)Luke Kershaw
* feat: add `anchor` option to some `layout_strategies` * tests: improve tests for `resolve_height/width`
2021-12-10break: bump the minimum required neovim version to 0.6 or higher (#1549)Simon Hauser
So we can use `vim.json` and `vim.diagnostics`. If you aren't able to update to 0.6.* yet you should pin the previous commit.
2021-11-23Revert "fix: action mt so we can again concat actions from two different ↵Simon Hauser
tables (#1143)" (#1486) This reverts commit 6daf35c88c07dd4b220468968a742cda04889cd3.
2021-11-22fix: action mt so we can again concat actions from two different tables (#1143)Simon Hauser
* fix: action mt so we can again concat actions from two different tables - without actually changing the public interface - without having a local table that keeps track of all actions * this should clear actions now we never actually called this function which is kinda a problem because we never cleaned up previous mapping stores. We can also make a better mappings store which has access to the keys sequences which would help the showing actions part * bugfix * that should now clear everything only tests left i think * more tests * cleanup * hack: make sure all actions get cleared
2021-09-19feat: `layout_strategies` refactor (#1039)Luke Kershaw
* 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>
2021-08-21fix(command_parser): pcall for the loadstring (#1134)Luke Kershaw
2021-08-20feat(performance): Major performance improvements using async v2 from ↵TJ DeVries
@oberblastmeister (#987) * start: Working w/ async jobs * short circuit to using bad finder if you pass writer.
2021-07-23chore: use stylua for formatting (#1040)Simon Hauser
* chore: stylua job and config * reformat with stylua
2021-07-02fix: table number option extend (#947)Luke Kershaw
* fix: prevent error when overriding tables with numbers Fixes #944 - refactor `config.smarter_depth_2_extend` - use `config.smarter_depth_2_extend` for setting `layout_config` in `Picker:new` * test: check that can override a table with a number for layout configuration
2021-07-01feat: Consistent and sensible layout_config (#922)TJ DeVries
* feat: Consistent and sensible layout_config * [docgen] Update doc/telescope.txt skip-checks: true * [WIP]: Thu 17 Jun 2021 03:36:44 PM EDT * [WIP]: Thu 17 Jun 2021 03:38:11 PM EDT * layout_default -> layout_defaults * remove options from bug repot * Conni2461 suggestions: part 1 * [docgen] Update doc/telescope.txt skip-checks: true * Conni2461 suggestions: part 2 * [docgen] Update doc/telescope.txt skip-checks: true * Linting * Improve deprecation checks - Move `layout_defaults` handling to `deprecated.lua` - Check for "layout keys" outside of `layout_config` on `setup` * fixup: Just add a few more words Co-authored-by: Luke Kershaw <35707277+l-kershaw@users.noreply.github.com> Co-authored-by: Github Actions <actions@github>
2021-04-23feat: add search history picker (#769)Volodymyr Kot
Co-authored-by: Volodymyr Kot <vkot@palantir.com>
2021-04-08feat: asyncify pickers - except for live_grep (#709)TJ DeVries
* something kind of works already * yayayayayayayayayayayayayayayayayayayayayayayayayayayayayayayayaya * use async for everything besides live jobs * fix: fixup autocmds previewer * fix: lints for prime * temp: Add example of how we can think about async sorters * feat: Allow picker to decide when to cancel * fix: simplify scoring logic and tests * fixup: name * fix: Move back towards more backwards compat methods * fixup: Remove results from opts * fixup: remove trailing quote * fixup: Attempt to clean up some more async items. Next is status * wip: Add todo for when bfredl implements extmarks over the EOL * wip * fixup: got em * fixup: cleaning * fixup: docs
2021-02-27feat: multi selection. Only integrates with send_selected_to_qflist (#551)TJ DeVries
This will not yet work with select actions. More work is needed in that case. Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-02-24fix: scroll misbehaving + fixed jump to middle (#547)elianiva
* fix: scroll misbehaving + fixed jump to middle * add test * fixx * fix nil
2021-02-24feat: adds M mapping in normal mode (#544)Hubert Pelczarski
2021-02-24feat: advanced normal mode (#463)Simon Hauser
Add <count>j and k to normal mode and H and L to jump at top and bottom of displayed results
2021-02-22feat: Action improvements (#472)TJ DeVries
* feat: replace_map * feat: Add action_set and action_state * fix: Move all actions.get_ to action_state.get_ * fix: replace all internal references of _goto_file_selection_edit * feat: add some docs * fix: lint * feat: actions.select * remove mentions and usage of goto_file_selection APIs * feat: special case attach_mappings to be overridable and defaultable * Having goto_file_selection mappings will cause a error as well as replacing deprecated goto_file_selection methodes For config and replacing use this instead: - actions.select_default - actions.select_horizonal - actions.select_vertical - actions.select_tab Only replacing: - actions.set.edit -- for replacing all select functions * adds actions.state.select_key_to_edit_key Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-01-31fix: Multi byte truncate for displayer (#464)JINNOUCHI Yasushi
This is needed for calling strdisplaywidth() from Lua loop. See https://github.com/nvim-telescope/telescope.nvim/issues/414 See https://github.com/neovim/neovim/blob/a1ed941a7881122fda2fd48e71e890ed55e4d08e/src/nvim/eval/funcs.c#L9845-L9858 Co-authored-by: Simon Hauser <Simon-Hauser@outlook.de>
2021-01-11feat: quickfix (#293)TJ DeVries
* feat: quickfix (not implemented) * [WIP]: Wed 09 Dec 2020 11:11:30 PM EST * somewhat working linked list impl * getting closer * might be working * might be working for real * works and implemented basic example * dont forget to close prompt * fix descending and add more tests * test fixes * fix test * more logging * Fix some more tests * Fix logging messing up tests * fix: lint * fix: multi select stuffs
2020-12-23ci: more tests (#359)TJ DeVries
* more tests * lint
2020-12-21feat: Add better highlighting and new CI abilities (#355)TJ DeVries
* Revert "Revert "fix: Better highlights (#344)" (#350)" This reverts commit 7950fc8ba0accfcf6c540c7810feee646281fd8a. * better highlights take 2 * fixup * install fd find for sameness * add some debug output * more deterministic * better ci
2020-12-11Fix: scroller for descending (#327)Simon Hauser
2020-12-10refactor: Move scroller into own testable moduleTJ DeVries
2020-12-09ci: Pipeline Tests (#315)Simon Hauser
2020-12-09ci: Add luacheck ci job (#317)Simon Hauser
* Add luacheck ci job * Fix most of the linting issues * fixup: lint Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-11-16feat: Allow overriding actions from mappings (#248)TJ DeVries
2020-10-20feat: Add a sorter using the fzy algorithm (#184)swarn
* Add a sorter using the fzy algorithm * Reformat fzy.lua Also, update author attribution. * Remove constansts from fzy module Replace a few of the useful ones with getter functions that make it clear they're not modifiable. * Change names of fzy constant getters * fixup: some small nit picks Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
2020-10-08feat: Add a test fileTJ DeVries
2020-10-07feat: Use metatables to use less memory (#152)TJ DeVries
Instead of storing everything in key / value pair hashes, we store as much as possible in an array and then reference the items in the array using metatables. This provides us with a much lower memory footprint and just one level of table lookup indirection (so I think the speed will not be noticeably different)
2020-10-06fix: Reduce memory leaks (#148)TJ DeVries
It is not 100% clear that we've gotten ALL the memory leaks, but it seems much much much better and doesn't look like it's going to die immediately or as often anymore :)
2020-09-29feat: Add status, better debug, and some associated refactorsTJ DeVries
* [WIP]: Mon 28 Sep 2020 01:08:24 PM EDT * add much much better tracking. so much less hax * status updates, oneshot job updates, etc. * remove temp function * add status function * asdfasdfasdf
2020-09-22test: Working on more memory leak trackingTJ DeVries
2020-09-18feat: add some tests and improve perfTJ DeVries
2020-09-18fix: Make tests pass againTJ DeVries
2020-09-15feat: improve (?) performance of default sorterTJ DeVries
2020-09-12wip: some more musings on resolving height and widthTJ DeVries
2020-09-12feat: Better border configuration.TJ DeVries
Started adding `resolve` which will allow you to do some really nice stuff easily with options to get the window options from a variety of inputs. You can see how we do it in pickers.lua for borders & borderchars currently.
2020-09-11feat: add a bit better writer supportTJ DeVries
2020-09-11feat: Add some more layout optionsTJ DeVries
2020-09-04fix: Don't push past midnight. You'll make clason's stuff break :/TJ DeVries