/cx

A simple fzf wrapper for windows 10. And it's not opening a new cmd windows everytime

Primary LanguageBatchfile

Project Status

Status: rewriting in rust using clap
Upcoming features:

  • cd to path
  • open path with certain program
  • run from command history
  • cd to path history

About

cx is a fzf wrapper written in batch script. It's functions is to make it easy to use fzf for daily use. cx is not opening a new cmd window every single time and cx saves your command history

Installation

  1. Clone this repo. I clone it to %UserProfile%
  2. Add that folder to %PATH%
  3. Run env.cmd. If you want to use dir /s/b instead, change it in env.cmd and run it again (the default is using fd)

Usage

  1. cm
    [Cmd Move]cd to selected path

  2. cma
    [Cmd Move All]cd to selected path including hidden directory

  3. cn
    [Cmd Neovim]open selected file using neovim

  4. cna
    [Cmd Neovim All]open selected file using neovim including hidden directory

  5. ch (on process)
    [Cmd History]run selected command from command history. You must exit using z, otherwise your last session command won't saved

  6. cc <program-to-open-with> [<args or flags>] (not available yet)
    [Cmd Choose]open selected file using <program-to-open-with>

links

ff, fd, W art in the background ( ͡° ͜ʖ ͡°)