Commit Graph

39 Commits

Author SHA1 Message Date
tami5
cf3a1deb9c
follow sqlite new release (#40)
* refactor(sql_wrapper): follow sqlite new release

* update readme
2021-09-01 08:36:12 +03:00
Senghan Bright
65a7d89eb8 feat: make database location configurable 2021-08-04 10:52:02 +02:00
Senghan Bright
e7c9dee1e7
feat: allow user to disable database validation safe_mode (#20)
* feat: allow user to disable database validation safe_mode

* fix safe_mode logic

* fix: fix user confirmation

* feat: allow disabling of auto-validation
2021-08-04 09:16:33 +02:00
Senghan Bright
668a833a0e
fix sql:open() (#5) 2021-02-01 22:38:03 +01:00
Senghan Bright
7afdd3c32c
Feature: filtered workspaces
* draft implementation of tags/filters

* .

* add filtering:

- extended substring sorter to have modes:
- when current string is prefixed by `:foo`, results are tag_names that
come from tags/workspaces table. (if `:foo ` token is incomplete it is
ignored)
- when a complete workspace tag is matched ':foobar:', results are
indexed_files filtered by if their parent_dir is a descendant of the
workspace_dir
- a recursive scan_dir() result is added to the  :foobar: filter
results; any non-indexed_files are given a score of zero, and are
alphabetically sorted below the indexed_results

- tab completion for tab_names in insert mode`:foo|` state: cycles
through available options

* add completion file

* use attach_mappings for <CR> map

* stop completion being enabled multiple times

* improve keys

* improve completion cancellation

* add dynamic `lsp` tag

* add dynamic `lsp` tag

* fix empty lsp workspaces

* remove hardcoded workspaces and allow config from ext_config

* add filter highlight and some fixes

* .

* add workspace filters to readme

* wip LSP workspace filter

* merge ignore_patterns fix

* change LSP_ROOT tagname to LSP

* fix setting default values

* .

* update readme with filter instructions

* remove debug message

* improve relative paths

* improve relative paths

* WIP dynamic column sizes

* WIP filter_column_width

* fix keymaps

* .

* feat: persistent filters

* refactor config creation

* fix: filter directory column autosize

* improve LSP workspace paths

* .

* remove workspace filter output

* cache persistent filter results

* fix cached results

* .

* remove results cache; sorting is the expensive part

* respect ignore patterns for non-indexed files.

* return table on on_input_filter_cb
2021-01-28 22:45:04 +01:00
delphinus
9a2ddaee90 Detect ignore_patterns in validating DB 2021-01-21 17:53:07 +09:00
Senghan Bright
a770d59b92 use vim.startswith instead of utils string function 2021-01-20 12:17:45 +01:00
Senghan Bright
e52c61c312 fix string_starts 2021-01-19 05:38:49 +01:00
Senghan Bright
8ceaedc4ca remove substr_matcher and use the upstreamed version
https://github.com/nvim-telescope/telescope.nvim/pull/443
2021-01-18 18:02:28 +01:00
Senghan Bright
78bc319f49 use ordinal instead of name for sort matching 2021-01-18 14:31:59 +01:00
Senghan Bright
0aa5c2d43d remove unused function stub 2021-01-17 21:59:06 +01:00
Senghan Bright
815ea52886 remove debug messages 2021-01-17 20:53:26 +01:00
Senghan Bright
4652f6c325 use extensions ignore_patterns instead of telescope default 2021-01-17 20:51:11 +01:00
Senghan Bright
e8266b0b94 allow scores and ignore_patterns to be configurable. 2021-01-17 19:48:19 +01:00
Senghan Bright
aa93b2f8e6 refactor 2021-01-17 19:47:24 +01:00
Senghan Bright
50869b5f55 automatically remove stale entries from db 2021-01-17 16:51:43 +01:00
Senghan Bright
c977ea5a46 update readme 2021-01-17 13:17:37 +01:00
Senghan Bright
dc37ed8dd0 improve substr matcher 2021-01-17 12:59:20 +01:00
Senghan Bright
0e606ebfca rename buf variable 2021-01-17 12:21:48 +01:00
Senghan Bright
81faa642ed wip: add file pattern ignores 2021-01-17 10:37:25 +01:00
Senghan Bright
2f7636ba0f lsp_workspace filter 2021-01-16 21:56:15 +01:00
Senghan Bright
e547c1cd32 import from v:oldfiles on first run 2021-01-16 18:47:17 +01:00
Senghan Bright
5e89b52e10 remove unnecessary function wrap 2021-01-16 17:04:19 +01:00
Senghan Bright
d1fc0f5515 refactor 2021-01-16 16:02:11 +01:00
Senghan Bright
afbb26d1e8 fix incorrect empty result from filepath_row_id() 2021-01-16 01:11:22 +01:00
Senghan Bright
a12e98f7c7 refactor: don't use string keys 2021-01-16 01:05:23 +01:00
Senghan Bright
231810a114 use sql.nvim lib methods for table creation 2021-01-15 18:47:31 +01:00
Senghan Bright
9cf45fcbac use vim function to get data dir 2021-01-15 18:01:19 +01:00
Senghan Bright
6dd33341e7 fixes 2021-01-15 12:16:18 +01:00
Senghan Bright
2c2b8b16c2 return empty table from get_scores. Fixes assertion error. 2021-01-14 23:04:02 +01:00
Senghan Bright
c2d21f474a support multiple search terms 2021-01-14 22:39:44 +01:00
Senghan Bright
deece31726 ignore search case 2021-01-14 21:12:21 +01:00
Senghan Bright
992b72de02 switch to substring matcher (WIP) 2021-01-14 20:56:56 +01:00
Senghan Bright
6ca37f320f use fuzzy sorter 2021-01-14 14:45:48 +01:00
Senghan Bright
8facdb9c2e return empty table when no db result 2021-01-14 14:15:42 +01:00
Senghan Bright
a78efd4afa sort results by score value 2021-01-14 13:11:22 +01:00
Senghan Bright
bcec7dd4b8 add sorter (not working yet) 2021-01-14 12:24:11 +01:00
Senghan Bright
1f93ed726a remove debug message 2021-01-14 03:01:47 +01:00
Senghan Bright
8d6b6cc48d Inital commit. 2021-01-14 01:37:37 +01:00