RyanGreenup / cadmus

Shell Scripts to Facilitate Effective Note Taking
163 stars 7 forks source link

skim is misbehaving with notesearch #20

Closed RyanGreenup closed 3 years ago

RyanGreenup commented 3 years ago

Using version 0.6.3 seems to help with this, see this issue for skim here's a PKGBUILD

pkgname=skim
pkgver=0.6.3
pkgrel=1
pkgdesc="Old Version of Skim"
arch=('any')
license=('MIT')
source=("https://github.com/lotabout/skim/releases/download/v0.6.3/skim-v${pkgver}-x86_64-unknown-linux-gnu.tar.gz")
md5sums=('25828f53461b43fc6c3e5bcc00068bd2')

build() {
        cd "$srcdir/$_distdir"
}

check() {
        cd "$srcdir/$_distdir"
}

package() {
        cd "$srcdir/$_distdir"
    mkdir -p ${pkgdir}/usr/bin/
    install ${srcdir}/sk ${pkgdir}/usr/bin/
}
RyanGreenup commented 3 years ago

Something like this seems to work pretty much fine anyway:

recoll -b -t -q (read) | fzf --preview "echo {} | cut -c 8- | xargs bat" 
recoll -b -t -q (read) | cut -c 8- |  fzf --preview "bat {} --style grid --color=always --line-range :500 --terminal-width 80 --italic-text=always --decorations=always"
RyanGreenup commented 3 years ago

OK so it seems that the issue is fixed by piping the results of find into skim, then the command mode and preview will work together