Giter VIP home page Giter VIP logo

completion-plugin's People

Contributors

gusano avatar henriaugusto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

tomoyanonymous

completion-plugin's Issues

issues with pd 0.50 on macOs

Hello,

great plugin!

install from deken 0.47
seems to not be working correctly on macOS with pd 0.50.

What is the key commands? "tab" does not work. I do not seem to see documentation on a new command key other that in the changelog that says ctl+space... but that does not work either.

hmmmmm

some small things....

in pd console I get "[completion-plugin] version 0.46.1" even though it is 0.47?

under preferences->autocomplete settings the "help" button doesn't work. console says "Ignoring '/Users/megrimm/Documents/Pd/externals/ofelia/README.pd': doesn't exist" which is weird...

maybe there is a way to change the shortcut keys? but i do not see option?

also the readme.deken.pd still lists version as 0.46.0

hmmmm ... unless its all a fault on my end somehow :)

Startup messages

Remove

[completion-plugin] finished scanning externals

From startup messages

Resize listBox when a suggestion is too big

If a suggestion is too big to fit the plugin could resize itself to make it fit in.

(That might be more complicated than it seems to implement).

Also if that indeed is implement it should be togglable.

mousewheel

I wish the mousewheel would work to scroll in the tab selection box.

Plugin gets buggy when found through 2 search paths

I've tested completion 0.47.0-test1 with the just released Pd 0.50.0 and come accross a new problem.
The first time of using completion it gives the right list of objects containing the already typed characters. The second or third time of using completion it doesn't generate the correct list and gives a list with all installed objects...

Searches with "++" result in TCL error

couldn't compile regular expression pattern: quantifier operand invalid
couldn't compile regular expression pattern: quantifier operand invalid
    while executing
"lsearch -all -inline -regexp -nocase $::all_externals $pattern"
    (procedure "::completion::search" line 45)
    invoked from within
"::completion::search $::current_text"
    (procedure "::completion::insert_key" line 8)
    invoked from within
"::completion::insert_key "+" "
    (procedure "::completion::lb_keys" line 15)
    invoked from within
"::completion::lb_keys plus"
    (command bound to event)

possible oslution might be escape the '+' chars.

I should also deal with similar cases!

completion finds ALL and "bogus" abstratctions

some pd files are not real abstractions, or real external objects, but completion detects all files which leads to listing garbage.

perhaps looking for help files would be better or, I don't know, just adding a given list that needs to be provided by the external developer

Search list is not restricting based on matches

I'm not sure if I'm doing anything wrong or not, but...

  1. New object.
  2. Ctrl-space. (BTW I was quite confused about this for a while -- the readme says "Just hit the TAB key while typing into an object to trigger completion mode" -- I had to find the real hotkey in issue 32.)
  3. Type "pol":

pd-bad-completion

... at which point, I'm expecting the list to be filtered according to a partial string match on "pol" but it seems not to have done so.

Bug or wrong usage?

Plugin should get the object text at each update?

Problem:

  1. Create an box
  2. type li
  3. select the liwith the mouse
  4. trigger the pluggin
  5. type n
  6. plugin will display line, line~, and vline~ (and others depending on what you have installed)
  7. but object will only have an n since li was selected

(but the autocomplete at least will type the correct text for you 😄 )

Maybe a solution would be to actually query the object text after each key is pressed.

overwritten pdtk_text_editing breaks another plugin

hi! great work on this plugin, cheers

i'm working on a simple plugin with key bindings: https://github.com/RVirmoors/maxhotkey-pd

the problem is, my bindings (e.g. N for a new object box) work just once, before this plugin overwrites the pdtk_text_editing proc

now, a quick and dirty fix is to just add pdtk_text_editing_old $mytoplevel $tag $editing at the end of your pdtk_text_editing

not sure if:
a) this breaks things (only tested it for a couple of minutes)
b) it's inefficient
c) there's maybe a way for me to hook into your proc from my plugin, so that yours doesn't need to be modified

i'd obviously appreciate the expertise of people better at tcl than me here

Save preference dialog does not work

I tried to go change the hotkey in prefs (because on OSX control+space lead to spotlight search) and font size to 12, but nothing is saved even when I click "save to file" and restart. Editing completion.cfg file is ok.

Also clicking "Default" changed back the font size but not the hotkey.

OSX 10.9.5, pd 0.50, completion-plugin version 0.47.0-test1

Plugin should use different default hotkeys on different systems?

It seems for example that on OS X the current default Ctrl+space is already used for the spotlight so it would be good if the plugin would use a different default for OSX.

Or maybe even change the default hotkey for everyone to something that works for everybody.

I tend to like single-key hotkeys like F3 or something like this, but that may be something too distant compared to Ctrl+Space or the old Tab.

EDITED: actually it seems Control-space is not used for spotlight search but Control-Space is actually reserved by OS X for changing keyboard layouts. Spotlight is isually bound to Cmd+Space.

DIferentiate text widgets when triggering the plugin

Right now the plugin works in object boxes, msg boxes and comments!

It should be able to detect when the user is typing in a comment box so it doesn't show up.

Also it should show completions pertinent to the box the user is typing:

  • If it is a object box, show objects: [trigger], [osc~], [dac~], etc
  • If it is a message box, show message stuff: set, add, add2, addcomma, addsemi, adddollar, adddollsym

Update docs

  1. Hotkeys
  2. Better Install and folder configuration instructions (and reasoning)

Request: add a second "auto complete library names" option for monolithic searches

It would be useful if there were options in the settings menu: one for auto-completing library names for normal searches and one for auto-completing library names for monolithic searches. I have the practice of specifying library names with normal libraries (ie. iemguts) but not with monolithic ones (ie. zexy). But it currently doesn't seem possible to cater to this without editing the preferences every time.

Parcial autocomplete might misbehave

Before i describe how to reproduce it let me describe my environment.

  • i have the easyflow library installed
  • i have a "EasyGrid" library which i'm developing.
  • To avoid the error described in #26 i've changed the plugin hotkey to F3

Example:

Case A: Type "easy" in a box and only then Press F3. There are easygrid and easyflow options so they will appear

image

Everything happens as expected.

Case B: Type "easyf" in a box and only then Press F3. There is only the easyflow library that matches "easyf" so the pluging tries to already complete "easyflow" for you. But the problem is that it doesn't erase the "easyf" that you've already typed and you end with "easyfeasyflow".

image

Tcl error

Sometimes, I get a red tcl error with pd-41.4 under OSX:
I don't really know how to trigger it but my settings are: auto complete lib name unchecked, 20 nb of lines, font size 12, max scan depth 1, "Tab" as hotkey.

(Tcl) ERREUR : bad window path name ".x7fa7466c7210.c"
while executing
"focus -force $::current_canvas"
(procedure "::completion::popup_destroy" line 4)
invoked from within
"::completion::popup_destroy"
(procedure "pdtk_text_editing" line 17)
invoked from within
"pdtk_text_editing .x7fa746437910 {} 0"
("uplevel" body line 1)
invoked from within
"uplevel #0 $docmds"[

Add "Rescan" button

Add a button on the settings window to rescan externals (useful when the user just downloaded something on deken, for ex)

TCL error on unique completions completion

We get the error below when the plugin detects there is only a single completion and automatically complete the word without opening a popup!

bad window path name ".pop"
bad window path name ".pop"
    while executing
"bind .pop <FocusOut> {::completion::debug_msg "the user has unfocused the popup"; ::completion::popup_destroy }"
    (procedure "::completion::trigger" line 55)
    invoked from within
"::completion::trigger"
    (command bound to event)

Placement of the dropdown menu

I think that the placement of the dropdown menu could do with some improvement. Sometimes it appears right on top of the object box, which means that you can't see what you're typing.

zexy
The behavior seems to vary and sometimes the positioning is better than others. I'm not able to figure about exactly what is going on, but here are some observations:

  1. If the patch window is maximized, the menu seems to appear just below the text so it is readable. If the window is not maximized, it seems to appear on top of the box, as in the screenshot.
  2. If the object is too close to the bottom of the window, the menu repositions itself vertically as it should. But if the object is too close to the right-hand margin, then the menu appears mostly off screen.
  3. If you press Ctrl+1, then move the empty object box around with the mouse, then press tab to open the menu, it will drop down from the position where the object originally appeared, not at its current location.

I'm not sure if points 2 and 3 are problems per se, but one way or another it would be nice to ensure that you can always read what you're typing.

completion and pd 0.50-0 test1

The completion plugin doesn’t seem to work with pd 0.50-0 test1. When I put an object, type for example ‘sf’ and press the tab key I get ‘… couldn’t create’ in the Pd window instead of a list of objects that include ’sf’ in their name.
I’m on macos 10.14.6 and use [completion-plugin] version 0.46.1

Request: access help-patches through the drop-down menu

Would it be possible to allow the user to call a help-patch from the drop-down menu? I'm not sure how much work it would be, but it would be a really great feature if you could get it to work. Maybe if you right click on a menu item it could call the help-patch?

Focus bug

Replicate

1 - Create an object box and start yping to see the suggestions
2 - Click that object box. The patch's window will come to the top, staying in front of the suggestions list box.
3 - What you type won't alter the suggestions and you can't bring the suggestions to the top again with TAB.

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.