GithubHelp home page GithubHelp logo

veksha / cuda_hotspots Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 44 KB

Hotspots is a CudaText plugin. Gives panel to show all existing bookmarks to jump to; also shows Git modified/untracked files

Python 100.00%

cuda_hotspots's People

Contributors

ildarkhasanshin avatar veksha avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

cuda_hotspots's Issues

add this to readme

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.

unused funcs

def bool_to_str(v):
    return '1' if v else '0'

def str_to_bool(s):
    return s=='1'

optim

        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

  • TOOLBAR_ADD_ITEM: Adds one button, of usual kind. Returns its handle.

hotspot - row content + filename /request…/

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?

image

on_save handler - make 'lazy' in .inf

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~

readme.txt

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

from Markus F in email

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.

panel_hotspots

common-hotspots


common_20x20.zip

optim more

def __git(params, cwd=None):
    startupinfo = None
    if os.name == 'nt':

but you have
IS_WIN = os.name=='nt'

fill .inf file lines

[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

no bookmarks: GoTo command crash

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.