FarNet.Explore 5.1.1

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package FarNet.Explore --version 5.1.1
NuGet\Install-Package FarNet.Explore -Version 5.1.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FarNet.Explore" Version="5.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FarNet.Explore --version 5.1.1
#r "nuget: FarNet.Explore, 5.1.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install FarNet.Explore as a Cake Addin
#addin nuget:?package=FarNet.Explore&version=5.1.1

// Install FarNet.Explore as a Cake Tool
#tool nuget:?package=FarNet.Explore&version=5.1.1

Explore

FarNet module Explore for Far Manager


Synopsis

The command explore: searches for files using the current FarNet panel explorer or the default file system explorer and opens the result panel. It is similar to FarNet.PowerShellFar Search-FarFile.

Project


Installation

Requirements

  • Far Manager
  • Package FarNet
  • Package FarNet.Explore

Instructions

How to install and update FarNet and modules:
https://github.com/nightroman/FarNet#readme


Command syntax

Syntax:

explore: [<Mask>] [-Exclude ...] [-Directory] [-File] [-Bfs] [-Depth <N>] [-Async] [-XFile <File>] [-XPath <Expression>]
  • <Mask>

    Far Manager mask to include only matching directories and files. Use double quotes for a mask with spaces.

  • -Exclude ...

    Far Manager mask to exclude directories from getting their items. Use double quotes for a mask with spaces.

  • -Directory

    Tells to get only directories.

  • -File

    Tells to get only files.

  • -Bfs

    Tells to use breadth-first-search instead of depth-first-search.

  • -Depth <N>

    The subdirectory depth, zero for just root, negative for unlimited.

  • -Async

    Tells to perform the search in the background and open the result panel immediately. Results are added dynamically.

  • -XFile <File>

    Tells to read XPath from the file. You may use *.xq files so that Colorer treats them as XQuery, the superset of XPath.

  • -XPath <Expression>

    The XPath has to be the last parameter, the rest of the command is used as the XPath expression. The mask may be used with XPath.


Result panel

The result panel provides the following keys and operations

  • [Enter]

    On a found directory opens this directory in its explorer panel as if [Enter] is pressed in the original panel. The opened panel works as the original. [Esc] (or more than one) returns to the search result panel.

    On a found file opens it if its explorer supports file opening.

  • [CtrlPgUp]

    On a found directory or file opens its parent directory in its original explorer panel and the item is set current. The opened panel works as usual. [Esc] returns to the search result panel.

  • [F3]/[F4]

    On a found file opens not modal viewer/editor if the original explorer supports file export. If file import is supported then the files can be edited. For now import is called not on saving but when an editor exits.

  • [F5]/[F6]

    Copies/moves the selected items to their explorer panels.

  • [F7]

    Just removes the selected items from the result panel.

  • [F8]/[Del]

    Deletes the selected items if their explorers support this operation.

  • [Esc]

    Prompts to choose: close or push the result panel or stop the search if it is in progress.


Examples

All examples are for the FileSystem provider panel of the PowerShellFar module.


Find directories with names containing "far" recursively:

explore: -Directory *far*

Find empty directories

explore: -XPath //Directory[not(Directory | File)]

Find directories with README.md

explore: -XPath //Directory[./File[@Name='README.md']]

Mixed filter, mask and XPath:

explore: *.dll;*.xml -XPath //File[compare(@LastWriteTime, '2011-04-23') = 1 and @Length > 100000]

Note: compare is the helper function added by FarNet.


Find .sln files with .csproj files in the same directory:

explore: -XFile sln-with-csproj.xq

where sln-with-csproj.xq:

//File
[
    is-match(@Name, '(?i)\.sln$')
    and
    ../File[is-match(@Name, '(?i)\.csproj$')]
]

Note: is-match is the helper function added by FarNet.


There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
5.1.1 208 1/7/2024
5.1.0 140 1/1/2024
5.0.0 199 11/19/2023
4.0.2 467 4/9/2023
4.0.1 373 1/1/2023
4.0.0 357 11/18/2022
3.0.1 473 8/27/2022
3.0.0 422 7/19/2022
2.1.4 427 7/10/2022
2.1.3 339 11/28/2021
2.1.2 516 12/27/2020
2.1.1 1,262 7/3/2016
2.1.0 1,985 3/27/2014