Skip to content

Commit

Permalink
make node refs not editable, updated todos
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed Dec 14, 2023
1 parent 309461e commit 204ce23
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,22 +273,23 @@ Here is an overview of the modules:
- add nicer way to write:
- StringGetPointer, StringGetLength
- <, <=, etc
- fix pressing . at end of string literal creates member access node instead of inserting into string
- add bool type
- make [] work with strings
- add type conversions
- add char literal
- change rendering of deref/addressOf to postfix
- add selection history
- add string escape and/or allow entering \n
- for loops
- auto open completion window?
- auto accept completion exact match even if other/longer completions exist
- floats
- render actual types in type placeholders
- add move cursor to next/prev function/declaration/statement/expression etc
- add text based search (fuzzy?)
- add global symbol finder
- goto definition to other files
- add validation for all ast node types
- allow deleting selection in e.g. property cells
- make node reference not editable
- don't allow node substitution keys on empty expressions
- improve auto parenthesis for cells
- add struct scoped functions
- support copying multiple nodes
- fix deleting e.g parameters not possible
- fix deleting e.g struct member type bug
- add move to next error command

[Test report](https://nimaoth.github.io/Absytree/testresults.html)
2 changes: 1 addition & 1 deletion src/ast/base_language.nim
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ builder.addBuilderFor returnClass.id, idNone(), proc(builder: CellBuilder, node:
builder.addBuilderFor nodeReferenceClass.id, idNone(), proc(builder: CellBuilder, node: AstNode, owner: AstNode): Cell =
if node.resolveReference(IdNodeReferenceTarget).getSome(targetNode):
if targetNode.nodeClass.isSubclassOf(IdINamed):
return PropertyCell(id: newId().CellId, node: owner ?? node, referenceNode: targetNode, property: IdINamedName, themeForegroundColors: @["variable", "&editor.foreground"])
return PropertyCell(id: newId().CellId, node: owner ?? node, referenceNode: targetNode, property: IdINamedName, themeForegroundColors: @["variable", "&editor.foreground"], disableEditing: true)

var cell = CollectionCell(id: newId().CellId, node: owner ?? node, referenceNode: node, uiFlags: &{LayoutHorizontal})
cell.fillChildren = proc(map: NodeCellMap) =
Expand Down

0 comments on commit 204ce23

Please sign in to comment.