junolab / fuzzycompletions.jl Goto Github PK
View Code? Open in Web Editor NEWFuzzy completion provider for Julia
License: MIT License
Fuzzy completion provider for Julia
License: MIT License
Thanks for this great package! I was wandering if the experience could be improved by making ranking case sensitive. Right now the first suggestion for nthng
(and nothing
) is Nothing
which is probably not ideal. I looked at fuzzy-completion in RStudio and it seems to take into account capitalization. Are there some considerations for the current behaviour?
(tested within Juno 0.8.2, Atom 0.12.11)
I noticed that first level keys of Dictionaries are nicely handled by FuzzyCompletions but when trying to autocomplete keys at higher levels of nested dicts the autocompletion doesn't work anymore.
I have noticed that nested autocompletion is also an issue with standard REPL completions so it might be a design decision, but would it be feasible to have nested dict completion functionality?
julia> using FuzzyCompletions
julia> using REPL
julia> dir = mktempdir()
"/var/folders/v_/fhpj9jn151d4p9c2fdw2gv780000gn/T/jl_BzlNra"
julia> touch(joinpath(dir, "a file.txt"))
"/var/folders/v_/fhpj9jn151d4p9c2fdw2gv780000gn/T/jl_BzlNra/a file.txt"
julia> query = joinpath(dir, "a ")
"/var/folders/v_/fhpj9jn151d4p9c2fdw2gv780000gn/T/jl_BzlNra/a "
julia> REPL.REPLCompletions.complete_path(query, lastindex(query))
(REPL.REPLCompletions.Completion[REPL.REPLCompletions.PathCompletion("a file.txt")], 59:61, true)
julia> FuzzyCompletions.complete_path(query, lastindex(query))
ERROR: BoundsError: attempt to access 0-element Array{Char,1} at index [1]
Stacktrace:
[1] getindex at ./array.jl:809 [inlined]
[2] matchinds(::String, ::String; acronym::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/REPL/src/docview.jl:487
[3] bestmatch at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/REPL/src/docview.jl:500 [inlined]
[4] fuzzyscore(::String, ::String) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/REPL/src/docview.jl:510
[5] fuzzyscore at /Users/fons/.julia/packages/FuzzyCompletions/575TE/src/FuzzyCompletions.jl:16 [inlined]
[6] PathCompletion at /Users/fons/.julia/packages/FuzzyCompletions/575TE/src/FuzzyCompletions.jl:34 [inlined]
[7] complete_path(::String, ::Int64; use_envpath::Bool, shell_escape::Bool) at /Users/fons/.julia/packages/FuzzyCompletions/575TE/src/FuzzyCompletions.jl:326
[8] complete_path(::String, ::Int64) at /Users/fons/.julia/packages/FuzzyCompletions/575TE/src/FuzzyCompletions.jl:256
[9] top-level scope at REPL[10]:1
In Julia 1.10
┌ FuzzyCompletions [fb4132e2-a121-4a70-b8a1-d5b831dcdcc2]
│ WARNING: could not import REPLCompletions.get_value into FuzzyCompletions
│ WARNING: could not import REPLCompletions.get_type into FuzzyCompletions
└
This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml
to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
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.