charmbracelet / charmbracelet/bubbles

(v2) Add modification time to the filepicker

Open
#805 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
8.9k
Forks
457
Avg merge
1d 18h
Merged PRs (30d)
5

Description

Per the below discussion, we've decided this is a good addition and are queueing it for development. This should happen against the `v2-exp` branch for Bubbles v2.

### Discussed in https://github.com/charmbracelet/bubbles/discussions/792

Originally posted by **loicalbertin** May 21, 2025
To make filepicker looks like `ls -l`, it would be awesome if we could optionally add file modification times to the filepicker bubble.

Ideally, the filepicker should be configurable to:

- Hide/show modification time
- Allow providing a custom layout for `time.Format()`

Actually, I just discovered this discussions forum when reading the Contributing document before creating a PR (I had hard times to find it before that readme links are incorrect).

So I already have done few things that can be used as a discussion support:

- I have created an issue #780
- I forked bubbles and made a first implementation ([see compare here](https://github.com/charmbracelet/bubbles/compare/master...loicalbertin:bubbles:feature/GH-780-modtime-on-filepicker))
- I have created a demo app https://github.com/loicalbertin/bubbles-filepicker-with-modtime
- I'm ready to open a PR if you're interested by this feature

Here is the recorded demo:
![demo](https://github.com/user-attachments/assets/14d4c47f-f1d5-4fd4-87ab-667c41a72be1)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.