Ceda EI
e05f37b5b9
Merge branch 'config-file' of ceda/Wish into master
...
Wish is now configured by a config file (although WISH_PLUGINS and
WISH_RIGHT_PLUGINS are still used as a fallback if no config file is
found. This way old setups won't break). Config file allows for higher
customization and re-use of plugins and is easier to maintain for
users. Add gINIe parser to Wish. Parse a gINIe config file for wish
config. Wrappers around plugins are created to allow re-use with
multiple configs and themes.
2019-12-31 13:41:47 +05:30
Ceda EI
9e55279faf
[Fix] Change wrong variable name in custom_text plugin
2019-12-31 13:34:23 +05:30
Ceda EI
afd6dc6668
Make WISH_PLUGINS_SOURCE backwards compatible
2019-12-31 13:32:02 +05:30
Ceda EI
e01b29d4a0
Update install.sh
2019-12-31 12:43:33 +05:30
Ceda EI
186675ae4e
Source config file. Add WISH_CONFIG_FILE array for paths of config files.
2019-12-31 11:55:23 +05:30
Ceda EI
c53939cdfe
Subtract length of powerline symbols from prompt length max length.
2019-12-31 11:25:55 +05:30
Ceda EI
9a2d831432
[Breaking] Update custom_text to better variable namespacing.
2019-12-31 11:23:19 +05:30
Ceda EI
aabc6ebfd6
Add wish.py for generating wrappers around plugins.
2019-12-31 11:19:07 +05:30
Ceda EI
76b9bd3ad1
Add default config for wish.
2019-12-31 10:29:55 +05:30
Ceda EI
20fb08f202
Add gINIe parser.
2019-12-30 22:13:10 +05:30
Ceda EI
48ff98764d
[Feature] Allow WISH_VCS_DEFAULT to be empty
2019-12-29 22:26:08 +05:30
Ceda EI
110217642e
[Bugfix] Fix wrong variable name.
2019-12-29 22:22:58 +05:30
Ceda EI
364463658a
Merge branch 'right-prompt'. Add Right Prompt.
...
Add Right Prompt. Plugins for right prompt go into WISH_RIGHT_PLUGINS
array. This merge is non-breaking. Existing configs will continue to
work as is.
2019-12-29 22:20:57 +05:30
Ceda EI
343e394d40
Update support for right prompt in themes.
2019-12-29 21:32:03 +05:30
Ceda EI
b1fe80cef3
Updated rgb_gradient for better assigning in right prompt
2019-12-29 21:27:56 +05:30
Ceda EI
fe18fd52db
Add WISH_PATH_POWERLINE_MAX_PERC to limit path length.
...
WISH_PATH_POWERLINE_MAX_PERC tries to ensure that the path stays below
the specified percentage of the remaining characters. The path is
shortened by replacing each dir with its initial until it becomes short
enough. The last part is never shortened.
2019-12-29 20:26:47 +05:30
Ceda EI
30ebb302b8
Revert "Update plugins to new specification for wish_append"
...
This reverts commit b389774a50
.
Since PS1 escape codes are allowed once more, this commit is no longer
needed.
2019-12-25 20:25:20 +05:30
Ceda EI
919b102a43
Perform prompt expansion on strings before computing their length.
...
This reallows usage of PS1 escape sequences (\u, \w, \W, \h, etc) in plugins.
2019-12-25 20:22:49 +05:30
Ceda EI
136567e08e
[Feature] Add wish_remaining_chars.
...
wish_remaining_chars is to be used only in main functions of bodies
2019-12-24 22:46:52 +05:30
Ceda EI
97fe2dbcc6
[Feature] Do not add text to PS1 if it is too wide.
2019-12-24 20:49:52 +05:30
Ceda EI
3f156fdd35
[Feature] Calculate left prompt lengths.
...
Added wish_append_left.
2019-12-24 20:21:42 +05:30
Ceda EI
5828900a92
[Feature] Add multiline support for right prompt
...
WISH_RPL (i.e. Right Prompt Lengths), WISH_RIGHT_PS1 are now arrays.
WISH_RPLINE tracks the current line. wish_append_right is called by
wish_append to add to WISH_RIGHT_PS1. If wish_append is called with \n
as text, WISH_RPLINE is incremented. (Current limitation: \n can't be
part of any other string passed to wish_append). Right prompt is now printed
using wish_print_right_prompt which iterates over WISH_RPL and
WISH_RIGHT_PS1. Right prompt size is also calculated in
wish_append_right now.
2019-12-24 19:52:15 +05:30
Ceda EI
f8254ba89a
Add checks for adding powerline to right prompt
2019-12-22 18:45:07 +05:30
Ceda EI
b389774a50
Update plugins to new specification for wish_append
2019-12-15 22:01:29 +05:30
Ceda EI
eb7f3a6aa3
Update rgb_gradient to support right prompt.
2019-12-15 22:00:37 +05:30
Ceda EI
c3fbe4f699
[Feature] Add support for right prompt.
...
Set WISH_RIGHT_PLUGINS to be displayed on right.
wish_append is stateful now. Appends to WISH_RIGHT_PS1 or WISH_LEFT_PS1
based on WISH_STATE. wish_append also calculates the length of right
prompt. This has the downside that right prompt can't include any text
that expands on PS1. Therefore, a limitation needs to be applied on
plugins to only append text that won't be expanded in PS1. (i.e. no \u,
\h, \w, \W, etc).
2019-12-15 21:46:52 +05:30
Ceda EI
079533b686
Add path_powerline
2019-10-12 22:36:47 +05:30
Ceda EI
4bed328fa2
Replace tr with parameter expansion.
2019-09-06 22:24:35 +05:30
Ceda EI
886ec3bfaf
Refactor wish_append.
...
Use parameter splitting instead of splitting into array via grep. Speeds
the prompt upto 2x in some cases.
2019-09-06 20:35:29 +05:30
Ceda EI
ffe7975dfa
Add error handling to battery.
2019-09-06 19:39:45 +05:30
Ceda EI
ab5df51c2a
Set plain as fallback theme if theme not found. Better variable names.
2019-09-06 19:39:37 +05:30
Ceda EI
2c6c83b826
Replace eval with variable indirection.
2019-09-06 18:05:12 +05:30
Ceda EI
d9e86e4421
Add theme lowfi-neon
2019-07-18 17:16:19 +05:30
Ceda EI
78253e1939
Add WISH_AUTONEWLINE. Adds a newline is the output doesn't end with \n
2019-06-10 16:48:40 +05:30
Ceda EI
31ec315ffd
Use git if it exists in install script
2019-05-15 13:25:33 +05:30
Ceda EI
f1b966c5e0
Add EXIT_CODE_SMILEY_HIDE_ON_PASS
2019-03-29 02:26:12 +05:30
Ceda EI
02c535506d
Update install.sh
2019-03-08 12:49:16 +05:30
Ceda EI
05cf509fd7
Add gradient theme
2019-03-02 12:38:54 +05:30
Ceda EI
9944da2b92
Update README
2019-02-22 18:57:16 +05:30
Ceda EI
425ddc114e
Re-order items in vcs
2019-02-19 00:05:40 +05:30
Ceda EI
5f90303bb1
Update README
2019-02-18 18:21:52 +05:30
Ceda EI
2abbb59e94
Update README
2019-02-18 18:03:38 +05:30
Ceda EI
9981f294cd
Add install.sh
2019-02-18 17:10:41 +05:30
Ceda EI
66f31d957b
Add python_venv plugin. Update path plugin.
...
Add icon for non-writable directories.
2019-02-17 16:41:02 +05:30
Ceda EI
713da785c4
Add custom_text, exit_code_smiley plugins
2019-02-17 13:00:52 +05:30
Ceda EI
25e5c14130
Set colors for every plugin in plain theme.
2019-02-17 11:10:13 +05:30
Ceda EI
1ac232d791
Add rgb_gradient theme
2019-02-17 11:09:52 +05:30
Ceda EI
cb119e2437
Minor fix to vcs.sh
2019-02-17 10:36:45 +05:30
Ceda EI
f1646abba6
Add exit_code, bg_jobs plugins.
...
Minor fix to vcs.sh
2019-02-16 23:01:30 +05:30
Ceda EI
2ffe6cfd47
Add vcs plugin for git. Change charging icon
2019-02-16 22:27:29 +05:30