-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request from billyeatcookies/outline
- Loading branch information
Showing
21 changed files
with
340 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from .sidebarview import SidebarView | ||
from .explorer import Explorer | ||
from .extensions import Extensions | ||
from .outline import Outline | ||
from .search import Search | ||
from .sidebarview import SidebarView | ||
from .sourcecontrol import SourceControl | ||
from .extensions import Extensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from __future__ import annotations | ||
|
||
import typing | ||
|
||
import sansio_lsp_client as lsp | ||
|
||
from biscuit.core.components.floating.palette import ActionSet | ||
|
||
from ..sidebarview import SidebarView | ||
from .outlinetree import OutlineTree | ||
|
||
if typing.TYPE_CHECKING: | ||
from biscuit.core.components.editors.texteditor import Text | ||
|
||
class Outline(SidebarView): | ||
def __init__(self, master, *args, **kwargs) -> None: | ||
self.__buttons__ = [('refresh',), ('collapse-all',), ('ellipsis',),] | ||
super().__init__(master, *args, **kwargs) | ||
self.__icon__ = 'symbol-class' | ||
|
||
self.tree = OutlineTree(self) | ||
self.add_widget(self.tree) | ||
|
||
def update_symbols(self, tab: Text, response: list[lsp.DocumentSymbol]) -> str: | ||
return self.tree.update_symbols(tab, response) | ||
|
||
def get_actionset(self) -> ActionSet: | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
kinds = ( | ||
("symbol-file", None), | ||
("symbol-module", None), | ||
("symbol-namespace", None), | ||
("symbol-package", None), | ||
("symbol-class", "#de9327"), | ||
("symbol-method", "#AB7CCF"), | ||
("symbol-property", "#6eb1ee"), | ||
("symbol-field", "#6eb1ee"), | ||
("symbol-constructor", "#6eb1ee"), | ||
("symbol-enum", None), | ||
("symbol-interface", "#de9327"), | ||
("symbol-function", "#AB7CCF"), | ||
("symbol-variable", "#6eb1ee"), | ||
("symbol-constant", None), | ||
("symbol-string", None), | ||
("symbol-number", None), | ||
("symbol-boolean", "#de9327"), | ||
("symbol-array", None), | ||
("symbol-object", None), | ||
("symbol-key", None), | ||
("symbol-null", None), | ||
("symbol-enum-member", None), | ||
("symbol-struct", None), | ||
("symbol-event", "#ffd700"), | ||
("symbol-operator", None), | ||
("symbol-type-parameter", "#ffd700") | ||
) |
Oops, something went wrong.