zsh-histdb

Check-in [3eed9833e5]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Update sqlite-history.zsh
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:3eed9833e5bdf5c1f81661babd527b72e4cd31cba91d85f6c507807850263f7f
User & Date: noreply@github.com 2017-04-25 14:12:23
Context
2017-04-26
15:33
Notes about autosuggestions check-in: 59c50bcb9b user: tom.hinton@cse.org.uk tags: master, trunk
2017-04-25
14:12
Update sqlite-history.zsh check-in: 3eed9833e5 user: noreply@github.com tags: master, trunk
2017-04-19
14:37
better long option handling check-in: 385f025876 user: tom.hinton@cse.org.uk tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to sqlite-history.zsh.

145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
               -at+::=atdirs \
               d h -help \
               s+::=sessions \
               -from:- -until:- -limit:-

    usage="usage:$0 terms [--host] [--in] [--at] [-s n]+* [--from] [--until] [--limit]
    --host    print the host column and show all hosts (otherwise current host)
    --host=x  find entries from host x
    --in      find only entries run in the current dir or below
    --in=x    find only entries in directory x or below
    --at      like --in, but excluding subdirectories
    -s n      only show session n
    -d        debug output query that will be run
    --from=x  only show commands after date x (sqlite date parser)
    --until=x only show commands before date x (sqlite date parser)
    --limit=n only show n rows. defaults to $LINES or 25"

    local selcols="session as ses, dir"
    local cols="session, replace(places.dir, '$HOME', '~') as dir"
    local where="not (commands.argv like 'histdb%')"
    local limit="${LINES:-25}"

    if [[ -n "$*" ]]; then







|

|



|
|
|







145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
               -at+::=atdirs \
               d h -help \
               s+::=sessions \
               -from:- -until:- -limit:-

    usage="usage:$0 terms [--host] [--in] [--at] [-s n]+* [--from] [--until] [--limit]
    --host    print the host column and show all hosts (otherwise current host)
    --host x  find entries from host x
    --in      find only entries run in the current dir or below
    --in x    find only entries in directory x or below
    --at      like --in, but excluding subdirectories
    -s n      only show session n
    -d        debug output query that will be run
    --from x  only show commands after date x (sqlite date parser)
    --until x only show commands before date x (sqlite date parser)
    --limit n only show n rows. defaults to $LINES or 25"

    local selcols="session as ses, dir"
    local cols="session, replace(places.dir, '$HOME', '~') as dir"
    local where="not (commands.argv like 'histdb%')"
    local limit="${LINES:-25}"

    if [[ -n "$*" ]]; then