veksha / cuda_hotspots Goto Github PK
View Code? Open in Web Editor NEWHotspots is a CudaText plugin. Gives panel to show all existing bookmarks to jump to; also shows Git modified/untracked files
Hotspots is a CudaText plugin. Gives panel to show all existing bookmarks to jump to; also shows Git modified/untracked files
wish from me + Miroslav.
For filenames in the 'Git' panel item, plugin supports context menu with items:
- Add
- Restore...
- Diff head
and this at the end
Icons: from Lazarus IDE project, free license.
def bool_to_str(v):
return '1' if v else '0'
def str_to_bool(s):
return s=='1'
bookmarks_item = tree_proc(
self.h_tree,
TREE_ITEM_ADD,
text="bookmarks",
data='bm'
https://www.iconfinder.com/search?q=refresh
and
https://www.iconfinder.com/search?q=git
have more simple icons. if you are OK with current ones- ok too.
will be possible to add two new options?
1/ do not collect hotspots on save action
2/ collect hotspots on place bookmark
sure - default/initial situation will be current state…
my reasons - I have too many bookmarks… and save lead to short delay…
TIA
toolbar_proc(h_bar, TOOLBAR_ADD_ITEM)
cnt = toolbar_proc(h_bar, TOOLBAR_GET_COUNT)
h_btn = toolbar_proc(h_bar, TOOLBAR_GET_BUTTON_HANDLE, index=cnt-1)
but
About No description, website, or topics provided.
I am not sure if it is possible on this plugin… but it is possible on bookmarks + Cuda-Ext
to show not only filename + row number , but also line text… (even not whole line…)
right now - I can see that file BlaBla.mkd have 7 hotspots, but have no idea what is related to what…
on the Cuda-Ext dialog - here is possible to see bookmarked line content + file name… and is possible to filter/search by text on row…
so, question - will be possible to implement that feature here?
events=on_save~
By default all event handlers, except on_exit, are not "lazy". On_exit is always "lazy" - it means that it's called only for already loaded plugins. To make other event handlers lazy, write in install.inf event name with "~":
events=on_focus~,on_open~,on_state~
Plugin for CudaText.
Gives panel (in CudaText side-panel) to show all existing bookmarks to jump to;
also shows Git modified/untracked files.
Panel can be shown by:
- click on plugin's sidebar icon
- menu item "Plugins / Hotspots / Open side panel"
Bookmarks list shows 2 lists, combined/deduplicated:
- bookmarks from all opened UI-tabs
- bookmarks saved to CudaText file 'settings/history files.json'
Author: Yuriy Balyuk, https://github.com/veksha
License: MIT
Hi @veksha
Basically
dlg_menu(DMENU_LIST+DMENU_CENTERED, 'a\tb\n3\t4', w=1000)
example of centered dialog, and setting width.
Some remarks on that one:
Why does the flashlight show out of the window? I think the flashlight
should show TOWARDS the hotspot panel rather than FROM it (see
screenshot). I for myself have flipped the icon horizontally, maybe you
have some use for it.
Furthermore, I added a 'hotspots' icon for the sideicons common_20x20
(see other screenshot), maybe you have some use for it too.
def __git(params, cwd=None):
startupinfo = None
if os.name == 'nt':
but you have
IS_WIN = os.name=='nt'
[info]
title=Hotspots
desc=Gives panel to show all existing bookmarks to jump to; also shows Git untracked files
type=cudatext-plugin
subdir=cuda_hotspots
homepage=https://github.com/veksha/cuda_hotspots
Traceback (most recent call last):
File "/home/user/.config/cudatext/py/cuda_hotspots/__init__.py", line 374, in go_to_hotspot
for item_parent in items:
TypeError: 'NoneType' object is not iterable
ERROR: Exception in CudaText for go_to_hotspot: TypeError: 'NoneType' object is not iterable
please add this action into CT Command palette…
/as instead of click on icon/
TIA
/no hurry/
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.