Commit graph

305 commits

Author SHA1 Message Date
Dave Davenport
66d782e0e7 Move config.h
small updates

Tweak header a bit

[CI] Add lto build to sh ci.

[CI] Fix artifact upload

[CI] no wildcard for artifact
2022-11-19 20:35:52 +01:00
Dave Davenport
fb80595725 [Build] Add option to build with lto to meson.
Fix error in test.

Issue: #1743
2022-11-17 11:25:45 +01:00
Dave Davenport
cb6afae71f [Test][Theme] Update test for downgrade error 2022-08-26 14:12:51 +02:00
Dave Davenport
d4b77207dd Update test for # keybindings. 2022-08-22 21:57:29 +02:00
Dave Davenport
fb24fc0999 Add a warning list and append it to the message box. 2022-07-27 23:44:56 +02:00
Dave Davenport
0e90fb065f [Build] Fix some compile warnings. 2022-07-23 00:28:55 +02:00
Dave Davenport
47d785758a
[listview] Allow settings of flow direction of elements (#1605)
* [Listview] Initial implementation for left to right packing.
* [Listview] fix movement in pack-left-to-right.
* Add element-next/prev keybinding and remap tab.
* [Listview] Change option name to 'flow' and use rofi orientation type.
* [Listview] Make listview work with reverse property.
* Update test for 2 new keybindings.

fixes: #1058
2022-03-07 20:37:58 +01:00
Dave Davenport
534aa6ad54 Rename Dialogs -> Modes
Try to fix some of old syntax.
2022-02-23 23:18:53 +01:00
Dave Davenport
af8a3505b5 [TEST] Add modulo test. 2022-01-31 22:11:19 +01:00
Dave Davenport
36d4aee490 [Test] Expand the CI test for theme. 2022-01-30 14:33:41 +01:00
Dave Davenport
85c6545a43
Merge List and Array type into one. (#1572)
* Merge list and array into one.

* [Lexer] Only use string without " in list

* Some cleanups

* Cleanups based on feedback.
2022-01-25 09:57:59 +01:00
Dave Davenport
33643d0642 Theme array fix inheriting. 2022-01-24 21:50:52 +01:00
Dave Davenport
63ba595005 [Test] add a small array syntax test. 2022-01-24 21:15:12 +01:00
Dave Davenport
4bef336b9c What is in a name. 2022-01-24 20:33:19 +01:00
Dave Davenport
28052a452c Fix missing enum to str for Set. 2022-01-24 19:56:17 +01:00
Dave Davenport
e563cd3ad0 Add -replace option
Issue: #568
2021-12-22 21:03:54 +01:00
Quentin Glidic
bde8175d39
gitmodules: Update libnkutils
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2021-10-28 06:33:12 +00:00
Dave Davenport
1050c20c10 [Test] Remove old broken test scripts. 2021-08-22 00:03:43 +02:00
Dave Davenport
47f26ca2f1 [IconFetcher] Look for images in theme directories. 2021-08-17 11:05:03 +02:00
a1346054
c62137f8ab
Simple maintenance improvements (#1370)
* rofi moved to libera.chat

* unify some theme headers and whitespace

* consistently use the same hashbang for bash

* improve obsolete way of testing equality

see https://github.com/koalaman/shellcheck/wiki/SC2268 for explanation

* use consistent function definitions in bash scripts

* remove duplicated author and fix whitespace

* quote all variables in scripts

fixes many warnings identified through shellcheck

* fix whitespace in scripts

* fix whitespace in non-source files

* fix spelling in non-source files

* fix whitespace and indentation in source files

* fix spelling in source files
2021-08-14 13:03:16 +02:00
Dave Davenport
382a497c4e [Test] Fix some of the tests. 2021-07-06 23:49:17 +02:00
Dave Davenport
a1a0ed68f2 [Test] Fix tests. 2021-06-16 00:11:57 +02:00
Dave Davenport
1cac2c86f6 [Test] fix num keybindings in test. 2021-06-15 14:44:22 +02:00
Dave Davenport
b541bf55bc [Test] Fix meson test, remove gif dep from meson. 2021-06-15 12:55:03 +02:00
Dave Davenport
43957321d4 [Test] meson build updates. 2021-06-15 12:45:02 +02:00
Dave Davenport
74144db77d [Test] Fix the test. 2021-06-15 12:31:32 +02:00
TonCherAmi
12b2b38578
Fix tests. (#1323) 2021-06-05 12:58:07 +02:00
Dave Davenport
95c4e0424e Fix tests. 2021-06-01 14:21:21 +02:00
TonCherAmi
dc28a97437
Add cursor property (#1313)
* Change mouse cursor on widget hover

Currently only listview element and editbox are supported.

* Add cursor property
2021-05-23 00:17:27 +02:00
Dave Davenport
37044dc27e Remove -dump-xresources option update manpage. 2021-05-04 20:44:38 +02:00
Dave Davenport
ee5fc74dd9 [Test] fix theme parser test for latest change in grammar parser 2020-09-13 17:48:39 +02:00
Dave Davenport
9a3d4b1d2e [Test] Fix compiler warning, theme test (bug in lexer) and more. 2020-04-26 11:43:14 +02:00
Dave Davenport
09704eb49c [Test] Use new RofiDistance format. 2020-04-26 11:12:23 +02:00
Jeff
83c2e467d5
Add support for additional field on script entries meta (#1052)
* Add test for hidden meta data in script mode

The purpose of this is to provide support for "hidden" fields on a
script item that work for search but don't get displayed.  This is
mostly to provide something similar to the optional display (but still
matchable) fields in drun like "categories" or "keywords".  This also
enables the choice to display unicode icons but still allow for
searching for the keywords without needing to print them.

* Ignore the output file from test runs

* Add support for the "meta" field on script entries

This fields provides a matchable but unprinted string for entries in a
script mode list match.  This means you can use one thing but provide
multiple options that can match that item without polluting the list
view or make confusing output.

* Add new test to test suite file
2020-02-01 13:49:11 +01:00
Dave Davenport
4e0dfb03b1 [Test] Fix building of tests.
Fixes: #1017
2019-09-27 10:43:29 +02:00
Dave Davenport
aa35ecc40a [DRun] Add keywords to match and printing. 2019-08-20 22:51:07 +02:00
Dave Davenport
618d1396ee
Issue949 (#999)
* [Issue 949] Add initial split of listview row into widget tree.

Allowing better themeing.

* Remove unneeded code from textbox. allow dis. icons.

* Fix typo.

* Fix wrong widget offset in textbox.

* Fix mouse handling

* [ListView] Add 'fixed-columns' boolean option.

* [Listview] Fix inversion of option.

* [ListView] remove commented old code.

* [Textbox] Handle null pointer on desired width.

* [Listview] Fix crasher with fixed_columns and more max elements requested items.

* Add hack to get backwards compatibility for new listview structure.

* Fix the scrollbar test.

* Fix tests for theme update..
2019-08-08 20:02:20 +02:00
Dave Davenport
52c5592a6f [ListView|Textbox] Add user-settable ellipsize mode.
Fixes: #917
2019-05-04 11:04:54 +02:00
Quentin Glidic
a6605b6f4d
tests: Fix mode_result test warning
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2019-04-19 10:07:43 +02:00
Dave Davenport
94ebd7e635 [Script] cleanup unnecessary $ from arithmetic variables. 2019-02-02 12:52:23 +01:00
Dave Davenport
f7daa9b1b1 [Scripts] Remove cat for pipe. 2019-02-02 12:39:41 +01:00
Dave Davenport
b30b50dc5a [Scripts] Do some fixes. 2019-02-02 12:35:37 +01:00
Dave Davenport
2f2abffb98 [CodeCY] More cleanup. 2019-02-02 12:07:36 +01:00
Dave Davenport
804f130d5b [CodeCY] Cleanup some more warnings given by CodeCY. 2019-02-02 11:53:33 +01:00
Dave Davenport
658f3993ba [TESTS] Remove (pointless) warning from helper tokenize. 2019-02-02 11:45:28 +01:00
Dave Davenport
c7243da062 [TESTS] Fix scrollbar/history-test assert argument format. 2019-02-02 11:38:33 +01:00
Dave Davenport
9f1a19b21e [TESTS] Fix helper-test assert argument format. 2019-02-02 11:34:54 +01:00
Dave Davenport
d506c09f85 [TEST] box-test fix commit polution. (oops). 2019-02-02 11:19:43 +01:00
Dave Davenport
63edf012bd [TESTS] Fix format data type in test asserts. 2019-02-02 11:17:50 +01:00
Dave Davenport
4e3a33acda [TESTS] Fix format data type in box-test asserts. 2019-02-02 11:12:01 +01:00