Daniel Eklöf
dec6f963cb
selection: add selection_<type>_has_data()
...
Returns true when there is data available for paste in the
clipboard/primary selection.
2020-09-09 19:01:21 +02:00
Daniel Eklöf
c3cacb4704
selection: add selection_<type>_unset()
...
These functions clear the current selection.
2020-09-09 19:01:21 +02:00
Daniel Eklöf
99023cae99
Merge branch 'window-size-in-characters' into master
2020-09-09 19:00:30 +02:00
Daniel Eklöf
da091fb9d3
Merge branch 'keymap-shift-return' into master
2020-09-09 19:00:13 +02:00
Daniel Eklöf
0ff962a182
Merge branch 'fix-pipe-selected-not-being-recognized-as-a-valid-action' into master
...
Closes #125
2020-09-09 18:59:09 +02:00
Daniel Eklöf
eb6737ca25
Add -W,--window-size-chars, and foot.ini:initial-window-size-chars
...
* Add -W,--window-size-chars command line option
* Add initial-window-size-chars foot.ini option
* Add -w,--window-size-pixels command line option
* Add initial-window-size-pixels foot.ini option
* Deprecate -g,--geometry command line option in favor of
-w,--window-size-pixels
* Deprecate geometry option in foot.ini in favor of
initial-window-size-pixels
2020-09-08 19:41:00 +02:00
Daniel Eklöf
fa6ad0f030
changelog: move deprecation section up first, change most ‘footrc’ -> ‘foot.ini’
...
The deprecation sections mentions ‘footrc’ being deprecated, and
replaced by ‘foot.ini’. Since a lot of the changelog entries refer to
foot.ini, make sure the user sees this first.
Also, use foot.ini (and not footrc) consistently in all changelog entries.
2020-09-08 19:37:59 +02:00
Daniel Eklöf
04e8588e05
config: key binding: free pipe cmd/argv when action is invalid
2020-09-08 19:09:36 +02:00
Daniel Eklöf
eb45cb7b60
wayland: set BIND_ACTION_KEY_COUNT correctly
...
This fixes an issue where ‘pipe-selected’ were not recognized as a
valid key action.
Closes #125
2020-09-08 19:08:26 +02:00
Daniel Eklöf
18e00a55f6
keymap: emit \E[27;2;13~ for all key combinations involving Shift+Return
...
This is what XTerm emits with `modifyOtherKeys=1`, which is foot’s only mode.
2020-09-07 22:20:13 +02:00
Daniel Eklöf
e81d23befc
Merge branch 'tweak-damage-everything' into master
2020-09-07 19:44:54 +02:00
Daniel Eklöf
19ec06b999
Merge branch 'reflow-multi-column-composed-characters' into master
2020-09-07 19:41:42 +02:00
Daniel Eklöf
5f64c5c335
input: fix assertion when pressing first one mouse button, then another
2020-09-07 19:35:25 +02:00
Daniel Eklöf
6e4d29ef71
render: change minimum window size from 4x20 -> 1x2 (rows/cols)
2020-09-07 19:34:06 +02:00
Daniel Eklöf
61f950f77a
grid: reflow: calculate width of composed characters correctly
...
Before this patch, reflow called `wcwidth()` on our magic values for
composed characters.
2020-09-06 19:14:46 +02:00
Daniel Eklöf
f9cbdd3b11
changelog: scrollback indicator did not exist in 1.4(.4)
...
Thus it’s wrong to say its behavior has changed.
2020-09-06 19:05:17 +02:00
Daniel Eklöf
d040284cc7
config: add tweak.damage-whole-window
...
When enabled, foot will ‘damage’ the entire window, instead of just
the modified/updated rows.
This will force the compositor to redraw/blend the whole window.
This can be used to workaround an issue with fractional scaling in
Gnome, where random thin lines may appear.
2020-09-06 17:52:07 +02:00
Daniel Eklöf
4179e480e8
config: use correct config file path when logging errors and warnings
2020-09-06 14:48:15 +02:00
Daniel Eklöf
c40ada903d
doc: foot.ini: max-shm-pool-size-mb: a value of 0 disables the feature
2020-09-06 09:34:58 +02:00
Daniel Eklöf
dd19173989
Merge branch 'improve-handling-of-private-usage-area-characters' into master
...
Closes #116
2020-09-06 08:28:20 +02:00
Daniel Eklöf
123c94379b
doc: foot.ini: remove empty lines after option name
2020-09-05 09:38:48 +02:00
Daniel Eklöf
3b763c12cb
Merge branch 'handle-xdg-output-manager-coming-after-output-objects' into master
...
Closes #118
2020-09-04 20:03:10 +02:00
Daniel Eklöf
26d37b3305
changelog: output objects received before XDG output manager
2020-09-04 18:08:37 +02:00
Daniel Eklöf
f2c59f8608
wayland: register xdg-output interface on pre-existing output objects
...
The XDG output manager object may arrive *after* output objects. In
this case, we need to register the pre-existing output objects with
the XDG output manager.
This fixes an issue with some monitors having a DPI value of 0 on
Gnome/mutter, which resulted in incorrect font sizes.
2020-09-04 17:56:40 +02:00
Daniel Eklöf
b71016c25d
render: optionally enable heuristics that deal with private usage area chars
...
Try to detect double-width *glyphs* for single-width *characters*, and
allow them to overflow into the next cell.
This is only done for single-width chars with a glyph width that is at
least 1.5 cells wide, but at most 3 cells.
The feature is gated by the new
‘tweak.allow-overflowing-double-width-glyphs’, and is disabled by
default.
Closes #116
2020-09-03 17:37:44 +02:00
Daniel Eklöf
bb8d9378c9
Merge branch 'refresh-margins-on-background-palette-change' into master
...
Closes #94
2020-09-01 18:49:34 +02:00
Daniel Eklöf
b76d196569
render: ’redraw_margins’ is now a parameter to grid_render()
...
render_refresh_margins() now passes ’true’ here, instead of re-setting
term->render.last_buf to NULL.
2020-09-01 08:01:48 +02:00
Daniel Eklöf
d579c0e1e4
osc: explicitly refresh margins on a background color change
2020-09-01 07:34:41 +02:00
Daniel Eklöf
2488c3935b
render: implement render_refresh_margins()
...
For now, it will reset term->render.last_buf to NULL, and then calls
grid_render() to do a full screen refresh.
2020-09-01 07:33:44 +02:00
Daniel Eklöf
52af2694ff
Merge branch 'config-file-location' into master
...
Closes #110 .
2020-08-28 18:11:12 +02:00
Daniel Eklöf
b957f2faa7
doc: meson: @01@ -> @1@
2020-08-27 21:22:27 +02:00
Daniel Eklöf
6f114f639a
config: close FD if it is *valid*, not when it is *invalid*
2020-08-27 21:11:03 +02:00
Daniel Eklöf
a24109a5e3
doc: foot.ini: highlight configuration file paths with bold, not italic/underline
2020-08-27 21:09:54 +02:00
Daniel Eklöf
fdb1f64cae
readme: remove stray ’;9~’ sequence
2020-08-27 21:08:24 +02:00
Daniel Eklöf
df35b09142
main: usage: footrc -> foot.ini
2020-08-27 20:03:30 +02:00
Daniel Eklöf
3309d8d779
changelog: new configuration file location
2020-08-27 20:02:43 +02:00
Daniel Eklöf
5c4af880fc
doc: rename footrc.5 to foot.ini.5, and update references
2020-08-27 20:02:30 +02:00
Daniel Eklöf
44e7943fef
codespell: selection: faild -> failed
2020-08-27 19:55:27 +02:00
Daniel Eklöf
f7c2940880
readme: update references to the configuration file
2020-08-27 19:53:31 +02:00
Daniel Eklöf
865127d836
footrc: move to foot.ini
2020-08-27 19:53:31 +02:00
Daniel Eklöf
6dbd87016f
config: prefer loading configuration from $XDG_CONFIG_HOME/foot/foot.ini
2020-08-27 19:53:31 +02:00
Daniel Eklöf
32e2173b5d
Merge branch 'scrollback-indicator-positioning' into master
...
Closes #108
2020-08-27 19:52:47 +02:00
Daniel Eklöf
0e89302da2
Merge branch 'block-input-events-while-pasting' into master
...
Closes #101
2020-08-27 19:51:37 +02:00
Daniel Eklöf
c8d0dc5750
render: scrollback indicator: only leave room for search box when necessary
2020-08-26 19:12:12 +02:00
Daniel Eklöf
1109865c8e
render: scrollback indicator: subtract visible rows from populated rows
...
This prevents the indicator from starting too high up when the number
of used scrollback rows is low.
2020-08-26 19:10:00 +02:00
Daniel Eklöf
32639e442f
Merge branch 'xcalloc-fix' into master
2020-08-26 18:56:12 +02:00
Craig Barnes
fe9eaf3aaf
xmalloc: fix edge case handling in xcalloc() function
2020-08-25 20:49:24 +01:00
Daniel Eklöf
139f59c27d
Merge branch 'type-limit-fixes' into master
2020-08-25 20:49:29 +02:00
Craig Barnes
f3acfea815
fix some buggy comparisons relating to signed/unsigned types
2020-08-25 19:39:17 +01:00
Daniel Eklöf
1707db1678
selection: don't initiate a paste when we're already pasting
2020-08-25 18:56:15 +02:00