TAM, guide of features & smart tricks.

 Current version is 9.1.3. So, Dear User, let's dive into..

Install TAM.

cargo install sark0y_tam_rst

Run TAM.

fish> nano ~/.fishrc

alias tam.rst='sark0y_tam_rst -find-files -path /path/to/dir -cols 3 -rows 9 -in-name \'pass==-iE \w\' -view-w "flatpak run info.smplayer.SMPlayer" -view-w "smplayer" -view-w "gwenview" -dont-exit $argv'

bash> nano ~/.bashrc

alias tam.rst='sark0y_tam_rst -find-files -path /path/to/dir -cols 3 -rows 9 -in-name "pass==-iE \w" -view-w "flatpak run info.smplayer.SMPlayer" -view-w "smplayer" -view-w "gwenview" -dont-exit $@'

So, now it's possible just..

> tam.rst

Some terminology..

Actually, TAM provides commands & subcommands: for shorter notation, c{...} is a command; s{...} is a subcommand + we have hotkeys {UpArrow}, {DownArrow}, {Insert} etc. If a context is known for sure - just use {...}. For instance, c{sieve ...} == {sieve ...}.


The very Paradigm of TAM.

TAM makes & operates lists to establish ultimately ergonomic Environment. There are lists of files o/a commands.

Practice with TAM.

Check out the Readme (https://github.com/SarK0Y/TAM_RUSTy) to learn how to deal with files. Here & now we're more focusing on Console/Terminal's tasks. Some commands too frequent to write them each time. For instance, let's make templates of git commands..

> tam.rst

{mke lst git.history} makes empty list. 

{edit lst} opens this list in Nano.

Now, let's write stuff in..

term  cp -fv ../src/* ./src/; cp -fv ../README.md ./; cp -fv ../Cargo.toml ./; cp -vf ../LICENSE ./
term git add src/* Cargo.toml README.md LICENSE
term git commit -m "v 3.0.2" -m ""
term git switch pre-workable
term git switch not_tested_func
term git switch trunk
term git push -u
term cargo clean;cargo publish
term git log
term git reset --hard HEAD
term git checkout commit_hash
term  git commit --amend -m ""
term git rm Cargo.lockterm git commit -m "v 3.0.2" -m "corrections & optimizations."

If You don't see list's content correctly - run {mk uid} to update list in cache. So, now You can use shols (short links) to type command: {##0}{Space} unwraps into term  cp -fv ../src/* ./src/; cp -fv ../README.md ./; cp -fv ../Cargo.toml ./; cp -vf ../LICENSE ./  & now just {Enter} to run that command as-is. And here we go to commit stuff, {##13}{Space} == term git commit -m "v 3.0.2" -m "corrections & optimizations."

{PgUP}/{PgDOWN} jumps cursor to nearest non-escaped space. Run {cd /path/to/working/directory} to make sure proper processing of {term ...} or it's possible to start program as...

> tam.rst ... -cd /path/to/working/directory

Yet another way to set working directory is ...
 {term cd /path/to/working/directory; git add src/* Cargo.toml README.md LICENSE}.

Two fundamental commands.

{term echo tst} == {>_ echo tst}; {term ...}{F12} == {>_ ...}{F12}{F12}.

{sieve tst} == {term grep -Ei tst} == {:+ tst};  {sieve ...}{F12} == {:+ ...}{F12}{F12}.

Tip: {F12} clears command line.

Save Your lists in any place You want.
bash> mkdir -p /path/to/lists
bash> tam.rst -link-lst-dir /path/to/lists

Link single list to session.

> tam.rst ... -link-lst-to "alias_of_list /path/to/list" And within TAM: c{lst /path/to/list}

Change front list at start.

> tam.rst ... -front-lst "Alias_of_list /path/to/list"

{F3} as fast alternative to {Backspace}.. not always of course ;D


Shift-F3 deletes all on the right side of cursor. 

The very Power of Subcommands: s{...} == {Insert} {...}.

{en/no ls} switches path's autocompletion mode.
{mrg} adds command line to merge list.
s{mrg as ...} == c{mrg as ...} links a list to the merge list. For instance, 
{mrg as tst} makes tst list to act as 'merge' ('merge' becomes alias of tst list ).
{edit cmd} opens command line in external editor (Nano is default choice).
{ched ...} changes default editor (e.g. {ched kate}).

Copy files.

{term cp -vf %a /path/to/another/dir} copies all files in list to another directory. Actually, it's possible to pause operation or kill.


Comments

Popular posts from this blog

TAM ChangeLog..

/Key element of basic cyber security/