Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added new variable POWERLEVEL9K_DIR_PATH_ABSOLUTE | Christo Kotze | 2018-02-23 | 2 | -3/+16 |
| | | | | | | If user sets POWERLEVEL9K_DIR_PATH_ABSOLUTE to true, uses absolute paths instead of home folder abbreviation, e.g. /Users/chris/... instead of ~/... | ||||
* | Fixed typo - ~= instead of != | Christo Kotze | 2018-02-23 | 1 | -1/+1 |
| | |||||
* | Added test for root based folder to first&last | Christo Kotze | 2018-02-23 | 1 | -1/+2 |
| | |||||
* | Updated dir.spec test for first_and_last | Christo Kotze | 2018-02-23 | 1 | -1/+1 |
| | |||||
* | Added truncate_to_first_and_last strategy | Christo Kotze | 2018-02-23 | 3 | -29/+63 |
| | | | | | Truncate middle directories from the path. How many directories will be untouched is controlled by POWERLEVEL9K_SHORTER_DIR_LENGTH. | ||||
* | Updated README dir truncation strategies | Christo Kotze | 2018-02-23 | 1 | -1/+3 |
| | | | | | | Added `truncate_to_last` Added `truncate_absolute` Moved `truncate_to_unique` before folder marker | ||||
* | Updated dir.spec tests | Christo Kotze | 2018-02-22 | 1 | -1/+1 |
| | |||||
* | Update to truncate_absolute | Christo Kotze | 2018-02-22 | 1 | -1/+1 |
| | |||||
* | Removed final SEDs and more comments | Christo Kotze | 2018-02-22 | 2 | -21/+40 |
| | |||||
* | Comments, trunc_to_last, trunc_absolute | Christo Kotze | 2018-02-22 | 2 | -42/+106 |
| | | | | | | | Added comments throughout the code Added `truncate_to_last` - displays only the current folder Added `truncate_absolute` - displays only the last POWERLEVEL9K_SHORTER_DIR_LENGTH characters - see #736 | ||||
* | Missed one variable name change | Christo Kotze | 2018-02-22 | 1 | -1/+1 |
| | | | | There's always that one pesky variable name you forget to change... | ||||
* | All code should now be functional | Christo Kotze | 2018-02-22 | 1 | -1/+1 |
| | | | | *Fingers crossed* | ||||
* | Updated test for trunc_to_unique | Christo Kotze | 2018-02-22 | 1 | -4/+4 |
| | | | | | Instead of testing for number of folders, now only tests if string is longer than 1 character. | ||||
* | Fixed silly coding error | Christo Kotze | 2018-02-22 | 1 | -5/+3 |
| | | | | Did `local 3=...` instead of `3=...` | ||||
* | Update for Travis | Christo Kotze | 2018-02-22 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | While zsh accepts the following code: ``` local paths=(${(s:/:)${1//"~\/"/}}) ``` Travis fails unless it is ``` local paths=$1 paths=(${(s:/:)${paths//"~\/"/}}) ``` | ||||
* | Updated truncatePath() | Christo Kotze | 2018-02-22 | 1 | -6/+7 |
| | | | | Added variable `delim_len` with test when delim="" | ||||
* | Another Travis test | Christo Kotze | 2018-02-20 | 1 | -1/+2 |
| | |||||
* | Another change to test Travis | Christo Kotze | 2018-02-19 | 1 | -3/+3 |
| | |||||
* | Changed path splitting to test Travis | Christo Kotze | 2018-02-19 | 1 | -3/+3 |
| | |||||
* | Updated path splitting line | Christo Kotze | 2018-02-19 | 1 | -1/+1 |
| | | | | Works in the console, but Travis doesn't like it. | ||||
* | Fixed error in coding | Christo Kotze | 2018-02-19 | 1 | -2/+1 |
| | | | | Shouldn't code when tired lol. | ||||
* | Forgot to update code when creating new func | Christo Kotze | 2018-02-19 | 1 | -2/+3 |
| | |||||
* | Added truncatePath to utilities.zsh | Christo Kotze | 2018-02-19 | 2 | -60/+108 |
| | | | | | | | | | | | | Added `function truncatePath()` to utilities.zsh to take care of truncation. This is pure zsh code, without calls to `sed`. Parameters are: * $1 Path: string - the directory path to be truncated * $2 Length: integer - length to truncate to * $3 Delimiter: string - the delimiter to use * $4 From: string - "right" | "middle". If omited, assumes right. Cleaned up code to use the new function instead. | ||||
* | Improved truncation code | Christo Kotze | 2018-02-19 | 1 | -2/+2 |
| | |||||
* | Updated truncate_to_unique | Christo Kotze | 2018-02-18 | 1 | -2/+3 |
| | |||||
* | Updated code for testing | Christo Kotze | 2018-02-18 | 1 | -30/+30 |
| | |||||
* | Added / for non-home folders | Christo Kotze | 2018-02-18 | 1 | -0/+2 |
| | |||||
* | Rewrote trunc middle/right to use for loop | Christo Kotze | 2018-02-18 | 1 | -47/+41 |
| | |||||
* | Fixed another typo - shouldn't code when sick :p | Christo Kotze | 2018-02-18 | 1 | -1/+1 |
| | |||||
* | Fixed typo | Christo Kotze | 2018-02-18 | 1 | -1/+1 |
| | |||||
* | Added test for dir_length == trunc_length | Christo Kotze | 2018-02-18 | 1 | -1/+1 |
| | |||||
* | Updated truncate_from_right test | Christo Kotze | 2018-02-18 | 1 | -3/+2 |
| | |||||
* | Changed current_dir - Test Travis response | Christo Kotze | 2018-02-18 | 1 | -2/+3 |
| | |||||
* | Fix issue with SHORTEN_DELIM | Christo Kotze | 2018-02-17 | 1 | -3/+6 |
| | | | | | If `$POWERLEVEL9K_SHORTEN_DELIMITER` is a unicode escape sequence, its length is 6 instead of 1. Added variable to hold actual character(s) | ||||
* | Updated previous test as Travis still fails | Christo Kotze | 2018-02-17 | 1 | -1/+1 |
| | |||||
* | Fixed truncate_from_right to incl length of delim | Christo Kotze | 2018-02-17 | 1 | -11/+11 |
| | | | | | Updated length test to include delimiter length. Added comments | ||||
* | Accidentally deleted )) which threw an error | Christo Kotze | 2018-02-17 | 1 | -1/+1 |
| | |||||
* | Fixed accidentally truncating current folder too | Christo Kotze | 2018-02-17 | 1 | -3/+3 |
| | |||||
* | Added edge case tests for ~ and / | Christo Kotze | 2018-02-17 | 1 | -34/+43 |
| | | | | Fixed edge cases | ||||
* | Streamlined dir strategies | Christo Kotze | 2018-02-17 | 1 | -8/+31 |
| | | | | | Removed sed from `truncate_middle`, `truncate_from_right` and partially from `truncate_with_package_name` | ||||
* | Added tests for DIR_PATH_SEPARATOR_FOREGROUND | Christo Kotze | 2018-02-14 | 1 | -5/+29 |
| | |||||
* | Updated testBoldRootSubsubdirWorks() | Christo Kotze | 2018-02-14 | 1 | -0/+2 |
| | | | | Forgot to initialize the bolding variable | ||||
* | Added tests for other folder highlighing | Christo Kotze | 2018-02-14 | 1 | -3/+79 |
| | |||||
* | Added test for Home folder highlighting | Christo Kotze | 2018-02-14 | 1 | -0/+12 |
| | |||||
* | Updating Travis tests for bold dir | Christo Kotze | 2018-02-14 | 2 | -30/+48 |
| | |||||
* | More code cleaning (extra %F calls) | Christo Kotze | 2018-02-14 | 1 | -4/+4 |
| | |||||
* | Cleaned up DIR_PATH_HIGHLIGHT code | Christo Kotze | 2018-02-14 | 1 | -4/+4 |
| | | | | | Removed double call to %F and changed $x variables to ${x} for consistency. | ||||
* | Explicitly test if DIR_OMIT_FIRST_CHARACTER = true | Christo Kotze | 2018-02-14 | 1 | -3/+3 |
| | | | | | Changed ${POWERLEVEL9K_DIR_OMIT_FIRST_CHARACTER} to "${(L)POWERLEVEL9K_DIR_OMIT_FIRST_CHARACTER}" == "true" Lines 876 & 882 | ||||
* | Fixed = instead of == inside [[]] line 865 | Christo Kotze | 2018-02-14 | 1 | -1/+1 |
| | | | | | Missed an = inside the test for highlighting the last dir of the working directory. Travis should work now *fingers crossed* | ||||
* | Parameter substitution instead of dirname/basename | Christo Kotze | 2018-02-14 | 1 | -4/+8 |
| | | | | | Replaced external calls to `dirname` and `basename` with paramater substitution. |