Skip to content

Additional definition modification keywords #2

Open
@kosch

Description

As user I want to create new defines or append facts in one single row w/op c&p the previous content.

e.g.
.define foobar is also xyz

should create fact foobar with content xyz if not exists. If fact foobar already exists, the new fact should be added using a delimiter, maybe |.

example:
.define foobar
=> sorry, no definition found...
.define foobar is also xyz
=> definition of "foobar" created
.define foobar is also abc
=> definition of "foobar" updated
.define foobar
=> foobar: xyz | abc

Optional an keyword like "forget" can remove additional facts if the string between limiters matches:

example:
.define foobar forget abc
=> definition of "foobar" updated
.define foobar
=> foobar: xyz
.define foobar forget zzz
=> error no such fact on "foobar"

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions