feat: quickfix (#293)

* 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
This commit is contained in:
TJ DeVries
2021-01-11 13:29:37 -05:00
committed by GitHub
parent de80a9837c
commit 8783bea06e
19 changed files with 1152 additions and 369 deletions

View File

@@ -1,7 +1,8 @@
local tester = require('telescope.pickers._test')
local helper = require('telescope.pickers._test_helpers')
tester.builtin_picker('find_files', 'README.md', {
post_close = {
{'README.md', function() return vim.fn.fnamemodify(vim.api.nvim_buf_get_name(0), ":.") end },
{'README.md', helper.get_file },
}
})

View File

@@ -0,0 +1,14 @@
require('plenary.reload').reload_module('plenary')
require('plenary.reload').reload_module('telescope')
local tester = require('telescope.pickers._test')
local helper = require('telescope.pickers._test_helpers')
tester.builtin_picker('find_files', 'telescope<c-n>', {
post_close = {
tester.not_ { 'plugin/telescope.vim', helper.get_file },
},
}, {
sorting_strategy = "descending",
scroll_strategy = "cycle",
})

View File

@@ -3,7 +3,7 @@ local helper = require('telescope.pickers._test_helpers')
tester.builtin_picker('find_files', 'fixtures/file<c-p>', {
post_close = {
{ 'lua/tests/fixtures/file_2.txt', helper.get_file }
{ 'lua/tests/fixtures/file_abc.txt', helper.get_selection_value },
},
})