Skip to content

Commit

Permalink
πŸ—ƒ Sort path completions
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Apr 9, 2020
1 parent 22592e3 commit 08000f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webserver/Completions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ responses[:completepath] = (body, notebook=nothing; initiator::Union{Initiator,
Dict(
:start => start_utf8 - 1, # 1-based index (julia) to 0-based index (js)
:stop => stop_utf8 - 1, # idem
:results => format_path_completion.(results)
:results => sort(format_path_completion.(results), by=s -> (!isdirpath(s), s))
), notebook, nothing, initiator)

putclientupdates!(initiator, msg)
Expand Down

0 comments on commit 08000f6

Please sign in to comment.