Commit Graph

36 Commits

Author SHA1 Message Date
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
1929fc49df feat: add checkhealth function 2021-08-04 08:53:02 +02:00
Simon Hauser
5173a42d4a
chore: move to plenary.path (#24) 2021-07-14 19:54:33 +02:00
Senghan Bright
721300e3d6
fix: map <S-Tab> to menu previous entry (#19) 2021-04-17 13:16:55 +02:00
Senghan Bright
555f170098
feat: add CWD filter (#18) 2021-04-17 12:32:29 +02:00
elianiva
926fbde059
fix: move vim.fn.nvim_feedkeys to vim.api.nvim_feedkeys (#15) 2021-03-10 20:38:25 +01:00
Simon Hauser
8b584bd88f
fix: new action interface (#12) 2021-02-22 18:48:41 +01:00
JINNOUCHI Yasushi
ffa2027102
Refactor callback (#9)
* Fix tabs

* Detect the filter faster
2021-02-10 12:39:28 +01:00
JINNOUCHI Yasushi
237ece9bfb
Disable unneeded overriding mappings (#7) 2021-02-10 12:14:26 +01:00
Senghan Bright
3f6025c78a fix empty listing on windows. 2021-02-10 12:07:27 +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
Senghan Bright
a770d59b92 use vim.startswith instead of utils string function 2021-01-20 12:17:45 +01:00
Senghan Bright
098edfc941 make relative dir setting compatible with tail_path 2021-01-19 08:35:39 +01:00
Senghan Bright
867f0d714d show dot-slash relative dir indicator 2021-01-19 08:20:07 +01:00
Senghan Bright
610febf90c fix relative dir 2021-01-19 08:07:31 +01:00
Senghan Bright
84443967fc only call os_home once; conditionally replace homedir 2021-01-19 05:39:25 +01:00
Senghan Bright
304a6bf887 shorten paths relative to user homedir 2021-01-19 05:15:40 +01:00
Senghan Bright
bbb81a6a58 remove wip commits 2021-01-18 21:32:03 +01:00
Senghan Bright
9bbbec1435 add in frecency_utils require 2021-01-18 21:08:38 +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
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
f2802ba34c add previewer 2021-01-17 16:57:03 +01:00
Senghan Bright
50869b5f55 automatically remove stale entries from db 2021-01-17 16:51:43 +01:00
Senghan Bright
dc37ed8dd0 improve substr matcher 2021-01-17 12:59:20 +01:00
Senghan Bright
df1fc3bb8b make vim.* functions local to display loop 2021-01-17 12:19:03 +01:00
Senghan Bright
c81fad2c1d use Telescope namespace hl for bufloaded 2021-01-17 12:14:56 +01:00
Senghan Bright
6ed0c7753a highlight loaded buffers 2021-01-17 12:12:49 +01:00
Senghan Bright
2f7636ba0f lsp_workspace filter 2021-01-16 21:56:15 +01:00
Senghan Bright
a12e98f7c7 refactor: don't use string keys 2021-01-16 01:05:23 +01:00
Senghan Bright
6dd33341e7 fixes 2021-01-15 12:16:18 +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
93e62dd92d try fuzzy matching with sorted results. 2021-01-14 13:11:46 +01:00
Senghan Bright
bcec7dd4b8 add sorter (not working yet) 2021-01-14 12:24:11 +01:00
Senghan Bright
8d6b6cc48d Inital commit. 2021-01-14 01:37:37 +01:00