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

Better focus in column mode #281

Merged
merged 2 commits into from
Nov 24, 2020

Conversation

mruwek
Copy link
Contributor

@mruwek mruwek commented Nov 23, 2020

This PR does 3 things:

  • Properly detects first task in column when home action is executed and stops there. Previously it focused on divider between first task and title widget.
  • Show the task at the bottom of the column in full. (fixes: columns view is always one line too short #223)
  • Highlight title widget so the user always knows where to move next, even when currently focused column is empty.

When scrolling down we need to switch to valign=bottom to properly show
last lines of the TodoWidget at the end of the TodoListWidget. Also
config <Down> key to use 'down' action in default config. Without such
config entry, using <Down> key would not take advantage of valign fix.

Also do not focus dividers when jumping with 'home' shortcut.
Previously there wasn't any indicator of focus for empty columns. Now
title widget is highlighted then. Color is the same as for TodoWidget
focus and already configured by 'focus_background_color'.
@codecov-io
Copy link

codecov-io commented Nov 23, 2020

Codecov Report

Merging #281 (3d34497) into master (37fcd38) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #281    /-   ##
=======================================
  Coverage   97.08%   97.08%           
=======================================
  Files          51       51           
  Lines        2950     2950           
  Branches      457      457           
=======================================
  Hits         2864     2864           
  Misses         61       61           
  Partials       25       25           
Impacted Files Coverage Δ
topydo/lib/Config.py 93.64% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 37fcd38...3d34497. Read the comment docs.

@davesteele
Copy link
Contributor

FYI, I plan on releasing before the end of the year.

@davesteele davesteele merged commit 4c078a9 into topydo:master Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

columns view is always one line too short
3 participants