Commit graph

3235 commits

Author SHA1 Message Date
Dave Davenport
798379551f [Theme] Change default theme icon height to 1 em, to match old behaviour better. 2020-09-14 20:05:29 +02:00
Dave Davenport
aef108e186 [Default Theme] Change ch to em. 2020-09-14 09:36:20 +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
3ffc810468 Remove xenial warning from INSTALL.md 2020-09-13 21:02:59 +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
3499e1dad0 [Theme] First attempt at more cleanups and nested media support.
First throw at nested media support.

Issue: #1189
2020-09-13 15:11:12 +02:00
Dave Davenport
1d2453a948 [Parser] Small restructure in parser.
Preparing for nested @media.
2020-09-13 14:15:33 +02:00
Dave Davenport
0a3734dce4 [Theme] Fix @media printing in -dump-theme. 2020-09-13 13:48:48 +02:00
Dave Davenport
31fc5c9d35 [Textbox] Try to fix estimated font height.
This was on newer pango 1 pixel off with actual font height.
This casues drawing issues.

Fixes: #1190
2020-09-13 10:24:59 +02:00
Dave Davenport
6ba878e44a [Lexer] Fix media parser. 2020-09-11 18:10:49 +02:00
Dave Davenport
d3ae324290 [Theme] update manpage with fix 2020-09-11 17:55:09 +02:00
Dave Davenport
92fceb2ff0 Fix release note error of supported prefix 2020-09-11 17:49:23 +02:00
Dave Davenport
3b86326b74 [DRun] Update manpage to reflect change from #966
Issue: #1187
2020-09-11 08:36:07 +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
Dave Davenport
88ac249d36 [Window] Try to clarify help.
Issue: #1183
2020-09-08 14:42:17 +02:00
Dave Davenport
34bb919762 Update version in configure.ac to 1.6.0-dev 2020-09-06 20:43:22 +02:00
Dave Davenport
12f4e3a1cb Bump version to 1.6.0 2020-09-06 20:37:24 +02:00
Dave Davenport
022f9c9fbc Update Changelog 2020-09-06 20:37:09 +02:00
Dave Davenport
5d6876a516 [Theme] Add inherit highlight on default theme. 2020-09-06 12:07:57 +02:00
Dave Davenport
402aef334e [Doc] Add warning icon to release note. 2020-09-06 12:05:38 +02:00
Dave Davenport
bd332e7b7e [Doc] Add small (Extra) highlight section to rofi-theme 2020-09-06 11:59:41 +02:00
Dave Davenport
f5bb9d2cbf [Widget] Fix border drawing code.
Fixes: #1177
2020-09-05 11:12:54 +02:00
Dave Davenport
5deac0a697 Try to improve bison check so it works on bsd 2020-09-03 21:08:17 +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
2fbdf71951
Update bug_report.md 2020-09-01 10:51:14 +02:00
Dave Davenport
479063e87f Release notes, small markup fix 2020-08-30 13:57:20 +02:00
Dave Davenport
7beee6c3c2
Update release-1.6.0.markdown 2020-08-29 14:01:39 +02:00
Dave Davenport
956bf5dc91
Update release-1.6.0.markdown 2020-08-29 14:00:42 +02:00
Dave Davenport
bca0a47dbf Remove unneeded '# from shipped themes. 2020-08-29 11:16:39 +02:00
Dave Davenport
e8f78886d5 Fix showing of error message (-e ) in arther,paper-float,sidebar 2020-08-29 11:14:23 +02:00
Dave Davenport
c65f16576b Update changelog releasenotes 2020-08-29 10:55:51 +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
Dave Davenport
120ce36055 [ReleaseNotes] Update title + add examples script. 2020-08-25 21:35:56 +02:00
Dave Davenport
3d531a9cfc Update release notes 2020-08-25 21:02:32 +02:00
Dave Davenport
97ac7c9348 [Matching] Make fuzzy matching non-greedy 2020-08-25 20:23:26 +02:00
Dave Davenport
4f1169e326 Add extra timing debug.
Issue: #1162
2020-08-19 22:44:55 +02:00
Dave Davenport
802a9489e7 [Build] Try to fix make dist for meson. 2020-08-18 13:02:49 +02:00
Dave Davenport
13d291c6d4 Merge remote-tracking branch 'origin/mesonfix' into next 2020-08-18 12:58:48 +02:00
Dave Davenport
001a293b18 [ReleaseNotes] tiny update to header. 2020-08-18 11:12:10 +02:00
Dave Davenport
77b761aca5 [meson] Test possible 'workaround' for meson 0.55 issue
Make xcb a non-nested subproject (via simlink).

Issue: #1159
2020-08-01 11:28:48 +02:00
nick87720z
57ee69367d
micro-refactoring: widget.c (#1148)
* widget.c: microrefactoring

* widget.c: join enable/disable functions
2020-07-11 14:48:58 +02:00
Dave Davenport
641cd4ef46 [Widget] Fix inconsistency in argument checking. 2020-07-09 17:47:32 +02:00
Dave Davenport
5d3cd8a83f Update README to include both config and known_hosts.
Issue: #1154
2020-07-08 19:16:48 +02:00
Dave Davenport
f93033ebaa [Test] Update check building. 2020-07-05 16:07:55 +02:00
Dave Davenport
72138c1a10 release note, update image. 2020-07-05 16:00:39 +02:00
Dave Davenport
0b1cef778a Update releasenotes 2020-07-05 15:59:23 +02:00
Dave Davenport
fc0ea0b22e Update changelog a bit. 2020-07-05 11:41:04 +02:00