lite-xl/data/core/commands
Francesco Abbate 9929ca9c2d Fix logic with project directories suggestions
Attempt to fix issue #791.

The logic set with the previous commit for suggest_directory
is similar to the one we use except the previous expression
was false do to operator precedence for "and" versus "or".

With the modification here, when opening a project directory,
we suggest the recently used projects
if the text is equal to dirname(project_dir) + "/" which
happens to be the text the command view is initially set to.
In addition we do the same if text is "". If the condition is
not met we return the suggestions from common.dir_path_suggest to
match the text entered.

Works well on Linux but may not solve the problem on Windows, it
should be tested.
2022-01-05 23:21:47 +01:00
..
command.lua Commands refactor (#257) 2021-06-07 23:00:29 +02:00
core.lua Fix logic with project directories suggestions 2022-01-05 23:21:47 +01:00
dialog.lua Fix undeclared NagView findindex() by moving it to common. 2021-06-13 21:28:29 -04:00
doc.lua Remove duplicate command declaration (#565) 2021-10-02 18:39:22 +02:00
drawwhitespace.lua Implement unicode character replacements 2021-04-01 18:05:59 +02:00
files.lua Integrate mkdirp function in common module (#265) 2021-06-13 19:50:42 +02:00
findreplace.lua Improve check for `find-replace` commands using `has_unique_selection` 2021-10-16 03:02:42 +02:00
root.lua Check both values returned by `Node:get_locked_size` 2021-10-16 02:56:01 +02:00