dasht icon indicating copy to clipboard operation
dasht copied to clipboard

Improve docset installation

Open xeruf opened this issue 2 years ago • 1 comments

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

xeruf avatar Feb 02 '23 12:02 xeruf

I have implemented a single-line progress indicator (using awk in POSIX fashion) in commit b2e2daf9dcaf7c4a3ad434073e036aca25f16a64. Please try it out.

sunaku avatar Feb 28 '23 09:02 sunaku