App-FzfUtils

 view release on metacpan or  search on metacpan

script/fzf2clip  view on Meta::CPAN

#!perl

# Note: This script is a CLI for Riap function /App/FzfUtils/fzf2clip
# and generated automatically using Perinci::CmdLine::Gen version 0.502

use 5.010001;
use strict;
use warnings;
use Log::ger;

use Perinci::CmdLine::Any;

our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2026-04-09'; # DATE
our $DIST = 'App-FzfUtils'; # DIST
our $VERSION = '0.003'; # VERSION

my $cmdline = Perinci::CmdLine::Any->new(
    url => "/App/FzfUtils/fzf2clip",
    program_name => "fzf2clip",
    log => 1,
    read_config => 0,
    read_env => 0,
);

$cmdline->run;

# ABSTRACT: Select using fzf, then add selection to clipboard
# PODNAME: fzf2clip

__END__

=pod

=encoding UTF-8

=head1 NAME

fzf2clip - Select using fzf, then add selection to clipboard

=head1 VERSION

This document describes version 0.003 of fzf2clip (from Perl distribution App-FzfUtils), released on 2026-04-09.

=head1 SYNOPSIS

B<fzf2clip> B<L<--help|/"--help, -h, -?">> (or B<L<-h|/"--help, -h, -?">>, B<L<-?|/"--help, -h, -?">>)

B<fzf2clip> B<L<--version|/"--version, -v">> (or B<L<-v|/"--version, -v">>)

B<fzf2clip> [B<L<--debug|/"--debug">>|B<L<--log-level|/"--log-level=s">>=I<level>|B<L<--quiet|/"--quiet">>|B<L<--trace|/"--trace">>|B<L<--verbose|/"--verbose">>] [B<L<--format|/"--format=s">>=I<name>|B<L<--json|/"--json">>] [B<L<--(no)naked-res|/"--n...

=head1 DESCRIPTION

This is basically a shortcut for:

 % fzf < input.txt | clipadd

where L<clipadd> is a utility from L<App::ClipboardUtils>.

=head1 OPTIONS

C<*> marks required options.

=head2 Main options

=over

=item B<--input>=I<s>

(No description)


Can also be specified as the 1st command-line argument.

=item B<--tee>, B<-t>

In addition to adding to clipboard, also print to STDOUT.

=back

=head2 Logging options

=over

=item B<--debug>

Shortcut for --log-level=debug.

=item B<--log-level>=I<s>

Set log level.

By default, these log levels are available (in order of increasing level of
importance, from least important to most): C<trace>, C<debug>, C<info>,
C<warn>/C<warning>, C<error>, C<fatal>. By default, the level is usually set to
C<warn>, which means that log statements with level C<info> and less important
levels will not be shown. To increase verbosity, choose C<info>, C<debug>, or
C<trace>.

For more details on log level and logging, as well as how new logging levels can
be defined or existing ones modified, see L<Log::ger>.


=item B<--quiet>

Shortcut for --log-level=error.

=item B<--trace>

Shortcut for --log-level=trace.

=item B<--verbose>

Shortcut for --log-level=info.

=back

=head2 Output options

=over

=item B<--format>=I<s>

Choose output format, e.g. json, text.

Default value:

 undef

Output can be displayed in multiple formats, and a suitable default format is
chosen depending on the application and/or whether output destination is
interactive terminal (i.e. whether output is piped). This option specifically
chooses an output format.


=item B<--json>



( run in 0.859 second using v1.01-cache-2.11-cpan-84e82930d8c )