Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚡ sql.extend handling of tables and connection. #96

Merged
merged 12 commits into from
Aug 24, 2021
Merged

Conversation

kkharji
Copy link
Owner

@kkharji kkharji commented Aug 24, 2021

Purpose

close #95 #91 #76

kkharji and others added 7 commits August 24, 2021 04:05
Changes:

- ♻️ sql spec to check if initialization of db is successful
- ✨ total avoid of connecting to database even with opts.init
- ✅ instead of a nil table before init, it's a sql.table
-

TODO:
- Since even with opts.init, there isn't any operation is done,
  opts.init should be deprecated and removed.
@kkharji kkharji changed the title ⚡ table extend ⚡ sql.extend handling of tables and connection. Aug 24, 2021
@kkharji kkharji merged commit 1a36aa5 into master Aug 24, 2021
@kkharji kkharji deleted the enh/table_extend branch August 24, 2021 04:08
kkharji added a commit to nvim-telescope/telescope-frecency.nvim that referenced this pull request Aug 24, 2021
delphinus added a commit to nvim-telescope/telescope-frecency.nvim that referenced this pull request Jun 10, 2023
* refactor(db): use new sql.nvim api

* refactor(*): create const, algo and add more util

* refactor(picker): try to cleanup and make it easy to read

FIXME: it seems that I didn't refactor the entry maker right.

* refactor(*): move util to lua/frecency

* misc(db): flag possible bug

* refactor(db): reflect changes introduced in kkharji/sqlite.lua#96

* refactor(db): move set_config to frecency.lua

* new(db): ignore term and octo paths

This may possibly fix the issue with entry.count being nil.

* misc(picker): move health out of export

* refactor(util)

* refactor(db): general

* misc(*): nothing major

* refactor(db): abbreviate table namespace access

* refactor(picker): working-ish

* fix(*): general

* refactor(picker): move fd function to the end of the file

* refactor(*): remove the need for db.init

* new(db): use foreign keys

* sync with sqlite.lua@#105

* feat: add settings for StyLua

* fix: detect the valid module in healthcheck

See #65

* style: fix by StyLua

* fix: detect CWD tag to cut paths

See #66

* fix: show icon before directory

See #67

* fix: deal with show_filter_column option validly

* feat: support opts.workspace (#68)

* doc(readme): update config example (#33)

remove comma causing error.

* doc(readme): fix packer install instructions (#34)

Co-authored-by: tami5 <[email protected]>

* doc: follow sqlite new release (#40)

* refactor(sql_wrapper): follow sqlite new release

* update readme

* refactor: follow telescope's interface changes

See #46

* feat: add default_workspace tag

See #43

* fix: fetch workspaces in addition to completing

See #72

* Update url for sqlite dependency (#64)

The old repository on github redirects to this one.

* fix: use vim.notify not to block outputs

See #75

* feat: opts.path_display to customize

See #76

* Enable to specify tags to show the tails (#77)

* Enable to specify tags to show the tails

* Add doc for show_filter_column

* feat: use more reasonable matcher to sort

See #73

* Fix broken Frecency Algorithm link in README.md (#82)

MDN appear to have removed the Frecency Algorithm page linked in the README document. Updating link to use archived version.

* fix: set the telescope default filetype in prompt

See #81

* feat: use the newer API to define autocmds

See #79

* refactor: use new API and add check for devicons

* feat: detect entries when it has added new ones

See #87

* fix: use valid widths to show entries

* fix: use substr matcher to use sorting by scores

See #94

* Revert "fix: set the telescope default filetype in prompt"

This reverts commit 4937f70.

* fix: enable to filter by valid paths

* refactor: do nothing until calling setup()

See #80

* fix: fix typo for `workspaces`

* fix: show `0` score for unindexed instead of `nil`

* style: fix by StyLua

* fix: return a valid entry with get()

It have used where() to get the entry and where() uses get() to fetch
from DB. But this table has been customized by overwriting get(), so it
has a bug to return the same entry every time it calls. This fixes it.

* refactor: get the buffer name explicitly

* fix: clean up logic to validate DB

* feat: enable to work db_root option

* fix: show no msg when no need to validate in auto

---------

Co-authored-by: Tami <[email protected]>
Co-authored-by: Munif Tanjim <[email protected]>
Co-authored-by: premell <[email protected]>
Co-authored-by: Anshuman Medhi <[email protected]>
Co-authored-by: Lucas Hoffmann <[email protected]>
Co-authored-by: Rohan Orton <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(extend) accept pre-made tables
1 participant