Commit graph

249 commits

Author SHA1 Message Date
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
3446e88cb8 Remove unneeded test and extra enforcement of 0 terminated buffer 2023-03-27 11:52:27 +02:00
Dave Davenport
bb5868199f Re-indent the code using clang-format 2023-03-26 13:19:58 +02:00
Naïm Favier
f6248c6ea9
More Unicode normalization with -normalize-match (#1813)
Normalize the string to a fully decomposed form, then filter out mark/accent characters.
2023-02-16 19:34:24 +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
727d7c579d Update copyright dates. 2023-01-14 13:02:35 +01:00
Dave Davenport
578cb391e4 [Helper] Quick fix for wrong dereference. 2022-12-31 14:37:56 +01:00
Dave Davenport
d464822505 [Theme] support rasinc for theme include files. 2022-12-30 11:54:15 +01:00
Dave Davenport
9d001aaaf7 [Theme] Do a pango version check. 2022-07-30 15:05:28 +02:00
Dave Davenport
77af850200 [textbox] Implement text-transform add upper/lower/capitalize transform
fixes: #1010
2022-07-30 14:50:05 +02:00
Dave Davenport
e9af427b4a [Dmenu] use ssize_t instead of size_t. 2022-05-17 23:37:02 +02:00
Dave Davenport
51c5beeb82
[Helper] Add XDG_DATA_DIRS to theme search path. (#1619)
Issue: #1617
2022-04-16 12:10:14 +02:00
Dave Davenport
eff3b86c94 Bump copyright date. 2022-02-07 23:17:15 +01:00
Dave Davenport
addfc1d367 [Helper] Remove font sanity check as it is insufficient, and old format. 2022-01-07 18:16:47 +01:00
Dave Davenport
e563cd3ad0 Add -replace option
Issue: #568
2021-12-22 21:03:54 +01:00
Dave Davenport
dac09b8728 Cleanups based on cppcheck. 2021-12-01 13:14:36 +01:00
Dave Davenport
ca47ffee9c [Helper] Don't tell g_utf8_strlen to ignore length.
Fixes: #1459
2021-09-13 11:26:48 +02:00
Dave Davenport
954fc728b2 [Cleanup] Using clang-tidy 2021-08-18 01:16:45 +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
067a3b82ad [Config system] Add a bit of a hack to auto-add commandline options.
For new config system.
2021-06-27 12:21:26 +02:00
Zachary Freed
44140ac5b4
Made it so the presence of a field in drun-display-format is enough to parse the .desktop files for that field. Also fixed helper_string_replace_if_exists only allowing one guarded field in the display format by making the regex ungreedy (#911)
Co-authored-by: Dave Davenport <DaveDavenport@users.noreply.github.com>
2021-06-15 14:32:46 +02:00
Dave Davenport
9d85bcb914 Update copyright header. 2021-06-09 14:50:39 +02:00
Dave Davenport
1a9dac80a9 Remove some deprecated options.
* lines
 * columns
 * width
2021-06-08 22:33:23 +02:00
Dave Davenport
3b297ee80d Re-indent the code using indenter. 2021-06-01 10:44:23 +02:00
unisgn
c3e70d4e1a
add prefix matching method feature (#1237)
* add prefix matching method feature

* Update helper.c

* prefix matching regex memory leak fix

* prefix matching regex memory leak fix

Co-authored-by: francis <oxfrancis@outlook.com>
2021-05-29 13:39:31 +02:00
Dave Davenport
fa96f32846 More doxygen cleanups. (1 warning left I don't understand) 2021-05-05 22:39:03 +02:00
Dave Davenport
67eda1a776 Remove -fullscreen option, deprecated by new theme format.
Use 'window {fullscreen: true;}' instead.
2021-05-02 20:15:58 +02:00
Dave Davenport
519b2a22eb Add check for input == NULL. 2021-01-17 16:09:58 +01:00
Dave Davenport
7061eb21ae Indent round. 2020-11-03 23:57:02 +01:00
Dave Davenport
deb1e6a208 [RofiIconFetcher] Switch to gdk-pixbuf. 2020-10-20 20:38:13 +02:00
Dave Davenport
b4bbce4af5 [Helper] Add -normalize-match option.
Decomposes string and remove accent characters before matching.
This makes o match ö, é match e and more.
It is not a perfect implementation but works.
Currently disables the match highlighting.

Fixes: #1119
2020-09-30 21:56:37 +02:00
Dave Davenport
97ac7c9348 [Matching] Make fuzzy matching non-greedy 2020-08-25 20:23:26 +02:00
Dave Davenport
1a9e6450e3 [Helper] Throw error when shell parsing fails. 2020-05-04 14:10:35 +02:00
Dave Davenport
b169289996 Indent all the code. 2020-02-02 13:56:37 +01:00
Dave Davenport
b03edc5cf3 Update copyright dates. 2020-01-01 12:23:12 +01:00
Dave Davenport
c4a4243616 [Theme] Add alpha channel to highlight color.
Fixes: 1033
2019-11-20 11:18:53 +01:00
Dave Davenport
8d9e403659 Update copyright. 2019-09-27 11:58:32 +02:00
Keith Collister
d9eb9f25a1 Added 'rofi/themes' to paths checked for theme files (#1001) 2019-08-04 21:04:26 +02:00
Kenneth Ho
be21fbae5d add pythonic rows selection to -a and -u (#985) 2019-07-02 21:27:46 +02:00
Dave Davenport
e7da00dbff [DMenu] Add format option to output string stripped from pango markup. 2019-05-04 10:24:59 +02:00
Dave Davenport
3c56761a76 [Helper] Add more error checking/reporting. 2019-02-10 14:32:21 +01:00
Dave Davenport
f49866bd8b [Doc] Update documentation to match changed functions. 2019-02-10 14:26:06 +01:00
Dave Davenport
f879062417 [SSH] Add support for parsing port number from known hosts file.
* Store port number in history.
* Parse the [host]:port format.
* Update default ssh command to (optionally) add -p {port}.

Fixes: #580
2019-02-10 13:56:44 +01:00
Dave Davenport
8ea484349b Remove unused variable. 2018-12-15 21:22:53 +01:00
Dave Davenport
6b96ae123b Add an option to change the matching negation character.
Fixes: #877
2018-12-14 16:58:26 +01:00
Dave Davenport
f80e7d52bc [Helper] Remove fixed key/values and accept keys with NULL as values. 2018-10-17 22:41:20 +02:00
Dave Davenport
e8edc42f9d [Helper] Quick and dirty string replacer with optional keys block.
First (quick and dirty) version of a more advanced key replacer where
sets of text are only outputted if the contained key matches.
2018-10-16 21:01:45 +02:00
Dave Davenport
859a9c79d6 Indent the code. 2018-08-08 15:55:13 +02:00