Skip to content

Commit

Permalink
Updated documentation and removed bloat
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackPhlox committed May 7, 2020
1 parent 911f27c commit 34d98c5
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npmpub.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: publish wt-editor-cli on release
name: release

on:
release:
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
# wt-editor-cli
## Statuses
[![GitHub version](https://badge.fury.io/gh/BlackPhlox%2Fwt-editor-cli.svg)](https://badge.fury.io/gh/BlackPhlox%2Fwt-editor-cli)
![release](https://github.com/BlackPhlox/wt-editor-cli/workflows/release/badge.svg)
[![npm version](https://badge.fury.io/js/wt-editor-cli.svg)](https://badge.fury.io/js/wt-editor-cli)

![wt-editor-cli-showcase](https://user-images.githubusercontent.com/25123512/68077919-ba2a4980-fdcc-11e9-879f-6e1fecb6bb20.gif)
A command line editor for Windows Terminal settings

# Prerequisites
- Running Windows 7 or later
- Have the latest version of Windows Terminal (Preview) installed
- Have Node.js 12 installed or later
- Have npm (Comes with Node.js)
# Setup
- Clone this repo ```git clone https://github.com/BlackPhlox/wt-editor-cli.git```
- (Important) If you already have configured your `profiles.json`, I highly recommend you backup your file, just in case. The file can be found here: `%appdata%\..\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\`
- Clone this repo ```git clone https://github.com/BlackPhlox/wt-editor-cli.git``` or<br> using ```npm install -g wt-editor-cli ```
- (Important) If you already have configured your `settings.json`, I highly recommend you backup your file, just in case. The file can be found here: `%appdata%\..\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\`
- Go into the folder `cd wt-editor-cli`
- Run `setup.bat`
- Run `wte`
Expand Down
5 changes: 5 additions & 0 deletions inquirer-file-tree-selection-prompt-custom/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
* `file-tree-selection` type prompt
*/

/*
Customzied from "inquirer-file-tree-selection-prompt": "^1.0.2"
See package.json or npm install inquirer-file-tree-selection-prompt
*/

const fs = require('fs');
const _ = require('lodash');
const chalk = require('chalk');
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wt-editor-cli",
"version": "0.2.1",
"version": "0.2.2",
"description": "Commandline application to change Windows Terminal settings in realtime",
"main": "index.js",
"scripts": {
Expand All @@ -17,8 +17,7 @@
"fuzzy": "^0.1.3",
"inquirer": "^7.0.0",
"inquirer-autocomplete-prompt": "^1.0.1",
"inquirer-chalk-pipe": "^1.3.0",
"inquirer-file-tree-selection-prompt": "^1.0.2"
"inquirer-chalk-pipe": "^1.3.0"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion util.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ read = function(path){
let rawdata = fs.readFileSync(path);
return JSON.parse(rawdata);
} catch(err){
console.error("No config found, remember to run generateConfig.bat");
console.error("Parse error: No settings.json or config.json found, if there is a config.json file, the path to settings.json might be incorrect, else run setup.bat again");
throw err;
}
}
Expand Down

0 comments on commit 34d98c5

Please sign in to comment.