Dave Davenport
d47b1515b5
[listview] Don't calculate infinite rows on empty height.
...
Issue: #1769
2022-12-29 18:41:51 +01:00
Dave Davenport
09b9039718
[Theme] Move some definitions header around for plugin.
2022-12-24 11:46:03 +01:00
Dave Davenport
3d73cf2554
[Textbox] Cursor goes over, not under. allow cursor outline.
2022-12-23 22:11:22 +01:00
Dave Davenport
0ff6ff21c3
[Textbox] Add text-outline to style
2022-12-23 13:38:09 +01:00
vE5li
23de9e9d2c
make cursor more customizable by adding cursor-width and cursor-color ( #1753 )
...
* make cursor more customizable by adding cursor-width and cursor-color to the theme
* fix placeholder color
* add doc entry
* more documentation
2022-11-25 10:28:34 +01:00
Dave Davenport
54aa148a5e
[XIM] Fix an unitialized value problem.
2022-11-21 21:15:51 +01:00
Dave Davenport
d9935e594e
[Doc] Fix some missing docu.
2022-11-19 21:50:34 +01:00
Dave Davenport
063195922f
[DMenu] Add -ellipsize-mode option.
2022-11-19 21:03:22 +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
c6ba962673
[listview] Set ellipsize mode on creation of textbox
...
So if rows are added, they behave correctily.
Issue: #1746
2022-11-18 08:46:16 +01:00
Dave Davenport
c82754307c
[Window] Fix reloading windowcd from xserver request
2022-11-17 12:03:01 +01:00
duarm
6d02648d3a
input method ( #1735 )
...
* input method draft
* restoring relese event
* using unused macro, removing debug code, handling disconnection
* review fixes, new update_im_window_pos method
* initializing variables correctly
* initializing im pos queue correctly
* ime window positioning
* add widget_get_y_pos() position
* [Build] Update makefile with imdkit
* [CI] Add imdkit as dependency.
* [XCB] rofi_view_paste don't throw warning, print debug.
* [XCB] rofi_view_paste lower 'failed to convert selection'
* [Build] Add minimum version check to imdkit
* new macro XCB_IMDKIT_1_0_3_LOWER
* [Build] Try to support old version of imdkit in meson/makefile.
* [Build] Fix typo in meson.build
* [XIM] Don't set use compound/set use utf8 when on old version.
* [Build] Allow building without imdkit.
* [Doc] Add imdkit to dependency list.
Co-authored-by: Dave Davenport <qball@gmpclient.org>
2022-11-08 19:18:45 +01:00
Dave Davenport
579902deff
[Window] Make sure their is a trailing 0 on the workspace strings.
...
Issue: #1739
2022-11-02 20:15:38 +01:00
Dave Davenport
804eb908bd
[FileBrowser] Bind kb-delete-entry to toggle show-hidden.
2022-10-31 21:28:17 +01:00
Dave Davenport
62ebb863ed
[Textbox] Add a 'get_cursor_x_pos' function.
2022-10-27 22:22:11 +02:00
Dave Davenport
60fcbbb10e
[Window] Small fixes to prefer-icon-theme option
...
Thanks to Kafva (https://github.com/Kafva ) for the original patch.
Issue: #1702
2022-10-22 11:10:35 +02:00
Dave Davenport
96a69a54c3
[Window] Add -window-prefer-icon-theme option.
...
Fixes : #1702
2022-10-22 11:03:11 +02:00
Dave Davenport
baba41cbd2
[drun] Only pass path on launch, if one is set
2022-10-13 20:26:00 +02:00
Dimitris Triantafyllidis
c1a540c57e
[filebrowser] Add an option to show hidden files. ( #1716 )
...
Add an option to show hidden files by looking up the "show-hidden" filebrowser property and modifying the relevant logic in "filebrowser.c".
Co-authored-by: Dave Davenport <DaveDavenport@users.noreply.github.com>
2022-10-11 16:04:18 +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
Dave Davenport
5ae8fa5a3f
[Keyb] Add a -list-keybindings command.
2022-09-18 20:28:38 +02:00
Dave Davenport
858d6c030c
[listview] Add extra checks before resolving pointer.
...
Issue: #1703
2022-09-10 17:42:49 +02:00
Dave Davenport
fce721a105
[Textbox] Add 'placeholder-markup' flag.
...
Fixes : #1690
2022-08-28 21:47:05 +02:00
Dave Davenport
594c7f2b31
[Theme] If no theme loaded, load default. Downgrade missing theme file to warning.
...
Issue: #1689
2022-08-26 14:05:16 +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
Dave Davenport
09b9e32fd1
Merge remote-tracking branch 'github/next' into next
2022-08-22 21:53:30 +02:00
Dave Davenport
fc07619ac6
[View|Xcb] Add support to copy current selected item to clipboard
...
Adds control-v binding that copies it to the clipboard.
THIS ONLY WORKS WITH CLIPBOARD MANAGER!!! once rofi is closes, the data is
gone!
This needs to be tested. Documentation on this is lacking so reversed
engineered from other applications.
TODO: how do we do the SAVE_TARGETS?
fixes : #378
2022-08-22 21:44:52 +02:00
Jasper Lievisse Adriaanse
c896cbbca4
Include sys/stat.h for S_IWUSR ( #1685 )
2022-08-21 20:51:03 +02:00
Dave Davenport
f36977dee7
[View] Tweak error message and instant/delayed switching.
2022-08-21 15:52:39 +02:00
Dave Davenport
f3c1dafec2
[View] Change refilter timeout limit to be in time units (ms)
...
Issue: #1683
2022-08-21 15:47:49 +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
65b48aae4f
[View] Reduce idle delay as tradeof for cpu usage.
...
Issue: #1678
2022-08-18 00:19:42 +02:00
Dave Davenport
406a6954aa
[Help] add -config
to -help output.
...
Issue: #1665
2022-07-30 17:49:26 +02:00
Dave Davenport
ac701018fd
[Help] Print pango version.
2022-07-30 15:48:00 +02:00
Dave Davenport
7c7fe729e6
[script] #1064 clear view on keep-selection/new-selection.
...
issue: #1064
2022-07-30 15:17:50 +02: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
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
fb24fc0999
Add a warning list and append it to the message box.
2022-07-27 23:44:56 +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
7bd77684db
[Textbox] Fix multi-select dot placement.
2022-07-23 00:55:59 +02:00
Dave Davenport
0e90fb065f
[Build] Fix some compile warnings.
2022-07-23 00:28:55 +02:00
Dave Davenport
af976c3779
[XCB] Add a flag to enable work around for #611 .
...
In issue #611 there is a workaround implemented for an issue within
xserver: https://bugs.freedesktop.org/show_bug.cgi?id=104323#c1 ,
https://gitlab.freedesktop.org/xorg/xserver/-/issues/300 .
With a latest update in xkeyboard-config this workaround breaks rofi,
see #1642 and
https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/issues/341 .
This commits disabled this work-around (can be re-enabled with
-xserver-i300-workaround flag).
Hopefully this restores correct rofi functionality.
issue: #611 #1642
2022-07-19 15:50:42 +02:00
Dave Davenport
52f587a191
[IconFetcher] Add support for font rendering as icon.
...
Issue: #1132
2022-07-16 13:13:29 +02:00
Dave Davenport
386877dd22
[Theme] Add enabled property with env support.
2022-07-15 23:28:57 +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
96027decd9
[Debug] Add a '-log' flag.
2022-07-08 22:53:07 +02:00
Dave Davenport
f3634d4ff3
[XCB] Try to correct for rotated monitors.
2022-07-08 22:04:06 +02:00
Dave Davenport
c37186a911
[Options] explicitely mark offset deprecated.
2022-07-02 20:55:16 +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
9c18aaef22
[View] Add icon-current-entry widget.
2022-06-27 17:09:21 +02:00
Dave Davenport
8ee05a718e
[View] Add textbox-current-entry widget.
2022-06-27 16:56:59 +02:00
Dave Davenport
3c6fc083f2
[View] Don't crash when element-textbox does not exists.
2022-06-27 14:16:27 +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
c7776ce9b7
[Theme] Improve error mesg on failed variable.
2022-06-01 16:51:48 +02:00
Dave Davenport
b891ffa2b3
[Textbox] Try to fix pango alignment
2022-05-30 19:21:31 +02:00
Dave Davenport
3376db96bb
[filebrowser] Bind kb-accept-custom-alt to dir up.
2022-05-27 17:24:35 +02:00
Dave Davenport
69387d6336
[Textbox] Set pango align based on horizontal-align
2022-05-27 11:10:13 +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
fc64265343
[1633][Mode] Add generic fallback option for modes.
...
Add config option:
```css
configuration {
<mode> {
fallback-icon: "<icon name>";
}
}
```
fixes : #1633
2022-05-11 17:15:18 +02:00
Dave Davenport
67496dcb15
[View] Remove some, broken, logic that misplaces the view.
...
When listview is not present or in not in fixed height mode it would
force anchor to north, this is not desirable.
Fixes : #1630
2022-05-07 11:35:09 +02:00
Dave Davenport
6f971e1110
[Rofi] Move the commandline no argument msg to a popup.
2022-05-06 15:25:32 +02:00
Dave Davenport
9314e75af2
[dmenu] Fix small bug of passing right length.
2022-04-23 23:17:51 +02:00
Dave Davenport
f5fce95330
[ #1079 ]: Option to hide listview elements when not filtered ( #1622 )
...
* [listview] Optional don't show elements when not filtered (#1079 )
* [Listview] Fix auto-complete error.
2022-04-20 23:24:52 +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
Dave Davenport
9f0a8c9e36
[FileBrowser] Make accept-alt open folder if selected.
2022-04-16 16:25:47 +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
0f3a88fc2c
[Theme] Change back to g_ascii_formatd
...
Use extra space and 0 initialized array. Don't use lf just f.
issue: #1611
2022-04-05 00:06:53 +02:00
Dave Davenport
597157e0c9
[Theme] small change in formatting code.
2022-04-04 23:33:48 +02:00
Dave Davenport
f088d75ee4
Cleanup some duplicate checks.
2022-03-15 01:00:56 +01:00
Dave Davenport
6bb9262245
[Config] workaround for int data type passed to string option in configuration file/cmdline.
2022-03-09 17:55:29 +01: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
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
1d4a8227b2
[config] dump modes instead of modi
2022-03-02 18:46:59 +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
82a50c6111
fix small compile warning glib.
2022-02-23 23:00:17 +01:00
Dave Davenport
4e06bff706
Change modi -> modes
...
issues: #1599
2022-02-23 22:42:56 +01:00
Dave Davenport
eff3b86c94
Bump copyright date.
2022-02-07 23:17:15 +01:00
Dave Davenport
6b3dc4a8af
[Theme] Make error message more verbose.
2022-02-06 18:33:32 +01:00
Dave Davenport
a34c13bdb2
[Theme] Validate variables in theme and throw error on fail.
...
issue: #1580
2022-01-31 23:19:51 +01:00
Dave Davenport
579735e76f
[Theme] Add warning when we find an unresolved link.
2022-01-31 20:23:33 +01:00
Dave Davenport
61aa11ba12
[DMenu] Document the -display-columns and -display-column-separator option.
2022-01-31 12:56:18 +01:00
Dave Davenport
2817debc04
[XrmOptions] Small fix in parsing cmdline option.
2022-01-25 20:29:06 +01:00
Dave Davenport
bdea8b9787
Mark -combi-hide-mode-prefix as deprecated.
2022-01-25 11:23:40 +01:00