Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand the full view directory in prompt #7414

Closed

Conversation

hotoolong
Copy link

Description

Allows you to set the range in which the full directory is displayed in the prompt.

For example
If I was working in

/Users/hotoolong/.ghq/github.com/hotoolong/translate.nvim

By default, the display is as follows. (For my settings)

~/.g/g/h/translate.nvim (master|✔) $ 

If you set the full directory to display to 3,

set -g fish_prompt_dir_full_name_range 3

It appears as follows

~/.g/github.com/hotoolong/translate.nvim (master|✔) $

The following is similar issue.
#3566

TODOs:

  • Changes to fish usage are reflected in user documentation/manpages.
  • Tests have been added for regressions fixed
  • User-visible changes noted in CHANGELOG.rst

@faho
Copy link
Member

faho commented Oct 23, 2020

Sorry, I don't think there's a need for multiple variables here, use $fish_prompt_pwd_dir_length or use your own function if you want more complicated behavior.

@faho faho closed this Oct 23, 2020
@faho faho added this to the will-not-implement milestone Oct 23, 2020
@hotoolong
Copy link
Author

Thanks for the quick reply. I was hoping that some way of displaying the parent directory from the current directory would be added.
It's a shame this time, but I'll try to deal with it by overwriting the function.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants