Commit Graph

454 Commits

Author SHA1 Message Date
Ofek Itscovits b4cb55a525 Use uid instead of name to identify if an entry already exists
Some apps have the same name, i.e nemo and nautilus are both called 'Files'
Before this fix only one of them would end up in the app launcher
2023-06-28 21:39:58 +03:00
Ofek Itscovits f96d837117 Refresh the app list everytime :show() is called
Watching the /usr/share/applications directory doesn't work across all distors, i.e on NixOS
That folder exists on /run/current-system/sw/share/applications or (~/.nix-profile/share/applications for user apps), but it's
just a syslink
to a path in the store, and that path changes across rebuilts.
2023-06-28 17:57:28 +03:00
Ofek Itscovits 17d171eb1d Fix using the wrong key 2023-06-28 17:52:41 +03:00
Ksaper c44dc018c7 Improve dragging handling 2023-04-03 22:46:45 +03:00
Ksaper d8897a2616 Fix cursor position after overwriting text 2023-04-03 21:49:00 +03:00
Ksaper 0452b69a4d Fix text obscure 2023-04-03 17:12:11 +03:00
Ksaper e80db42445 Forgot to commit this 2023-04-03 17:11:47 +03:00
Ksaper 92ff78314b Remove whitespace 2023-03-28 02:06:57 +03:00
Ksaper 80b9062839 Implmement the select_or_exec function at the rofi grid widget level 2023-03-26 18:22:59 +03:00
Ksaper ee5438c0f2 Fix cursor reblinking when already in insert mode and pressing the text input again 2023-03-19 08:35:01 +02:00
Ksaper 69dd122d58 Increase click timeout 2023-03-19 04:00:40 +02:00
Ksaper 86f5382bfd Only set the mode to overwrite if there was actual text being selected 2023-03-19 03:45:27 +02:00
Ksaper 36cd1581cb This wasn't working if the mouse left the text input before releasing LMB 2023-03-18 03:27:16 +02:00
Ksaper 7d4afecb3c Change default click timeout to 0.1 2023-03-18 03:26:31 +02:00
Ksaper cbc6f46cce Can't select text if empty 2023-03-18 03:26:23 +02:00
Ksaper 053cb47b74 Improve text selection handling when cursor it outside text extents 2023-03-17 11:28:00 +02:00
Ksaper bbba4cdf42 Make use of #35611e 2023-03-17 03:05:20 +02:00
Ksaper 35611e44d2 Add context to the select signal 2023-03-17 00:55:57 +02:00
Ksaper aa25cfd4b6 Add default_search_sort_fn and default_search_fn to rofi grid 2023-03-16 08:20:00 +02:00
Ksaper 331712ff75 Handle favorites directly in the rofi grid widget 2023-03-16 08:09:03 +02:00
Ksaper d09bf3ba7e I was keeping the cache, but overriding the entries table which caused the widgets to keep a refrence to an entry that was now nil 2023-03-16 05:22:56 +02:00
Ksaper 6a52784b46 Hide scrollbar when grid is empty 2023-03-16 04:57:38 +02:00
Ksaper ff8af15218 Fix #92df6d97958df14ca82b47e2de6df086be218969 2023-03-16 04:56:30 +02:00
Ksaper 070150e902 Fix cursor blinking too fast sometimes 2023-03-16 04:56:12 +02:00
Ksaper 0c6a1ca4f5 Better handling for when clicked position it outsidd the bounds 2023-03-16 04:47:16 +02:00
Ksaper 92df6d9795 Fix getting the same value twice 2023-03-16 04:47:02 +02:00
Ksaper 566a5a9bd9 Add context to the unfocus signal 2023-03-16 04:37:55 +02:00
Ksaper 6c76dc9b17 Fix varius input handling issues with the text input widget 2023-03-16 02:04:06 +02:00
Ksaper 89198120ea Widgets might share the same entries, so don't have any method on the entries objects 2023-03-15 20:40:33 +02:00
Ksaper 26c6b2b12c Remove print 2023-03-15 15:42:08 +02:00
Ksaper a1c93c87a7 Fix not being able to do shift + key 2023-03-15 15:01:39 +02:00
Ksaper 1cec46b2bb Elseif it 2023-03-15 15:01:34 +02:00
Ksaper 31809096ad Add local pairs 2023-03-15 07:05:20 +02:00
Ksaper 39dc7215d1 Add back the set_selected_entry method with a new name 'scroll_to_index'
Using the scroll_up/down for scrolling by dragging the scrollbar was laggy
2023-03-15 07:02:35 +02:00
Ksaper ed287c86e2 Makes cache smarter when reloding the app list (only add/remove what's needed instead of reseting the entire cache) 2023-03-15 06:44:36 +02:00
Ksaper 39a7b9659f Is 0.05 enough? 2023-03-13 03:48:55 +02:00
Ksaper 26588dc725 Formatting 2023-03-13 03:45:12 +02:00
Ksaper ad9c4d795b DesktopAppInfo sucks for sorting the matched apps for best results, use fzy instead 2023-03-13 03:42:42 +02:00
Ksaper 98a3b31df4 Better naming 2023-03-13 03:42:09 +02:00
Ksaper 31934c1576 Implement double click to select current word + triple click to select all text 2023-03-13 02:28:22 +02:00
Ksaper ef7cba1b4d Fix checking for the wrong value 2023-03-13 02:02:52 +02:00
Ksaper 996fc7cf79 Should check if true 2023-03-13 01:56:46 +02:00
Ksaper debaa44042 Fix calling the method on the wrong object 2023-03-13 01:06:40 +02:00
Ksaper df599e260d Rename text_input_color to text_input_text_color to avoid confusion 2023-03-13 00:58:51 +02:00
Ksaper aa629f6d92 Add text_input_selection_bg prop 2023-03-13 00:58:38 +02:00
Ksaper 89a1a1f1ec These defaults makes more sense for the app launcher, but less if used in other widgets 2023-03-13 00:58:19 +02:00
Ksaper 2e3da90061 Fix default sorting + formatting 2023-03-13 00:49:54 +02:00
Ksaper fb688b25a0 Part of the rofi grid widget now 2023-03-13 00:49:41 +02:00
Ksaper 9226d7c23a Fix varius issues 2023-03-12 18:28:26 +02:00
Ksaper 63d8f27011 Fix not returning the value 2023-03-12 18:27:28 +02:00