Commits
- Commit:
a00b4c97e6dd47ac8ada094890b515cfe6744607
- From:
- Omar Polo <op@omarpolo.com>
- Date:
optimize redraw_window
don't redraw the page if no scrolling happened. There's still need to
``force'' the redraw sometimes, like after a resize or after toggling
olivetti-mode, so add a buffer->force_redraw flag for it.
- Commit:
f9560742eabf2ce27a6204047984be113db92642
- From:
- Omar Polo <op@omarpolo.com>
- Date:
disentangle cmd_scroll_line_up/down and ncurses
cmd_scroll_line_up and down are the fundamental functions called every
time there's a need to scroll the window. cmd_scroll_up/down calls
them in a loop, cmd_next_line and cmd_previous_line calls them too.
And so on.
These two functions, historically predates some of the abstractions of
the `struct buffer', and handle ncurses directly using wscrl and
print_line.
However, since dispatch_stdio calls redraw_tab anyway, there's no need
to update the window content here. (Well, wscrl + one print_vline *may*
be a bit faster than the loop over print_vline in redraw_window, but
we can optimise the latter later.)
This also (should) dis-entangle the cmd_* functions and ncurses
completely \o/
- Commit:
d2399aef06e77f8cdc1eae1dc0b6685089f53af2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
style
- Commit:
1eebc18650e0ce71b6a651ca42b95c3fadd26ad8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
added olivetti-mode (the function)
- Commit:
72b1826897c1396d069eb29216fbcb0414439255
- From:
- Omar Polo <op@omarpolo.com>
- Date:
added olivetti-mode!
- Commit:
db7cc27a493175cc7a9fbabb072245257200b278
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add new-tab-url config to specify the default url for new tabs
- Commit:
1a99965e859a4469e44e826fe9a441db1774b021
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add fill-column config knob
- Commit:
d5493194c967ba9fff329ee44c4c7ea3ed1f541a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move all styling to defaults.c
i.e. don't hardcode text attributes
- Commit:
8dc60352fb6004d15c7f04a3e192148e485d9d37
- From:
- Omar Polo <op@omarpolo.com>
- Date:
teach telescope how to backtab
- Commit:
c92e529c273bbb2b59a02d054c2dcbec3c9b12f0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
link the parser in the build
and:
* add some flags
* document them
* move the customizable stuff to defaults.c
- Commit:
cf25a90f9d1fc5724334a09b562d3d970b332514
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove urgent flag during switch_to_tab
when a tab is closed (C-t x 0) the previous one gets selected via
switch_to_tab, but the TAB_URGENT flag is kept.
- Commit:
46f6e97405d8f8693a6b1b1213974f96f3da3bab
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rename: s/window/buffer (but not always)
this aims to solve (albeit only partially) the confusion between
telescope' ``struct window'' and ncurses WINDOW. It also brings some
more emacs-like nomenclature, which may be a good thing.
- Commit:
a8a482c8f4a387119160d9b4027aad4ae806769c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rename (handle_resize) timeout -> nodelay
nodelay conveys better what the function do
- Commit:
40e10b8c6ae1d32c6d875cd1016e5a9f19bb7db9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix toggle-help not drawing
After the change to debounce frequent handle_resize, the old hack
wasn't working anymore.
- Commit:
de2a69bb424696abd9b1be5232fb7a89fa5f8767
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ask to save a page when it can't be rendered
it's good for thing like images and text with weird encodings.