|  02-01-2024, 09:00 AM | #1261 | |
| Wizard            Posts: 1,216 Karma: 1995558 Join Date: Aug 2015 Device: Kindle | Quote: 
 Code: if gui.library_view.currentIndex(): .... Code: if gui.library_view.currentIndex().row() >= 0: .... Code: if gui.library_view.currentIndex().row() != QModelIndex(): .... Code: gui.search.set_search_string(search_string) gui.search.do_search() Last edited by capink; 02-01-2024 at 03:54 PM. Reason: remove attatchment | |
|   |   | 
|  02-01-2024, 09:17 AM | #1262 | |
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | Quote: 
 Code: dex = gui.library_view.currentIndex()
if dex.isValid():
    row = dex.row()
    ....Code: python:
def evaluate(book, context):
	from calibre.gui2.ui import get_gui
	gui = get_gui()
	dex = gui.library_view.currentIndex()
	print(dex, dex.isValid()) 
	return f'row = {dex.row()}' if dex.isValid() else 'Not valid' | |
|   |   | 
|  02-01-2024, 09:21 AM | #1263 | 
| Wizard            Posts: 1,216 Karma: 1995558 Join Date: Aug 2015 Device: Kindle | 
			
			Thanks    | 
|   |   | 
|  02-01-2024, 09:41 AM | #1264 | 
| Fanatic            Posts: 568 Karma: 32228 Join Date: Feb 2012 Device: Onyx Boox Leaf | |
|   |   | 
|  02-08-2024, 12:51 AM | #1265 | 
| Custom User Title            Posts: 11,341 Karma: 79528341 Join Date: Oct 2018 Location: Canada Device: Kobo Libra H2O, formerly Aura HD | 
			
			Is it possible to give a submenu an icon other than the first chain?
		 | 
|   |   | 
|  02-08-2024, 06:01 AM | #1266 | |
| Wizard            Posts: 1,216 Karma: 1995558 Join Date: Aug 2015 Device: Kindle | Quote: 
 Code: action_chains_default_sub_menu_icon = 'first_action' Code: action_chains_default_sub_menu_icon = False | |
|   |   | 
|  02-13-2024, 08:29 AM | #1267 | 
| Custom User Title            Posts: 11,341 Karma: 79528341 Join Date: Oct 2018 Location: Canada Device: Kobo Libra H2O, formerly Aura HD | 
			
			Aside from manually checking all my chains, is there a way to tell if a chain is being used in a caller action prior to rename?
		 | 
|   |   | 
|  02-13-2024, 02:40 PM | #1268 | |
| Wizard            Posts: 1,216 Karma: 1995558 Join Date: Aug 2015 Device: Kindle | Quote: 
 
 Warning: The second option is untested and it might destroy your config. Make sure to make a copy of your "Action Chains.json" file before proceeding. Do this every time you run it. | |
|   |   | 
|  02-13-2024, 04:43 PM | #1269 | |
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | Quote: 
 | |
|   |   | 
|  02-13-2024, 04:53 PM | #1270 | 
| Custom User Title            Posts: 11,341 Karma: 79528341 Join Date: Oct 2018 Location: Canada Device: Kobo Libra H2O, formerly Aura HD | 
			
			I didn't think of checking the json directly. That should work and be less risky. Thanks both.
		 | 
|   |   | 
|  02-13-2024, 04:58 PM | #1271 | 
| Wizard            Posts: 1,216 Karma: 1995558 Join Date: Aug 2015 Device: Kindle | 
			
			Yes, that would be much simpler. Sometimes you miss simple things in front of you, especially at night after a long day at work.
		 | 
|   |   | 
|  02-13-2024, 05:00 PM | #1272 | 
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | |
|   |   | 
|  02-27-2024, 03:49 PM | #1273 | 
| Junior Member  Posts: 5 Karma: 10 Join Date: Mar 2013 Device: iPad | 
				
				Duplicate Plugin by Grant Drake
			 
			
			Some when I lost the Duplicate Plugin icon on the main menu. It appears to install OK but now I have no way of running it. Any ideas? Have uninstalled and reinstalled with no success.
		 | 
|   |   | 
|  02-27-2024, 06:45 PM | #1274 | |
| Well trained by Cats            Posts: 31,246 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | Quote: 
 If the PI is installed correctly: there will be an icon on the left. Use the arrow to move it to the right | |
|   |   | 
|  03-01-2024, 09:25 PM | #1275 | |
| want to learn what I want            Posts: 1,679 Karma: 7908443 Join Date: Sep 2020 Device: none | Quote: 
   Last edited by Comfy.n; 03-02-2024 at 03:21 AM. Reason: grammar. grr... | |
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Action Chains Resources | capink | Plugins | 80 | 09-18-2025 04:45 AM | 
| [Editor Plugin] Editor Chains | capink | Plugins | 106 | 06-17-2025 05:36 PM | 
| [GUI Plugin] Noosfere_util, a companion plugin to noosfere DB | lrpirlet | Plugins | 2 | 08-18-2022 03:15 PM | 
| [GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 05:25 AM |