Commit graph

44 commits

Author SHA1 Message Date
Aleksei Bavshin
42c6697a6b [WaylandWindow] Remove redundant icon fetcher query.
rofi_icon_fetcher is async, so we won't know which query succeeded on
the first try. All subsequent attempts use cached_icon_uid, and the
result of the first query will never be used.
Do the same as XCB window mode and request only lowercase app_id.
2022-11-27 02:02:49 +01:00
Aleksei Bavshin
2d6d3a2259 [WaylandWindow] Apply changes from b3c46d2:
Add format option to disable padding with space the "window-format" entries.
2022-11-27 02:02:49 +01:00
lbonn
d44b81e778 Merge remote-tracking branch 'upstream/next' into wayland 2022-10-05 18:49:54 +02:00
David Kosorin
b3c46d2d5a
Add format option to disable padding with space the "window-format" entries (#1715) 2022-10-03 19:13:22 +02:00
Dave Davenport
35d066efe2 [Script] Split mode string only once on :, allowing : in right part.
Issue: #1718
2022-10-03 16:58:45 +02:00
Dave Davenport
5185895643 [window] Check bitmask, not full comparison 2022-09-25 21:45:51 +02:00
Aleksei Bavshin
8995b575df [Window] window-match-fields support for Wayland window mode
The only supported fields are 'title' and 'app-id' ('class') due to a
Wayland protocol limitations.
2022-09-08 09:16:24 +02:00
Aleksei Bavshin
f8c97bab98 [Window] Formatting support for Wayland window mode
Use `window-format` to configure lines in the Wayland Window view.
Note that only `{t}` (title) and `{c}` (class) are supported on Wayland.
It is suggested to change the format string to `{c}    {t}`.
2022-09-08 09:16:24 +02:00
Aleksei Bavshin
1e4ef36611 [Window] Initial support for wayland window switcher
The code still lacks a lot of features of XCB Window mode, but at least
following should work:
 - Activate and Delete (close) actions
 - matching by window title
 - live update
 - icon lookup by app_id
2022-09-08 09:16:24 +02:00
Dave Davenport
0f097f2998 [DMenu] reset variable correctly so keep-selection is initially off.
fixes: #1686
2022-08-24 15:10:58 +02:00
lbonn
f792680b48 Merge tag '1.7.5' into wayland 2022-08-24 00:14:11 +02:00
lbonn
4e833a4ec4 Merge tag '1.7.4' into wayland 2022-08-24 00:05:02 +02:00
Dave Davenport
d5cd4ca32d [Combi] Fix possible memory leak. 2022-08-21 02:57:16 +02:00
Dave Davenport
bd60a68d1c [combi] Fix selecting entry with only bang as input.
Check for a space or eos.
2022-08-21 02:50:08 +02:00
Dave Davenport
89e00ebb32
[Dmenu] Add a minimum update rate for dmenu reading. (#1681)
This avoid slow loading for some weird slow spaced out input stream.
(one input every 250ms).
Not sure what use-case this fixes.
This fix does cause a noticable slow-down on very large lists.

Issue: #1680
2022-08-19 21:35:23 +02:00
Dave Davenport
a22c81c4a9 [DMenu] Strip off delimiter in sync mode.
Fixes: #1679
2022-08-18 10:17:24 +02:00
Dave Davenport
7c7fe729e6 [script] #1064 clear view on keep-selection/new-selection.
issue: #1064
2022-07-30 15:17:50 +02:00
Sainnhe Park
28ad6e34cf
[filebrowser] Fix st_atim undefined on macOS (#1662)
When compiling on macOS, an error message will pop up:

```
error: no member named 'st_atim' in 'struct stat'
```

This is because `st_atim`, `st_ctim` and `st_mtim` does not exist on
macOS, instead it uses `st_atimespec`, `st_ctimespec` and
`st_mtimespec`.

In this commit, 3 macros are defined to try to fix this problem.

Reference: https://github.com/hboetes/mg/issues/7
2022-07-28 18:19:39 +02:00
Dave Davenport
952aaae295 [DMenu] Fix completion with multi-select 2022-07-26 22:12:20 +02:00
Dave Davenport
f3064e0fee [Script] Add new-selection option.
Allow you to select an entry (based on view, so might not work in combi
mode).

fixes: #1248
2022-07-24 01:08:24 +02:00
Dave Davenport
d20926abab [window] Add an option to hide active window.
fixes: #1336
2022-07-24 00:52:13 +02:00
Dave Davenport
5a5d333fdf [dmenu] Fix missing - in find_arg 2022-07-23 23:25:37 +02:00
Dave Davenport
be6fe8ac61 [Textbox] Remove the dot indicator.
Weird hack from dmenu that dripped through rofi code-base for multi-select.
Change it so it is just a prefix to the string of ☐ and ☑.
2022-07-23 20:21:00 +02:00
Dave Davenport
0e90fb065f [Build] Fix some compile warnings. 2022-07-23 00:28:55 +02:00
lbonn
853c8c9af3 Merge remote-tracking branch 'upstream/next' into wayland 2022-07-16 12:37:31 +02:00
Dave Davenport
daf3127d3a [Script] Add keep-selection flag that keeps the current selection.
Fixes: #1064
2022-07-09 14:12:28 +02:00
Dave Davenport
c6456d2c1b [DMenu] Fix 'loading' overlay. 2022-06-29 16:09:56 +02:00
Dave Davenport
670a2445f4 [Window] Small fix avoiding unneeded icon reloads. 2022-06-28 20:58:11 +02:00
Dave Davenport
ceb2b9d295 [Modes] Support icons off multiple icons. 2022-06-27 20:52:12 +02:00
Dave Davenport
7b234ff44e [Script] Fix stupid typo in memory allocation. 2022-06-13 13:27:07 +02:00
Dave Davenport
40ecfcd1f1 [Script] Print list of user scripts in -h 2022-06-12 17:49:04 +02:00
Dave Davenport
ffa1d11e3c [Script] Look into ~/.config/rofi/scripts/ for user scripts. 2022-06-12 15:22:56 +02:00
Dave Davenport
b676dfe8ad [DMenu|Script] Allow theme element updates from script. 2022-06-06 11:34:49 +02:00
Dave Davenport
3376db96bb [filebrowser] Bind kb-accept-custom-alt to dir up. 2022-05-27 17:24:35 +02:00
Dave Davenport
e9af427b4a [Dmenu] use ssize_t instead of size_t. 2022-05-17 23:37:02 +02:00
Dave Davenport
141bd3d197 [Doc][Config] Update documentation for new fallback icon
* Allow multiple config be combined.
2022-05-12 19:52:35 +02:00
Dave Davenport
9314e75af2 [dmenu] Fix small bug of passing right length. 2022-04-23 23:17:51 +02:00
Dave Davenport
e2a7cfdd52
[DMenu] Huge list speedups (#1621)
* Don´t refilter on each key-press.

* Make sure refiltering is not completely starved.

* Force refilter before accepting entry

* Go into 'timeout' refilter mode only after certain # elements.

* [DMenu] threading with getdelim to speed up reading.

* [View] Remove debug output.

* [dmenu] Fix pre-read.

* [DMenu] Make sure that async mode cannot block

* Remove mutex for IPC via pipes.

* [Dmenu] Small cleanup.

* [Scrollbar] Fix scrollbar overflowing on big lists.

* Fix stack overflow by creating to many filter jobs.

* [Doc] Add new option to manpage
2022-04-20 21:53:44 +02:00
lbonn
1e8c22b4a0 Merge remote-tracking branch 'upstream/next' into wayland 2022-04-17 11:19:36 +02:00
Dave Davenport
9f0a8c9e36 [FileBrowser] Make accept-alt open folder if selected. 2022-04-16 16:25:47 +02:00
Dave Davenport
f088d75ee4 Cleanup some duplicate checks. 2022-03-15 01:00:56 +01:00
Dave Davenport
fe656d2d94 [Script] Fix memory leak. 2022-03-02 22:08:14 +01:00
Dave Davenport
497d18d108 [Script] Support a data option that get passed to next execution.
fixes: #1601
2022-03-02 22:06:04 +01:00
Dave Davenport
534aa6ad54 Rename Dialogs -> Modes
Try to fix some of old syntax.
2022-02-23 23:18:53 +01:00