aboutsummaryrefslogtreecommitdiffstats
path: root/journal/pull_url_from_journal.pl
blob: 66941cfcb18db8246700f37a49122ffdbeaecb2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env perl

use warnings;
use strict;

my $journal = "/home/lemon/Notes/journal";

my $line = `grep -R $ARGV[0] $journal | cut -f3- -d' '| fzf `;
chomp $line;

if ($line =~ m/(http.*)/) {
    print $1;
    # system('qutebrowser', $1);
}