mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 13:15:20 +01:00
[PR #651] [MERGED] Launcher truncate options & related refactors #7873
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#7873
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/JakeStanger/ironbar/pull/651
Author: @JakeStanger
Created: 6/28/2024
Status: ✅ Merged
Merged: 11/24/2024
Merged by: @JakeStanger
Base:
master← Head:feat/launcher-truncate📝 Commits (4)
df4bfc8feat(truncate): explicitoffmodecc6f21erefactor: take reference into image provider8b05ed5refactor: move label truncate function to ext traitda13b9dfeat(launcher):truncateandtruncate_popupconfig options📊 Changes
19 files changed (+230 additions, -146 deletions)
View changed files
📝
Cargo.lock(+8 -8)📝
docs/modules/Clipboard.md(+9 -9)📝
docs/modules/Focused.md(+9 -9)📝
docs/modules/Launcher.md(+15 -7)📝
docs/modules/Music.md(+21 -21)📝
src/config/mod.rs(+1 -1)📝
src/config/truncate.rs(+35 -22)📝
src/gtk_helpers.rs(+18 -2)📝
src/image/gtk.rs(+2 -2)📝
src/image/provider.rs(+4 -3)📝
src/modules/clipboard.rs(+2 -1)📝
src/modules/custom/image.rs(+1 -1)📝
src/modules/focused.rs(+3 -2)📝
src/modules/launcher/item.rs(+50 -16)📝
src/modules/launcher/mod.rs(+46 -36)📝
src/modules/music/mod.rs(+2 -2)📝
src/modules/networkmanager.rs(+2 -2)📝
src/modules/sway/mode.rs(+1 -1)📝
src/modules/upower.rs(+1 -1)📄 Description
Adds two new options to the
launchermodule:truncate- applies to application names whenshow_namesis enabled. This defaults tomode = "end".truncate_popup- applies to window names within the group popup. This defaults tomode = "end" max_length = 25and replaces the previous hard-coded implementation.The
truncate.modeoption can now also be explicitly set tooffeverywhere it's taken. This is the same as leaving it asnullin most cases for now, but I will be reviewing the other modules to ensure they too are using a sensible default.The truncation code has also been refactored.
Resolves partially #633
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.