Skip to content

FusionFroze/fset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FSET

You use different applications with different file(s) or tab(s) for different tasks. Switching between them means closing everything and starting over manually.

fset does this for you with a single command.

Installation

Prerequisite: Node.js v18+

Install globally:

$ npm i -g @fusionfroze/fset

For local development:

$ npm install
$ npm link

How to use it

Setting up a new Environment

$ fset create demo

This will open the input interface

$ fset create demo
Application 1
? Enter the path to the app: "C:\Users\Public\Desktop\Google Chrome.lnk"

Here you have to enter the path that exactly points to the location of the application. Then you will be asked to enter URL if you need it.

(Tip: If you can't find the path, you can just drag and drop the app into your terminal to paste the path.)

$ fset create demo
Application 1
✔ Enter the path to the app: "C:\Users\Public\Desktop\Google Chrome.lnk"
Enter URL(s) or file path(s) you want the app to open with.
Press enter with an empty input to exit the input interface.
? URL-1: https://clandor.com

You can exit the input interface for the current application by pressing enter with an empty input.

$ fset create demo
Application 1
✔ Enter the path to the app: "C:\Users\Public\Desktop\Google Chrome.lnk"
Enter URL(s) or file path(s) you want the app to open with.
Press enter with an empty input to exit the input interface.
✔ URL-1: https://clandor.com
✔ URL-2:
? Add another app? (Y/n)

Now you will be given a choice, you can either add a new application or can exit the interface by entering n. If you choose n, a success message will show that your new environment is set up successfully. Or, alternatively you can continue adding more application requried for the task.

$ fset create demo
Application 1
✔ Enter the path to the app: "C:\Users\Public\Desktop\Google Chrome.lnk"
Enter URL(s) or file path(s) you want the app to open with.
Press enter with an empty input to exit the input interface.
✔ URL-1: https://clandor.com
✔ URL-2:
✔ Add another app? No

demo created successfully.

If you accidentally press y when you don't want to add any more applications, you can simply type exit to exit the input interface and save the environment you are creating.

$ fset create demo
...
✔ Add another app? Yes
Application 2
✔ Enter the path to the app: exit

demo created successfully.

Opening an Environment

$ fset open demo

This command will open all the applications with set URL(s) or file(s) instantly.

Removing an Environment

$ fset remove demo

You will be prompted once to confirm the operation. Once removed, the action is irreversible.

List all the Environments set up in your machine

$ fset ls

This will list all the Environments with the applications in each of them. Output -

demo
    --Google Chrome

To see detailed list, with application path and URL(s) or file(s) for each application, type this command -

$ fset ls -l

or

$ fset ls -long

Output -

demo
    --Google Chrome
    > App Path: "C:\Users\Public\Desktop\Google Chrome.lnk"
    > URls:
        1: https://clandor.com

About

Launch everything you need for a specific task, with a single command.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors