Giter VIP home page Giter VIP logo

Comments (3)

stevearc avatar stevearc commented on August 16, 2024

There's already some functionality that enables tab-completion for ls

dql/dql/cli.py

Lines 503 to 505 in 731b500

def complete_ls(self, text, *_):
""" Autocomplete for ls """
return [t + " " for t in self.engine.cached_descriptions if t.startswith(text)]

The trick is that you have to run ls with no options once before it works. On startup, we don't know anything about what tables may exist and have to wait for that information to get cached.

It wouldn't be too hard to make the engine.describe method accept a regex or glob, and then you could do ls golie*. Would that do what you want, or do you also want to strip more from the output?

from dql.

jspreddy avatar jspreddy commented on August 16, 2024

Unfortunately tab completion while helpful does not meet my needs.
Ideally the matching would be anywhere in the table name not just the begining. *golie*

Illustrating what I am looking for:
match_string_anywhere_in_the_table_name

from dql.

jspreddy avatar jspreddy commented on August 16, 2024

ls <glob-pattern> would work.

from dql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.