Commit graph

313 commits

Author SHA1 Message Date
Qball Cow
2bbaa36b7a Fix some compiler warnings. 2024-02-25 23:33:22 +01:00
Dave Davenport
c78179dcc8 [lexer] Add dmenu as enabled option for media type.
fixes: #1903
2023-10-03 21:06:53 +02:00
Dave Davenport
6caaf36df6 [Theme] Fix opening abs path if no/wrong extension (backward comp.) 2023-08-15 19:28:33 +02:00
Dave Davenport
ad06fb9516 [Theme] Try to fix importing of theme.
- Fix the two place of resolving into one method.
- Do not accept file in CWD.
- Prefer file if it exists in same directory as parent file that
  imported it.

fixes: #1889
2023-08-15 19:12:14 +02:00
Dave Davenport
e6af09a52c [UnitTest] Add more tests for environment parsing. 2023-03-26 21:52:50 +02:00
Dave Davenport
1b1aa37f20
#1802: Calc broken fix (#1803)
* [Theme] First move to double internal calculations.

* [Theme] Allow float numbers.

* [Theme] Fix unary - and tighten the grammar parser.

* [Theme] Rename % to modulo to fix compiler.

* [Theme] Dump right modulo syntax.

* [Test] add missing end_test

* [Grammar] Allow negative numbers as property value
2023-02-14 15:53:10 +01:00
Dave Davenport
6caece77d4
I785 (#1789)
* [Textbox] Add history to the entrybox.
* [Textbox] Add comments and move into sub functions.
* [doc] Add conflicting constraint section to manpage.
* [Script] Some small memory leak fixes.
* [Entry History] Add documentation.

fixes: #785
2023-01-22 17:25:17 +01:00
Dave Davenport
d464822505 [Theme] support rasinc for theme include files. 2022-12-30 11:54:15 +01:00
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