Murat Kasimov

More about me

Я language (β)

/Я language (β)/Tutorials/Command line task manager 11/

Full source codePrevious chapterNext chapter

In this chapter we are going go replace Scrolling List with Scrolling Tree and sligtly changing other dependent parts.

We need more keys for Shifter since we can shift Scrolling Tree both horizontally and vertically:

> match = exact `ha` Glyph `ha` Letter `ha` Lower `hv'he` J `ho'yo` ( Motion `ha` Aside `ha` Below ) >> `lo'ys'la` exact `ha` Glyph `ha` Letter `ha` Lower `hv'he` K `ho'yo` ( Motion `ha` Aside `ha` Above ) >> `lo'ys'la` exact `ha` Glyph `ha` Letter `ha` Lower `hv'he` L `ho'yo` ( Motion `ha` Pitch `ha` Below ) >> `lo'ys'la` exact `ha` Glyph `ha` Letter `ha` Lower `hv'he` H `ho'yo` ( Motion `ha` Pitch `ha` Above )

Next we need to print it out correctly. From Scrolling List we need to pass information about an item under cursor using Focus, then transform it to Tree so we can use Depth that attach indentation level Along each item:

> print tasks = tasks >> `kyo` Focus `yi_` to @ Tree >> `kyokl` Depth `ha` Forth `ha` Await

And the last thing left - change a line where we adjust Scope on switching task statuses:

>> `la_____` Apply `ha` State `ha` Event `ha` relay `ho'hu` Unit >>> `ho__'ha` Scope `hv` at @( Tree Task ) >>>>>> `ho_` Scope `hv` top @ Tree >>>>>> `ho_` Scope `hv` at @ Status @ Task