Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TreeView improvements for multi-project #1010

Merged
merged 4 commits into from
Jun 7, 2022

Conversation

Guldoman
Copy link
Member

@Guldoman Guldoman commented Jun 1, 2022

This PR fixes #1006 and other issues found while testing TreeView with multiple top directories.

  • common.path_suggest now accepts a 'root' parameter for relative paths to start from.
  • Added common.is_absolute_path.
  • Added TreeView:get_item, TreeView:get_next and TreeView:get_previous helper functions.
  • Added is_primary_project_folder; is_project_folder now applies to any top directory.
  • Added treeview:remove-project-directory command and relative Remove directory context menu item.
  • treeview:expand now goes to the first child if called on an expanded directory.
  • treeview:new-file, treeview:new-folder, treeview:delete and treeview:rename now work with multi-project-dirs.

TODO:

  • add documentation for new methods

@Guldoman Guldoman force-pushed the PR_improve_multiproject_treeview branch from c34d172 to 730ea0c Compare June 1, 2022 04:58
@jgmdev jgmdev merged commit 2fc2033 into lite-xl:master Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"New File" and "New Directory" creates files/directories in wrong project folder
2 participants