App-VTide

 view release on metacpan or  search on metacpan

lib/App/VTide/Command/NewWindow.pm  view on Meta::CPAN


    my $env   = $self->options->files->[-1] // '';
    my @files = sort keys %{ $self->config->get->{editor}{files} };

    # TODO complete terminal numbers

    print join ' ',
      grep { $env ne 'vtide' && $env ne 'edit' ? /^$env/xms : 1 } @files;

    return;
}

1;

__END__

=head1 NAME

App::VTide::Command::NewWindow - Create a new-window in a running App::VTide session

=head1 VERSION

This documentation refers to App::VTide::Command::NewWindow version 1.0.6

=head1 SYNOPSIS

    vtide new-window ([-n|--number] int)

    OPTIONS
     -f --force     Force creating sessions out of order
     -n --number[=](int)
                    The maximum number of new-window sessions to show (Default 10)
     -v --verbose   Show more detailed output
        --help      Show this help
        --man       Show the full man page

=head1 DESCRIPTION

=head1 SUBROUTINES/METHODS

=head3 C<run ()>

Run the command

=head2 C<auto_complete ()>

Auto completes sub-commands that can have help shown

=head2 C<details_sub ()>

Returns the commands details

=head1 DIAGNOSTICS

=head1 CONFIGURATION AND ENVIRONMENT

=head1 DEPENDENCIES

=head1 INCOMPATIBILITIES

=head1 BUGS AND LIMITATIONS

There are no known bugs in this module.

Please report problems to Ivan Wills (ivan.wills@gmail.com).

Patches are welcome.

=head1 AUTHOR

Ivan Wills - (ivan.wills@gmail.com)

=head1 LICENSE AND COPYRIGHT

Copyright (c) 2016 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077).
All rights reserved.

This module is free software; you can redistribute it and/or modify it under
the same terms as Perl itself. See L<perlartistic>.  This program is
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

=cut



( run in 1.257 second using v1.01-cache-2.11-cpan-39bf76dae61 )