summaryrefslogtreecommitdiffstats
path: root/src/module.rs
AgeCommit message (Collapse)Author
2019-10-05fix: Fix module configuration loading (#487)Zhenhui Xie
2019-10-04refactor: Go from Rust workspaces to a package with nested packages (#480)Matan Kushner
2019-09-30refactor: Refactoring config (#383)Zhenhui Xie
This PR refactors config and puts configuration files for all modules in `configs/`.
2019-09-29feat: Allow segment-specific styling (#378)Zhenhui Xie
Adds the ability to style individual segments in the prompt. The segment documentation is not fully updated in this commit and is waiting on a config refactor so that we can write unified docs.
2019-09-29feat: add memory usage module (#403)Andrew Houts
Adds a module to display system memory and swap usage.
2019-09-26feat: Add Environment Variable module (#409)yuri
2019-09-25feat: Add AWS module (#419)Thomas O'Donnell
Adds a module for displaying the current AWS profile based on the AWS_PROFILE envar.
2019-09-20fix: Add display for unknown battery state (#316)谢祯晖
2019-09-19feat: Add Java Module (#314)Kuba Clark
Implements a Java module which shows basic Java information when inside a Java project.
2019-09-16fix: Update Module::is_empty to check value of segments (#332)Neil Kistner
Previously, a set of empty segments would cause the module to print. This changes the logic of Module::is_empty to check that all the segments are empty instead.
2019-09-14perf: Lazy load files from directory (#335)Nick Young
Changes context to use `once_cell` to lazily evaluate directory listing on first use.
2019-09-12feat: Implement threshold based styling for battery module (#318)谢祯晖
2019-09-10feat: Implement the prompt module for time (#138)John Letey
Add a module which displays the current time in a format requested by the user. Disabled by default.
2019-09-07feat: Add the ability to configure per-module color styles (#285)Kevin Song
Add parsing logic, config support, docs, and integration with other modules for custom styling of each module.
2019-09-05feat: Adds Git State module for showing "REBASING 2/3", etc. (#276)Nick Young
- Adds the git_state module. - Adds git_state to the default prompt order - Updates the documentation to describe the git_state module
2019-09-05fix: Add missing module to list of modules (#294)Thomas O'Donnell
Have added the missing hostname module to the list of all modules.
2019-08-30fix: Adds `nix_shell` to `module::ALL_MODULES` (#264)Nick Young
So that it can be configured in the user's prompt
2019-08-26make the battery module optional for now (#234)Bruno Bigras
The 'battery' crate doesn't support Termux, so we are temporarily making the battery module optional.
2019-08-20fix: Change panicking on unknown module to error print and support module ↵Saurav Sharma
listing flag (#197)
2019-08-18fix: Solve bash & zsh cursor location confusion issue (#183)Saurav Sharma
Solves the issue of cursor location confusion on bash and zsh (#110) . Solution: modify ANSIString and wrap non-printing characters with correct escape sequences.
2019-08-10feat: Add configuration to change the character for non-zero sta… (#133)Kevin Song
Prompt can now switch characters in addition to switching character color. Add configuration options in so that users can do either, both, or neither.
2019-08-05fix: Address longstanding linter errorsMatan Kushner
2019-07-28feat: Allow directory truncation length to be configured (#120)Andrew Dassonville
This allows the directory truncation length to be configured. Previously, it was hard-coded to truncate to 3 parent directories.
2019-07-27feat: Add configuration for add_newline (#116)Matan Kushner
- Replace TableExt with a Config trait that extends toml::value::Table Add configuration for add_newline - add_newline is a root-level configuration value. When set to false, the initial newline before the prompt is removed.
2019-07-14chore: Refactor getting string values from config (#94)Matan Kushner
2019-06-10Add support for prompt configuration (#62)Matan Kushner
- Create `Config` struct that is added to `Context` when initialized - Read `~/.confg/starship.toml` during initialization (can be updated later to also look at `$XDG_CONFIG_HOME`) - `Context` now has a method for creating modules. This allows us to provide modules with a reference to the configuration specific to that module
2019-05-13Implement the git status module (#45)Matan Kushner
2019-05-01Refactor segments into modules (#40)Matan Kushner