Commit graph

1099 commits

Author SHA1 Message Date
Daniel Eklöf
1808c8a5fc
completions: zsh: foot: complete optional -s,--server PATH argument 2019-12-14 13:02:08 +01:00
Daniel Eklöf
a71147a64d
doc: footclient.1: add -s,--server-socket 2019-12-14 13:01:54 +01:00
Daniel Eklöf
ccb3ce5df7
doc: foot.1: update with optional PATH argument to -s,--server 2019-12-14 13:01:37 +01:00
Daniel Eklöf
c0a9cf7767
client: initialize/deinitialize the logging system 2019-12-14 13:01:21 +01:00
Daniel Eklöf
c5875bf97c
client: add -s,--server-socket command line option
This allows the user to override the default
path (XDG_RUNTIME_DIR/foot.sock) we try to connect to.
2019-12-14 13:00:48 +01:00
Daniel Eklöf
44f24b01bc
main: allow server socket path to be set on the command line
This adds an optional argument to -s,--server that allows the user to
override the default socket path (XDG_RUNTIME_DIR/foot.sock).
2019-12-14 12:59:54 +01:00
Daniel Eklöf
89ea61cf0c
server: use socket-path from config 2019-12-14 12:59:38 +01:00
Daniel Eklöf
6d31bd63be
config: add 'server_socket_path' and set a default value 2019-12-14 12:59:06 +01:00
Daniel Eklöf
6ef65058cf
server: log socket packet 2019-12-13 22:28:48 +01:00
Daniel Eklöf
5cd8af44c6
meson: we now require -lm 2019-12-05 19:35:54 +01:00
Daniel Eklöf
db1d913ba8
wayland: include more output (monitor) details in the log output 2019-12-05 19:35:34 +01:00
Daniel Eklöf
8dc9560431
term: determine cell width from the width of the space character 2019-12-05 19:34:47 +01:00
Daniel Eklöf
6da88ddf01
config: trim leading spaces from fonts
When splitting the font configuration into multiple font
specifications, we now trim leading spaces.

This makes no actual difference; fontconfig matched the fonts just
fine anyway, but this looks better in the logs.
2019-12-05 19:33:54 +01:00
Daniel Eklöf
0f8fcad26f
PKGBUILD: require fcft 0.4.x 2019-12-05 19:33:43 +01:00
Daniel Eklöf
cbef66ac07
meson: require fcft 0.4.x 2019-12-05 19:33:31 +01:00
Daniel Eklöf
434da5cc27
fcft: update to 0.4.0 2019-12-05 19:33:18 +01:00
Daniel Eklöf
ad56afe2f4
term: test: set font DPI to the highest DPI we find
In most cases (i.e. when there's only a single output/monitor), this
will be *the* DPI value.

In other cases, well...

The _right_ thing to do is track the outputs our window is actually
mapped on, and re-instantiate fonts depending on the current output's
DPI. But that's for the future...
2019-12-04 22:02:02 +01:00
Daniel Eklöf
bafe7cab28
main: stop initializing a default set of fonts 2019-12-04 22:01:39 +01:00
Daniel Eklöf
7e0e6762eb
fcft: update to 0.3.5 2019-12-04 21:49:56 +01:00
Daniel Eklöf
faaf6b7972
fcft: update to 0.3.4 2019-12-04 21:46:27 +01:00
Daniel Eklöf
bbb8f8af49
fcft: update to 0.3.3 2019-12-04 20:15:52 +01:00
Daniel Eklöf
d179287fb0
meson: we don't need -lm anymore 2019-12-03 21:40:32 +01:00
Daniel Eklöf
bb425be8ac
fcft: update to 0.3.2 2019-12-03 21:39:22 +01:00
Daniel Eklöf
6c817d309e
meson: we don't need -lm anymore 2019-12-03 21:16:41 +01:00
Daniel Eklöf
0f15f0ba43
fcft: update to 0.3.0
fcft now calculates the underline and strikeout integer positions,
making our rendering code much simpler.
2019-12-03 21:03:52 +01:00
Daniel Eklöf
a17ce10c03
search: match_to_end_of_word: reset end_col when done with a row 2019-12-03 20:26:32 +01:00
Daniel Eklöf
0f98101bbc
search: match_to_end_of_word: bug: reset end-col when bumping end-row
When we calculate the end coords, we must reset end-col when we reach
the end of the line and bump the end-row.

This fixes an issue where bumping the row once lead to the end row
being bumped for *each* remaining match character.
2019-12-03 20:25:22 +01:00
Daniel Eklöf
6cfb3216c3
search: bug: restore end-col/end-row adjustment
Turns out end_col *can* be exactly 0. In this case, we need to adjust
the end-row too.
2019-12-03 20:24:41 +01:00
Daniel Eklöf
b0d555255c
render: limit size of search surface to parent window
This shouldn't be necessary, but Sway acts up when the subsurface
exceeds the parent surface (window, in this case) size, and extends
the window size (if floating), leaving it with no content
2019-12-03 20:19:50 +01:00
Daniel Eklöf
ba399fa874
Merge branch 'scrollback-search-extend-to-end-of-word' 2019-12-03 20:01:53 +01:00
Daniel Eklöf
008281757b
search: bug: re-initialize start-row when attempting a new match
When we've already found a partial match (but *not* a complete match),
and that match spanned multiple lines, then when we continued with the
next start-column we re-used a know-wrong row pointer.
2019-12-03 20:00:38 +01:00
Daniel Eklöf
3c71389993
render: don't allow negative coordinates of the search surface
While the protocol allows this, it appears Sway offsets (moves) the
parent surface when this happens, resulting in a window half without
content.
2019-12-03 19:58:33 +01:00
Daniel Eklöf
0982210af2
search: map ctrl+shift+w to match to end of word, spaces only
This works just like ctrl+w, except that the only space separating
characters are whitespaces.
2019-12-03 19:43:45 +01:00
Daniel Eklöf
867cac4207
search: search_match_to_end_of_word: rename start_{row,col} -> end_{row,col} 2019-12-03 19:43:11 +01:00
Daniel Eklöf
2a5da66e4e
search: split up search_update() into two
* search_find_next() searches the scrollback, continuing from the last
  match. The assumption is that the search buffer has changed.

* search_update_selection() updates the selection and moves the view
  to ensure the selection is visible. Note that it doesn't verify the
  selection actually matches the search buffer.
2019-12-03 19:40:22 +01:00
Daniel Eklöf
e003736e11
search: rename search_update() -> search_find_next() 2019-12-03 19:24:33 +01:00
Daniel Eklöf
b3287c07cd
README: describe ctrl+w while scrollback searching 2019-12-03 19:23:56 +01:00
Daniel Eklöf
b5a04dcaae
search: map ctrl+w to 'extend current selection to end of word'
If the user has started a scrollback search and have some matching
text, he can now press ctrl+w to extend that selection (and thus the
search criteria too) to the end of the current word, or to the end of
the next word if currently at a word separating character.
2019-12-03 19:22:47 +01:00
Daniel Eklöf
694d84a9e9
search: discard canceled compose sequences 2019-12-03 19:21:16 +01:00
Daniel Eklöf
a34deabcc9
Revert "search: discard canceled compose sequences"
This reverts commit f67733c0e3.
2019-12-03 19:21:03 +01:00
Daniel Eklöf
f67733c0e3
search: discard canceled compose sequences 2019-12-03 19:19:55 +01:00
Daniel Eklöf
ac2eda885a
search: remove debug log 2019-12-03 19:19:26 +01:00
Daniel Eklöf
10cf722617
search: don't line-wrap unless we actually have a match on the next row
When matching characters, we moved on to next row directly after
matching the last character in a row.

This was wrong since if that last character was the last matching
character, we tried to create a selection that was on the wrong row.
2019-12-03 19:17:51 +01:00
Daniel Eklöf
d94fc80966
search: break out search buffer resize code to a new function 2019-12-03 19:17:34 +01:00
Daniel Eklöf
198529525c
selection: break out isword() to a new file 2019-12-03 19:16:58 +01:00
Daniel Eklöf
f1c876884a
input: discard canceled compose sequences 2019-12-02 21:32:09 +01:00
Daniel Eklöf
f15a2af0b8
Merge branch 'fcft-0.2.0' 2019-12-01 19:26:02 +01:00
Daniel Eklöf
601f77fb1f
PKGBUILD: tllist is only a make dependency, bump fcft to 0.2.0 2019-12-01 19:25:39 +01:00
Daniel Eklöf
b3334444bb
meson: require fcft 0.2.0 2019-12-01 19:25:15 +01:00
Daniel Eklöf
644f114909
fcft: fixup 2019-12-01 19:25:06 +01:00