Skip to content

Commit

Permalink
Add external user configuration & persistent cli history, refs #8
Browse files Browse the repository at this point in the history
  • Loading branch information
skerit committed Aug 9, 2017
1 parent 59fb677 commit fc05068
Show file tree
Hide file tree
Showing 3 changed files with 353 additions and 87 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

* `Janeway#args_name_map` property can be used to change which name `ArgsLogLine` shows (by default it's the filename with .js stripped of)
* Fix bug where indicator hover text would not be saved if updated while already visible
* Added capability to store external user configuration in `~/.janeway/janeway.json`
* Added persistent cli history

## 0.2.2 (2017-04-17)

Expand Down
103 changes: 103 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,109 @@ Here are a few things you might need to configure first:
* You might need `xvfb` on headless SSH servers
* If you're multiplexing SSH connections, the first one will need to have X11 forwarding enabled!

# Stored configuration

You can store your configuration in `~/.janeway/janeway.json`.

These are currently the default values:

```javascript
{
"autocomplete" : {

// Set to false to turn autocomplete off
"enabled" : true,

// The height of the autocomplete popup
"height" : 6
},

// output is the main output screen in the middle
"output" : {

// Main scrollbar style
"scrollbar": {
"bg" : "blue"
},

// General output style
"style" : {
"bg" : "transparent",
"fg" : "white"
}
},

// cli is the inputbox on the bottom
"cli" : {
"style" : {
"bg" : "white",
"fg" : "blue"
}
},

// the statusbar on the bottom
"status" : {
"enabled" : true,
"style" : {
"bg": "grey",
"fg": "white"
}
},

// popups, also used by autocomplete
"popup" : {
"scrollbar": {
"bg" : "green"
},
"border": {
"type" : "line"
},
"style": {
"bg": "blue",
"fg": "white"
},
"shadow": true,
},

// menubar
"menu" : {
// This style only applies to unused parts and indicators
"style": {
"bg": "white"
},
"button": {
"bg" : "white",
"fg" : 235,
"focus" : {
"bg" : "red",
"fg" : 249
},
"hover" : {
"bg": "red",
"fg": 249
}
}
},

// indicators
"indicator": {
"style": {
"bg": 240,
"fg": 231,

}
},

"cli_history": {

// Amount of lines to save
"save" : 100,

// Use title in filename?
"per_title" : true
}
}
```

## Author

Expand Down
Loading

0 comments on commit fc05068

Please sign in to comment.