kvichans / cuda_favorites Goto Github PK
View Code? Open in Web Editor NEWCudaText plugin to manage list of global file paths and quick open from the list
CudaText plugin to manage list of global file paths and quick open from the list
..and disable listbox.
'Open' in empty list
File "<string>", line 1, in <module>
File "/home/user/.cudatext/py/cuda_favorites/cd_favs.py", line 62, in dlg_favorites
if btn=='open' and last>=0 and os.path.isfile(files[last]):
IndexError: list index out of range
по тесту, плаг не может добавить в список папку- диалог выыбора файла по [Add..] не дает.
In the help provided by the dialog from the ?
button, it would be useful to comment that folders can be added by Shift+Clicking the Add
button.
FROM_API_VERSION= '1.0.146'
мусор
def get_fav_data():
return json.loads(open(fav_json).read(), object_pairs_hook=OrdDict) \
говорили же про _json_loads
@kvichans
Pls, integrate this additional command
Alexey-T/CudaText#4892 (comment)
Add to history.txt:
1.2.05 (2023/04/02)
add: Command "Find favorite" (patch from @pintassilgo)
code from @pintassilgo
For Synw usage, do not use dlg_wrapper, and appx
del
Строка
open(fav_json, 'w').write(json.dumps(stores, indent=4))
-лучше ее делать как def do_save.
Аналогично do_open.
Для Куд можно задать
ext_prj = '.cuda-proj'
для Син
ext_prj = '.synw-proj'
Wish: файлы с расширением ext_prj показывать в табе Projects. Не такие в первом табе Files. Было удобно иметь 2 таба files/projects. Если файлов больше 20 и проектов 10
I suggest nice vertical gaps (= small gap, == big)
open== add = add current == delete == move up = move down == close
Menu:
Favorites>>
Python 3.8
Startup: 640ms, plugins: 0ms ()
Init: cuda_favorites
Traceback (most recent call last):
File "/home/user/.config/cudatext/py/cuda_favorites/__init__.py", line 1, in <module>
from .cd_favs import Command
File "/home/user/.config/cudatext/py/cuda_favorites/cd_favs.py", line 13, in <module>
from .cd_plug_lib import *
ModuleNotFoundError: No module named 'cuda_favorites.cd_plug_lib'
Init: cuda_addonman
..
Listbox in SW: имеет символ префикс.
элементы первые- символы 1..0
потом- символы A..Z
потом пробелы
http://synwrite.sourceforge.net/forums/viewtopic.php?p=9915#p9915
Тоже лучше как отдельный def
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.