GithubHelp home page GithubHelp logo

d-edge / extlauncher Goto Github PK

View Code? Open in Web Editor NEW
10.0 4.0 1.0 1.08 MB

ExtLauncher is a dotnet tool to search and launch quickly projects in the user's preferred applications.

Home Page: https://www.nuget.org/packages/extLauncher/

License: MIT License

F# 100.00%
xdg-open invoke-item launcher

extlauncher's Introduction


extLauncher logo

actions build license


extLauncher is a dotnet tool to search and launch quickly projects in the user's preferred application. extLauncher is maintained by folks at D-EDGE.

extLauncher terminal

Getting Started

Install extLauncher as a global dotnet tool

dotnet tool install extLauncher -g

or as a dotnet local tool

dotnet new tool-manifest
dotnet tool install extLauncher

Usage

USAGE:
    extLauncher [OPTIONS]

EXAMPLES:
    extLauncher index *.sln
    extLauncher index "(.*)[.](fs|cs)proj$" --regex
    extLauncher launcher mylauncher set execpath
    extLauncher launcher mylauncher remove
    extLauncher launcher vscode set /usr/bin/code --choose file --args="-r %s"
    extLauncher launcher vscode set "$env:LOCALAPPDATA\Programs\Microsoft VS Code\bin\code.cmd" --choose directory
    extLauncher launcher explorer set explorer.exe --choose directory

OPTIONS:
    -h, --help    Prints help information

COMMANDS:
    prompt             (default command) Type to search. Arrows Up/Down to navigate. Enter to launch. Escape to quit
    index <pattern>    Indexes all files recursively with a specific pattern which can be a wildcard (default) or a regular expression
    launcher <name>    Add, update or remove a launcher (optional)
    deindex            Clears the current index
    info               Prints the current pattern and all the indexed files
    refresh            Updates the current index

Build locally

  • Clone the repository
  • Open the repository
  • Invoke the tool by running the dotnet tool run command: dotnet tool run extLauncher (with your arguments)

Caches and data generated by extLauncher

This tool maintains a database to improve its performance. You should be able to find it in the most obvious place for your operating system:

  • Windows: %appdata%\Roaming\extLauncher\extLauncher.db
  • Linux: ~/.config/extLauncher/extLauncher.db

License

MIT

extlauncher's People

Contributors

akhansari avatar aloisdg avatar dependabot[bot] avatar tarmil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

vincentremond

extlauncher's Issues

Regex pattern

Be able to choose between Wildcard or Regex pattern

`dotnet pack` failed

To reproduce:

dotnet pack

Actual:

Microsoft (R) Build Engine version 17.0.0+c9eb9d
Copyright (C) Microsoft Corporation. All rights 

  Determining projects to restore...
  All projects are up-to-date for restore.
  ExtLauncher -> /home/aloisdg/Source/extLauncheetcoreapp3.1/ExtLauncher.dll
  ExtLauncher -> /home/aloisdg/Source/extLauncheet6.0/ExtLauncher.dll
/usr/share/dotnet/sdk/6.0.102/Sdks/Microsoft.NETT.Publish.targets(102,5): error NETSDK1097: It ih an application to a single-file without specif You must either specify a RuntimeIdentifier or false. [/home/aloisdg/Source/extLauncher/ExtLauncher]

Expected:

no error ๐Ÿ‘

How to run on Linux

Hello,

Quick guide to run on Linux:

  • Git clone
  • dotnet publish -c Release -f net6.0 -r linux-x64 --self-contained true
  • sudo cp ./ExtLauncher/bin/Release/net6.0/linux-x64/publish/ExtLauncher /usr/local/bin/extLauncher
  • Restart your Terminal
  • command -v extLauncher should output /usr/local/bin/extLauncher

Tested on Manjaro but should work on your favorite distro too.

Be able to index folders too

Currently only files are indexable.
The idea is to be able to index folders too (e.g. .git).

TBD:

  • Should indexing be generic (simpler, searching both files and folders) or explicit via an argument (more verbose, search either for files or folders or both)?
  • Which folder should be launched, the one that was found or its parent?
  • Should a new feature be implemented in order to separate the item to be indexed and the item to be launched? For instance, search for .git but launch the first .sln.

Add CI/CD

  • Build and test
  • Publish to Nuget
  • Create GitHub Release
  • Attach x64 multitarget binaries to the release (Windows / Linux / Mac)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.