Dave Davenport
eb544b48bc
[Window] do not revert focus on window switch.
2021-03-02 17:20:59 +01:00
Dave Davenport
4e363e0c3f
[Window] small fix to pass screen to stacking window list.
...
Issue: #1225
2021-02-13 13:08:39 +01:00
Dave Davenport
7061eb21ae
Indent round.
2020-11-03 23:57:02 +01:00
Dave Davenport
6e98290335
[RofiIconFetcher] Do image checking in icon fetcher, use nkutils-enum
2020-10-18 22:01:49 +02:00
Dave Davenport
5994df7f04
[IconLoader] add optional gif loader.
2020-10-18 21:37:05 +02:00
Dave Davenport
d8a420c952
[FileBrowser] Small restructure.
2020-10-18 20:54:03 +02:00
Dave Davenport
08a40d13ce
[Icons] Check both small and big caps for extention.
2020-10-17 22:05:17 +02:00
Dave Davenport
e00ef7d993
[FileBrowser] Save last directory.
2020-10-16 21:33:02 +02:00
Dave Davenport
10678e55d8
[FileBrowser] Prepend '@' before filename if link.
2020-10-16 21:10:04 +02:00
Dave Davenport
9a21040d0e
[FileBrowser] Add SVG as file type.
2020-10-16 20:22:27 +02:00
Dave Davenport
0d45686914
[FileBrowser] If link, use stat to check out type.
...
Fixes : #1214
2020-10-15 19:19:51 +02:00
Dave Davenport
eea8897501
Fix some of the documentation
2020-10-12 21:39:36 +02:00
Dave Davenport
585538b428
Try fixing build on meson of readdir dirent args.
2020-10-12 20:32:25 +02:00
Dave Davenport
519d4d2818
[FileBrowser] Add file browser modi.
2020-10-12 20:17:21 +02:00
Dave Davenport
011908e1ff
issue 1187: If error on launching application, show error message and return to list` ( #1193 )
...
* Show error message, then possibly pop back to main window.
Fix drun/run dialog to use this for command execution.
Issue #1187
* [Combi] When no line selected, handle using the first entry.
* [Window] Add execute on invalid input to window dialog.
* Update view.h doxygen docu
* Update manpage with running application changes.
2020-09-13 21:56:25 +02:00
Dave Davenport
bff8948116
[DRun] Fix broken cache after URL type was added.
2020-09-09 22:46:18 +02:00
Dave Davenport
6a38f88e98
Split MENU_QUICK_SWITCH into MENU_CUSTOM_COMMAND/QUICK_SWITCH
2020-09-08 18:24:36 +02:00
nick87720z
96cd34d24f
Fix and optimize 20200908 ( #1184 )
...
* combi: Reuse own get_num_entries in self-init
* combi_mode_parse_switchers: Remove duplicated mode pointer
* combi_mode_parse_switchers: Regroup mode search lines
* combi_mode_result: Simplify switcher search quit
* mode_result: Check for mode switch actions before hook
These are over-mode actions, which should not be handled
in mode hooks at all.
2020-09-08 17:30:03 +02:00
lbonn
e4e59b99ea
Fix an unsafe use of strchr in dmenu mode ( #1176 )
...
Found with valgrind
2020-09-02 15:46:44 +02:00
Dave Davenport
30735791b4
Run indenter.
2020-08-28 16:41:59 +02:00
Mike Dalessio
5bec191d2e
Follow Type=Link standard desktop entries with drun ( #1168 )
...
* [DRun] Introduce data structure changes for Link desktop entries
From the [freedesktop spec][1]:
> This specification defines 3 types of desktop entries:
> Application (type 1), Link (type 2) and Directory (type 3). To allow
> the addition of new types in the future, implementations should
> ignore desktop entries with an unknown type.
This commit adds an enum to capture these types, and adds `type` to
DRunModeEntry.
[1]: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
part of #1166
* [DRun] Sanity check Link entries and capture the URL
Note that we're introducing some logic that will differ depending on
the Desktop entry type (Application or Link). The logic is:
- if entry is Application type,
- then Exec is required
- and the value is saved in .exec
- and drun_mode_result calls exec_cmd_entry
- if entry is Link type,
- then URL is required (but is not saved in the DRunModeEntry)
- and drun_mode_result calls new function launch_link_entry
part of #1166
* [DRun] Launch desktop links via xdg-open
Note that this introduces a new dependency on xdg-open, which may not
be installed. In that case, rofi will display an error dialog
with something like:
"Failed to execute child process xdg-open (No such file or directory)"
which hopefully is explanatory enough for folks.
part of #1166
* Make drun options comments consistent and add a bit of whitespace
* [DRun] new config option drun-url-launcher for opening links
In previous commit, this was a hard-coded string.
part of #1166
2020-08-26 21:10:04 +02:00
Quentin Glidic
3d5f0f086c
script: Fix parsing of extras ( #1141 )
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2020-06-06 18:32:14 +02:00
nick87720z
ae701ce54e
Entry info was not used at entry selection ( #1140 )
2020-06-06 18:28:39 +02:00
Dave Davenport
da8c666e80
[Script] Initialize info entry. Don't pass entry at custom input.
...
Fixes : #1138
2020-05-30 10:44:37 +02:00
Dave Davenport
1342b733af
[Script] Add 'info' row option, that gets passed to ROFI_INFO environment.
2020-05-24 19:10:49 +02:00
Dave Davenport
0e880e76a2
[Window] On window name list, Check if we go out of range.
2020-05-24 17:14:12 +02:00
Dave Davenport
3604b12fde
Add check that looks if rofi is running inside rofi script mode.
2020-05-21 09:35:55 +02:00
Dave Davenport
865821f829
Update help for option in source code.
2020-05-10 15:47:20 +02:00
Dave Davenport
906b520daf
[Script] Add no-custom mode.
2020-04-22 23:41:25 +02:00
Dave Davenport
3e64e4422d
[DMenu] Implement -keep-right
...
Fixes : #1089
2020-04-16 23:31:43 +02:00
Dave Davenport
1104d1d53a
[DRun] cleanup debug message.
2020-04-15 19:08:01 +02:00
Dave Davenport
0214d5a6e4
[DRun] Adding %% as escape character.
2020-04-15 19:06:39 +02:00
Dave Davenport
7587149950
[Script] Update example and doc.
2020-04-07 13:20:16 +02:00
Dave Davenport
de38e0f4a9
[Script|Dmenu] Don't -1 in a unsigned variable.
2020-04-07 13:14:53 +02:00
Dave Davenport
34a278f943
[Combi] Remove strchrnull
...
Issue: #1083
2020-04-07 12:48:53 +02:00
Dave Davenport
f63da72ea6
[Dmenu] Fix possible crash.
...
Don't pass empty string.
Issue: #1083
2020-04-06 23:31:45 +02:00
Dave Davenport
825fe4ae58
[Script] Fix crash when custom input with custom keybinding.
2020-04-05 13:19:22 +02:00
Dave Davenport
bacecf3044
[Script] Add environment variable to indicate state.
...
* ROFI_RETV shows the state rofi was in before calling rofi.
2020-04-05 12:56:33 +02:00
Dave Davenport
5879fd6099
[Script] Free g_shell_parse result.
2020-04-05 11:48:03 +02:00
Dave Davenport
aa07b8ef94
[Script] Add option to set deliminter and example script.
...
Issue: #1041
2020-04-01 13:58:01 +02:00
Dave Davenport
3bf9d3d3b1
[Script] Reload dialog, on selecting non-selectable item.
2020-02-13 21:32:19 +01:00
Dave Davenport
c458047ef6
[Script] Fix next dialog option.
...
Error slipped in from previous patch.
Issue: #1059
2020-02-13 21:29:02 +01:00
Dave Davenport
03775378e0
[Script] init nonselectable.
...
Issue: #1057
2020-02-13 16:52:11 +01:00
Dave Davenport
bc2e1549fb
Add rofi-script manpage, add meta option support to dmenu.
...
update ronn to go-md2man
2020-02-02 17:21:21 +01:00
Dave Davenport
7dcc3f450c
Add option to make entry non-selectable in dmenu/script.
...
Fixes : #1024
2020-02-02 14:21:29 +01:00
Dave Davenport
b169289996
Indent all the code.
2020-02-02 13:56:37 +01: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
a35a898816
[DRun] Add desktop cache
...
Add a desktop cache file. Usable for system with slow filesystems.
* -drun-use-desktop-cache
* -drun-reload-desktop-cache
Fixes : #1040
2020-01-26 12:47:04 +01:00
Dave Davenport
b03edc5cf3
Update copyright dates.
2020-01-01 12:23:12 +01:00
Dave Davenport
cc71fa13b7
[Window] Remove pointless mem duplication.
2019-12-20 15:55:23 +01:00
Dave Davenport
b71f51523a
[Window] Remove arbitrary limit of 100 windows.
...
Fixes : #1047
2019-12-20 15:49:33 +01:00
Dave Davenport
aeecf34c27
[Window] Add thumbnail of windows as option.
2019-10-17 21:19:19 +02:00
Dave Davenport
8590a7ccf2
[CI] Fixing some more doxygen warnings.
2019-09-30 10:57:23 +02:00
Dave Davenport
0a0556c765
[CI] Update missing documentation.
2019-09-30 10:35:12 +02:00
Dave Davenport
8d9e403659
Update copyright.
2019-09-27 11:58:32 +02:00
Dave Davenport
aa35ecc40a
[DRun] Add keywords to match and printing.
2019-08-20 22:51:07 +02:00
Dave Davenport
85279323e6
Set window title based on mode name.
...
For dmenu allow customize with `-window-title`.
Fixes : #969
2019-08-10 12:02:49 +02:00
Dave Davenport
204008d389
[DRun] Do not run custom command in drun mode.
...
Fixes : #966
2019-08-09 20:08:41 +02:00
Dave Davenport
a42e9f869f
[DMenu] Strip pango markup when matching rows.
...
fixes : #579
2019-08-09 19:55:34 +02:00
Dave Davenport
f896146217
[DRUN] Add option to only show desktop files in certain categories
...
closes : #817
2019-08-09 19:33:23 +02:00
Dave Davenport
eece00bad6
[combi|script] Add static keyword to inline get_index.
2019-07-09 09:01:35 +02:00
Dave Davenport
209fb9be18
[Script|Combi] Fix compilation warning about mixing singed and unsigned.
2019-07-06 17:04:17 +02:00
Kenneth Ho
be21fbae5d
add pythonic rows selection to -a and -u ( #985 )
2019-07-02 21:27:46 +02:00
Dave Davenport
14955e5508
[SSH] Fix wrong sizeof in read_hosts_file
2019-06-24 22:09:19 +02:00
qball
871ea42785
[SSH] Always initialize .port field.
2019-05-10 20:29:11 +02:00
Dave Davenport
4707927031
[SSH] Match lowered keywords.
...
Fixes issue: #954
2019-04-24 21:59:36 +02:00
Dave Davenport
109bc23d53
[Dialogs.SSH] Remove use of g_ascii_string_to_signed.
2019-04-20 10:46:44 +02:00
Dave Davenport
011d92075c
[Dmenu][Script] Share some code between the two modi
2019-04-02 13:51:53 +02:00
Dave Davenport
88d987b054
[DMenu] Add icon support.
...
Same syntax as used for script mode.
Fixes : #948 #840
2019-04-02 13:12:42 +02:00
Dave Davenport
7d117886b5
Use g_ascii_string_to_signed instead of atoi in ssh, allows error
...
checking.
2019-03-29 13:50:48 +01:00
Dave Davenport
beeb9c8b27
[SSH] Use \x1F as separator between host/command and port.
...
Fixes : #932
2019-03-08 13:46:10 +01:00
Dave Davenport
ec81a17c41
[SSH] Expand path and use right strcmp.
...
Issue: #928
2019-03-04 23:16:14 +01:00
Dave Davenport
906a48f566
[SSH] Add support for UserKnownHostsFile
...
Issue: #928
2019-03-04 22:05:08 +01:00
Dave Davenport
335adc30b3
[DRun] Fix sorting of drun.
...
Thanks to ChrisJAllan
2019-02-17 20:42:14 +01:00
Dave Davenport
f49866bd8b
[Doc] Update documentation to match changed functions.
2019-02-10 14:26:06 +01:00
Dave Davenport
fbd34c9635
[DRun] Sort the (non history) entries by name. Escape for pango.
2019-02-10 14:15:35 +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
964af7ad35
[DRUN] Fix small memory leak loading desktop files.
2019-01-29 09:29:47 +01:00
Dave Davenport
76ceac1f20
[DRUN] Add drun-display-format.
2018-10-17 23:02:50 +02:00
Dave Davenport
11afb8e678
[Icon] Fix loading icons that are already in cache.
...
fixes : #860
2018-10-05 11:01:48 +02:00
Dave Davenport
114b2cf2fd
[SSH] Improve parser for known_hosts a bit.
...
Issue: #820
2018-09-22 16:16:25 +02:00
Dave Davenport
a99cfa56c4
[Script] Add initial support for icons.
...
Issue: #840
2018-09-09 17:53:56 +02:00
Dave Davenport
859a9c79d6
Indent the code.
2018-08-08 15:55:13 +02:00
Dave Davenport
4538303be6
[DRUN] Add option to show actions in drun.
...
Fixes : #836
2018-07-28 11:12:11 +02:00
Dave Davenport
b837c3fdff
Change log domain from Utils.IconFetcher to Helpers.IconFetcher
...
Matches doxygen.
2018-06-12 11:47:03 +02:00
Dave Davenport
441c511296
Add an generic icon fetcher that can be used by any widget and re-uses the main threadpool.
...
Add an generic icon fetcher that can be used by any widget and re-uses the main threadpool.
* Make threadpool more generic usable.
* Add generic icon fetcher, that caches icons.
* Make DRUN use this fetcher.
* Add icon widget.
#809
2018-06-09 19:13:57 +02:00
Dave Davenport
0f1717f829
[Script] Reset highlighting when reload view
...
Issue: #767
2018-02-08 17:56:31 +01:00
Dave Davenport
ac29c537dd
[SSH] Reload ssh when entry is deleted.
2018-02-06 21:03:07 +01:00
Dave Davenport
5a20094777
[Script] Reduce scope and swap tests. (cppcheck)
2017-12-11 18:42:35 +01:00
Dave Davenport
6abc8c920c
DRun: Allow to select based on comment field.
...
Fixes : #733
2017-12-09 19:55:39 +01:00
Quentin Glidic
53e0f957d0
drun: Early return if already initialized
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-12-09 10:34:11 +01:00
Dave Davenport
10e2bc36cd
Remove : from dmenu default prompt.
2017-11-28 17:53:45 +01:00
Edward Betts
79adae77d7
Correct spelling mistakes. ( #722 )
2017-11-23 18:41:52 +01:00
Quentin Glidic
955cdf5ba5
drun: Standardize debug messages
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-11-17 14:20:03 +01:00
Dave Davenport
9cd1e3fac2
Indent
2017-11-07 20:04:07 +01:00
Dave Davenport
4ac428bace
[Combi] Add hide prefix option.
2017-11-07 20:03:42 +01:00
Dave Davenport
e689f2d98b
Check result g_key_file_load_from_file to make coverity happy.
2017-11-05 21:32:43 +01:00
Dave Davenport
f7d7fd4573
[DRun] Obey OnlyShowIn NotShowIn ( #715 )
...
* [DRun] Obey OnlyShowIn NotShowIn
* Replace g_strv_contains.
2017-11-02 21:05:07 +01:00
Askrenteam
0dc71fcc00
Added option -name-only to match only desktop entry name with drun ( #690 )
...
* Added option -name-only to match only desktop entry name with drun
* fixed indent and xrdump test
* fixed test
* option -drun-match-fields
* option -window-match-fields
* matching fields as static in window/drun + enums for field indexes
* prevent window_mode_parse_fields() from executing twice
2017-10-21 11:18:52 +02:00
Quentin Glidic
af81a54adf
drun: Load absolute path icons properly
...
This was lost in the rework commit
4d8784cf85
and never added back.
Fixes #701
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-10-20 22:53:17 +02:00