Cudatext: Plugin Favorites 1.2

Created on 8 Jul 2020  路  33Comments  路  Source: Alexey-T/CudaText

Plugin is updated. You can try it via "Plugins/ Addon manager/ Install from github", URL https://github.com/kvichans/cuda_favorites.

Menu has additional commands
image
Dlg look is almost the same
image

Added

  1. hotkeys Ctrl+1..9 to call items 1..9 (Alt+1..9 still work, Alt+0 doesn't)
  2. click on Open with key Shift - opens the file w/o closing the dialog.
plugins

Most helpful comment

Thanks - now i catch repro

All 33 comments

Great! can I translate post to En? to post link on Cud page?

gtk2 - look is OK
Screenshot from 2020-07-08 19-44-29

袠写械褟 "胁褘褋芯褌褍 写谢褟 褟褉谢褘泻芯胁 斜褉邪褌褜 懈蟹 app.app_proc(app.PROC_GET_GUI_HEIGHT, 'button')" 褋褉邪斜芯褌邪谢邪. :)

Let's publish it

芯泻

History:
Dialog is fully reworked via new CudaText API.
Added commands in "Plugins/Favorites".
Added Shift+click on "Open" button to open item w/o closing dialog.

小锌邪褋懈斜芯

袨锌褍斜谢懈泻芯胁邪谢

Hi @kvichans
The close button is not working for me:

cudatext_2020-07-09_11-05-36

Yes, for me too. To fix.

Fixed, published

Before/After update the plugin now I am getting this error trying to open the Favorities dialog:

    Traceback (most recent call last):
      File "C:\Users\Jairo Martinez\Downloads\Apps\Cudatext\py\cuda_favorites\cd_favs.py", line 236, in dlg
        ,   opts    =d(negative_coords_reflect=True)
      File "C:\Users\Jairo Martinez\Downloads\Apps\Cudatext\py\cuda_favorites\cd_kv_dlg.py", line 157, in __init__
        self._setup(ctrls, form, vals, fid)
      File "C:\Users\Jairo Martinez\Downloads\Apps\Cudatext\py\cuda_favorites\cd_kv_dlg.py", line 540, in _setup
        DlgAg._check_data(self.ctrls, ctrls, form, vals, fid)
      File "C:\Users\Jairo Martinez\Downloads\Apps\Cudatext\py\cuda_favorites\cd_kv_dlg.py", line 521, in _check_data
        raise ValueError(f'No name for fid: {fid}')
    ValueError: No name for fid: brow

I don't know if I need to clean some cache?

I had to clean the previous cuda_favorites.json file.

I could repro, the problem happens when the config json have this value:

    "fv_tab": 1,

I see the bug. Sorry!
Fixed+Pub (with prev ver - so update from GH)

Now the Open button is never enable:

cudatext_2020-07-09_13-07-24

:( No ideas
Could you pass cuda_favorites.json to repro?

It happened when I modified manually the same value to:

" fv_tab": 1,

I have no repro

My steps:

  • Download the plugin from GH
  • Close Cud
  • Change cuda_favorites.json for this value to: "fv_tab": 1,
  • Open Cud
  • Open Favorities
  • The button Open is not enable
  • Close Cud
  • The value in cuda_favorites.json is updated to: "fv_tab": 0, automatically by the plugin
  • Open Cud again
  • The Favorities again, now is OK

At the end @kvichans the user don't need to change manually the value of "fv_tab": 1, in my case I get this weird behavior because I had to change manually the value for my first report, you can consider OK I suppose.

Need more info about content of cuda_favorites.json:

  • Are fv_files and/or fv_projs in cuda_favorites.json?
  • How many items in the lists?

My settings:

cuda_favorites.zip

Thanks - now i catch repro

Try from GH

Working good!

Suggested features for consideration:

  • Support double click on list of files/projects to open
  • In Projects tab when click on Add... button limit filter to Cud Project files, I supposing Projects tab is only for Cud projects.

Thanks.

ToDo

@Jairo-Martinez
Dbl-click and filter: done.
Try from GH

My unit tests shows all OK.

Thanks
Publishing...

I dont see that dbl-click works in last release (linux gtk2).

Publishing...

Published

Ok,thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Alexey-T picture Alexey-T  路  5Comments

Alexey-T picture Alexey-T  路  7Comments

JairoMartinezA picture JairoMartinezA  路  5Comments

JairoMartinezA picture JairoMartinezA  路  7Comments

GHNewbiee picture GHNewbiee  路  7Comments