Alarm symbol in the agenda_event_format overflows line

Aperta
#1,336 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 7 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Riproduci l’overflow nella vista agenda usando il calendario di test fornito, view.frame = width o color e un evento contenente un allarme. Inizia tracciando il comportamento del rendering dell’agenda per agenda_event_format e {alarm-symbol}; il lavoro è completato quando il riquadro rimane continuo senza spostare l’ultimo carattere sulla riga successiva.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug:

If the view.agenda_event_format variable has the {alarm-symbol} in it and an event has an alarm, it will push the final character (either the frame or the last character of the description) to the next line.

To Reproduce:

  1. Set view.frame to either color or width
  2. Have a calendar event with an alarm
  3. Highlight that event in the agenda view

Expected behavior:

The frame should bound the agenda with no gaps, regardless of the agenda_event_format variable.

Screenshots:
Took a screencap to better show the issue. Unfortunately GitHub keeps saying the file is corrupted, so I uploaded it to YouTube. Link here: https://youtu.be/fzZ1AT6FZmE

OS, version, khal version and how you installed it:

  • The output of khal --version: khal, version 0.11.3.dev169+g754840c
  • Installation method: PyPI with pipx
  • python version: 3.11
  • OS: Arch Linux on kernel 6.7.4-arch1-1
  • Your khal config file:
[calendars]
   [[Test]]
   	path=~/.local/share/calendarsri/test-calendar/
   	color=auto

[locale]
timeformat = %H:%M
dateformat = %Y-%m-%d
longdateformat = %Y-%m-%d
datetimeformat = %Y-%m-%d %H:%M
longdatetimeformat = %Y-%m-%d %H:%M
firstweekday = 6

[default]
default_calendar = Test
highlight_event_days = true
enable_mouse = false

[highlight_days]
color = ''

[view]
frame = width

Additional context
I made a test calendar with the events shown in the video, including alarms and descriptions.
test-calendar.zip

Lingua principale
Python
Stelle
3.1k
Fork
243
Merge medio
12g 8h
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pimutils/khal

Tutte le issue di pimutils/khal

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.