Giter Club home page Giter Club logo

fuzzycompletions.jl's People

Contributors

artemsolod avatar aviatesk avatar fonsp avatar pangoraw avatar pfitzseb avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

fuzzycompletions.jl's Issues

Case sensitivity

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)

Autocomplete nested Dicts

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?

completing path at space throws error

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

Importing non-existing methods from REPLCompletions

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
└

TagBot trigger issue

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.

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.