Git Product home page Git Product logo

cuda_console_complete's People

Contributors

halfbrained avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

cudatext-addons

cuda_console_complete's Issues

are locals() get only 1 time?

seems you get locals() on EVERY on_key?

      # get Console locals()
      Parcel._locals.clear()
      app_proc(PROC_EXEC_PYTHON, 'from cuda_cns_complete.cns_complete import Parcel; '+
            'Parcel._locals.update(locals())')

need 1 time! save them and re-use.

block space-key

win10. on typing in console ctrl+space, I got space added after the text 'os.path.e'. then completion listbox appears.
must block space-key!
patch:

  def on_cns_key(self, id_dlg, key_code, data='', info=''):
    state = data
    if key_code == VK_SPACE  and state == 'c':
      self.complete()
      return False # block typing of Space key

readme?

Also works in document tabs; this goes nicely with "Execute selected text in console" command from "CudaExt" plugin.
Other auto-completion plugins will interfere with this plugin's functionality in document tabs if command in "Command Palette" is assigned "Ctrl+Space" hotkey.

и что тогда юзеру делать? не поянтно.
надо написать про чтото типа "вызывайте комплит для редактора через Plugins/.... или дайте команде плагина другой хоткей".

add options?

let's add opts?
from settings/plugins.ini you can read one option

[console_complete]
replace_right_part=1

and second option for string in listbox 1st column

prefix=id

maybe opt-3, bool-- "add 3rd listbox column with brackets"

add_func_params=1

why 'for' here?

    count = dlg_proc(hcons, DLG_CTL_COUNT)
    for i in range(count):
      props = dlg_proc(hcons, DLG_CTL_PROP_GET, index=i)
      if props and props.get('type') == 'editor_edit':
      
        dlg_proc(hcons, DLG_PROP_SET, prop={ 
          'keypreview': True, # Should be True if form needs to handle on_key_down.
          'on_key_down': self.on_cns_key,
          })
        break

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.