Skip to content

Improve docset installation #59

@xeruf

Description

@xeruf

Great tool, since I prefer the terminal, much better match for me than Zeal :)

But I think the installer could use a few improvements, firstly smart-case search (case-sensitive as soon as there are uppercase-characters):

❯ dasht-docsets-install Rails
--2023-02-02 13:28:55--  https://api.github.com/repos/Kapeli/feeds/git/refs/heads/master
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving api.github.com (api.github.com)... 140.82.121.5
Connecting to api.github.com (api.github.com)|140.82.121.5|:443... connected.
HTTP request sent, awaiting response... 304 Not Modified
File ‘/home/janek/.local/cache/dasht/master’ not modified on server. Omitting download.

--2023-02-02 13:28:55--  https://api.github.com/repos/Kapeli/feeds/git/trees/7a8c0a2e886b4f379111cf55dd8a702ef2e5927e
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving api.github.com (api.github.com)... 140.82.121.5
Connecting to api.github.com (api.github.com)|140.82.121.5|:443... connected.
HTTP request sent, awaiting response... 304 Not Modified
File ‘/home/janek/.local/cache/dasht/7a8c0a2e886b4f379111cf55dd8a702ef2e5927e’ not modified on server. Omitting download.

Installable docsets (6):

        Grails, Ruby_on_Rails_3, Ruby_on_Rails_4, Ruby_on_Rails_5, Ruby_on_Rails_6, Ruby_on_Rails_7

echo Install Grails docset '[y/N]'?...^C%                                                                                    

Furthermore, I do not understand why there is a listing of all files in the docset upon installation.
If you want to show progress, maybe you want something like this: https://code.ftt.gmbh/janek/dotfiles/src/branch/main/.local/bin/scripts/rewrite

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions