GithubHelp home page GithubHelp logo

basu-dev / far-a-command-prompt-text-viewer-like-cat-for-linux Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 5.74 MB

A file opener for Windows command prompt and PowerShell like 'cat' for linux distributions.

Home Page: https://farcli.netlify.app/

Rust 57.95% Makefile 13.48% D 4.61% HTML 23.95%
file-viewer cli cat command-prompt

far-a-command-prompt-text-viewer-like-cat-for-linux's Introduction

far (A file reader for Windows System like cat for linux.)

A file opener for Windows command prompt and PowerShell like 'cat' for linux distributions.

Motivation

Using linux it was very comforting to see the file contents on the terminal using cat command. But while using windows , there is none, at least not preinstalled.So I tried to create the similar application that uses command far for Windows Command Prompt and Powershell.

Install

To download the far visit https://farcli.netlify.app/ and follow accordingly.

After the command completes, You can directly paste the path to that executable file far.exe to environment variable and you can use far in your command prompt. Now go to Command Prompt and type far, it should work. If it doesn't work, the path to the executable is not placed in environment variable. If you don't know that you can make a google on how to set environment variable and you are ready to go on.

Usage

Using far you can do same stuff as cat like

far src/main.js

The syntax is

	far <filepath> < --c | --copy | copy>

where

  • far is the command
  • replace with actual filepath like src/main.js or abc.txt Now with this command it will print the file like
 C:\Users\ABC\Desktop>far main.js

 1  | var name="John Doe";
 2  | function printName(name){
 3  |	console.log(name)
 4  | }
 5  | printName(name);
 6  |

But if you want to select and copy you don't want the row counter at the left. So to sort it out there is third argument. The third argument is optional. You can put any of --c or --copy or copy as the third argument and the output looks like following:

 C:\Users\ABC\Desktop>far main.js --c

 var name="John Doe";
 function printName(name){
	console.log(name)
 }
 printName(name);

And you can select and copy any part of the code and paste wherever you want it.

far-a-command-prompt-text-viewer-like-cat-for-linux's People

Contributors

basu-dev avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.