Skip to content

Commit

Permalink
Move comment to TODO.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed Aug 19, 2018
1 parent 43711fb commit 0d35ae7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
15 changes: 14 additions & 1 deletion TODO
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
not attached to a cell at all. this could be the time to introduce
panelink to replace layout_cell
* way to set hints/limits about pane size for resizing
* panning over window (window larger than visible)
* a mode where one application can cross two panes (ie x|y, width =
COLUMNS/2 but height = ROWS * 2)
* separate active panes for different clients
Expand Down Expand Up @@ -131,3 +130,17 @@
* finish hooks for notifys
* for session_closed, if no sessions at all, perhaps fake up a
temporary one

- pan
* some optimization for drawing with cursor off, eg emacs
moves to status line and back a lot - should avoid redrawing
with that happens, maybe do not change offset when cursor
off until some timer expires
* tty_window_offset should try to keep as much as active pane
visible as possible; rather than centering cursor it might
be better if only moved offset when it gets close to an edge
* a way to force offset to a particular part of window, scroll
around the window -- option window-offset = automatic, then
manual resize-window -d -l -r -u to move offset... problem
is that offset is per client+window not per window

16 changes: 0 additions & 16 deletions screen-redraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,22 +437,6 @@ screen_redraw_screen(struct client *c, int draw_panes, int draw_status,
if (ctx.lines == 0)
draw_status = 0;

// XXX some optimization for drawing with cursor off, eg emacs
// moves to status line and back a lot - should avoid
// redrawing with that happens, maybe do not change offset
// when cursor off until some timer expires
// XXX tty_window_offset should try to keep as much as active pane
// visible as possible!
// XXX rather than centering cursor it might be better if only
// moved offset when it gets close to an edge
// XXX edge cases - very small windows?
//
// XXX a way to force offset to a particular part of window, scroll
// around the window
// option window-offset = automatic, manual
// resize-window -d -l -r -u to move offset
// problem is that offset is per client+window not per window

if (draw_borders)
screen_redraw_draw_borders(&ctx);
if (draw_borders && ctx.pane_status != CELL_STATUS_OFF)
Expand Down

0 comments on commit 0d35ae7

Please sign in to comment.