Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Folders with periods at the beginning not truncated properly on small windows #399

@kjsmita6

Description

@kjsmita6

Describe the bug

If you are in a folder with parent folders that have periods in the beginning, they aren't truncated properly, instead only showing the period (even if multiple, see screenshot).

With the folder created below, the issue happens when tput cols is 100 but I'm sure it depends on the path length.

It would be nice to abbreviate it to at least contain 1 letter so the folder is somewhat identifiable.

Steps to reproduce

  1. $ mkdir -p ~/Desktop/tide_bug/.aperiodfolder/.anotherperiodfolder/real_folder
  2. $ cd ~/Desktop/tide_bug/.aperiodfolder/.anotherperiodfolder/real_folder
  3. Resize the window such that the path is abbreviated to only have periods for those folders starting with periods. In my case, this happened when tput cols was 100.

Screenshots

image

image

Environment

fish version: 3.6.0
tide version: 5.5.1
term: screen
os: macOS 13.2.1
terminal emulator: iTerm
fish startup: 40.09 millis
fisher plugins: franciscolourenco/done decors/fish-colored-man jorgebucaran/fisher jorgebucaran/getopts.fish laughedelic/fish_logo nickeb96/puffer-fish ilancosman/tide@v5

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions