Commit Graph

41 Commits (cdf3fa51f21d3ec39cc9a54a9e6271dab11c8741)

Author SHA1 Message Date
Dominik Ritter 8bb86908d7 Add tests 6 years ago
Yang Tang a98fa7ff54
Merge branch 'master' into fix-rprompt-icons-cut-off 6 years ago
Yang Tang 877ef61773 Fix icons cut off in RPROMPT segments 6 years ago
Dominik Ritter df0c2198a0 Fix tests 6 years ago
Dominik Ritter e0630d7573 Merge branch 'fix_colors' into prepare_066 6 years ago
Dominik Ritter ef5f9bb1b4 Fix tests 6 years ago
Dominik Ritter c7e543ff23 Merge branch 'fix_colors' into prepare_066 6 years ago
Dominik Ritter e970a021c8 Fix tests 6 years ago
Dominik Ritter 81fd69ae98 Update shunit2 to newest version 6 years ago
Dominik Ritter 06de83cc0f Prepare tests for performance optimizations 6 years ago
Dominik Ritter 4972f0b8eb Improve tests by making use of local variables 6 years ago
Dominik Ritter 7bfa471e41 Fix tests for dir segment on OSX 6 years ago
Dominik Ritter d9d9fb9b6b Merge remote-tracking branch 'ytang/fix-icons-cut-off' into staging_065
Conflicts were:
- test/segments/command_execution_time.spec and
test/segments/go_version.spec: All conflicts come from renaming color
names on next (#703) and adding a whitespace to the Visual Identifier
(#854) on master.
7 years ago
Dominik Ritter 55473c450a Merge branch 'master' into staging_065
Conflicts were:
- README.md: Two commits targeted the brightness table. #781 from
14. April 2018 on master and #684 from 05. December 2017 on next.
- powerlevel9k.zsh-theme: Two commits targeted the rbenv segment. Both
achieve the same thing: To show the Ruby version number always. #795 on
next from 14. April 2018 and #610 on master from 28. September 2017. I
went with #795 here as this - although being newer - is the one on
master, and that should be more stable.
7 years ago
Yang Tang 5e0b924346 Update unit tests for fixing icons cut off 7 years ago
Dominik Ritter 83ad5b598e Add test for wrong truncation if switching back to home folder
This happens if a user switches from a subdirectory of $HOME
back to the home folder and truncation strategy is "truncate
folders from left". Then the folder is displayed as .../~

PR: #773
7 years ago
Christo Kotze 75a763f901 Updated test for POWERLEVEL9K_DIR_PATH_ABSOLUTE 7 years ago
Christo Kotze ddcdad77a7 Added new variable POWERLEVEL9K_DIR_PATH_ABSOLUTE
If user sets POWERLEVEL9K_DIR_PATH_ABSOLUTE to true, uses absolute paths
instead of home folder abbreviation, e.g. /Users/chris/... instead of
~/...
7 years ago
Christo Kotze 3674af1cd9 Updated dir.spec test for first_and_last 7 years ago
Christo Kotze 08432bf70c Added truncate_to_first_and_last strategy
Truncate middle directories from the path. How many directories will be
untouched is controlled by POWERLEVEL9K_SHORTER_DIR_LENGTH.
7 years ago
Christo Kotze 1abb519f59 Updated dir.spec tests 7 years ago
Christo Kotze 441fb277d9 Comments, trunc_to_last, trunc_absolute
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
7 years ago
Christo Kotze 4fc4d15703 Added tests for DIR_PATH_SEPARATOR_FOREGROUND 7 years ago
Christo Kotze 276bc9017c Updated testBoldRootSubsubdirWorks()
Forgot to initialize the bolding variable
7 years ago
Christo Kotze dba80dbee9 Added tests for other folder highlighing 7 years ago
Christo Kotze 1e54872873 Added test for Home folder highlighting 7 years ago
Christo Kotze b6f20d1032 Updating Travis tests for bold dir 7 years ago
Christo Kotze 69e55a30b3 Updated tests for resetting bold
Updated tests to include the `%b%K{blue}%F{black}` or similar.
TODO: Still have to create a test for a bolded last segment
7 years ago
Ben Hilburn 9f4faf7f21 Merge pull request #596 from eumiro/truncate_to_unique
Add TRUNCATE_TO_UNIQUE shortening dir strategy
7 years ago
Ben Hilburn 02332d5962 Merge branch 'master' into next 7 years ago
Miroslav Šedivý 73a9ee7c87 add TRUNCATE_TO_UNIQUE shortening dir strategy
This creates the shortest unique path elements that can be unambiguously expanded to the original path.
7 years ago
Christian Höltje 0fded47ab5 Added test for POWERLEVEL9K_HOME_FOLDER_ABBREVIATION 7 years ago
Dominik Ritter a234636982 Fix empty delimiter
Even if the delimiter is empty, the min length should be 1.
This fixes #558
7 years ago
Dominik Ritter 44eaa0ef33 Add tests for `truncate_with_package_name` strategy of dir segment
This is a backport from #344
8 years ago
Ben Hilburn 36d74f34c2 Merge branch 'next' into dir_first_character 8 years ago
Dominik Ritter 6e1259ee99 Remove unnecessary variable from tests 8 years ago
Dominik Ritter 8e99944797 Add test for truncate_with_folder_marker truncation strategy 8 years ago
Dominik Ritter b6e55c189e Add tests for omitting first character in `dir` segment 8 years ago
Dominik Ritter 3d451499aa Fix tests 8 years ago
Arav Singhal 8d7a4e462a Update test for required behavior 8 years ago
Dominik Ritter 7cf46711cc Add tests for the dir segment 9 years ago