Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 14 Dec 2019, 23:15
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
~572, p575, and p57577: three spins/updates of Precise 5.7.1
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 18 of 18 [259 Posts]   Goto page: Previous 1, 2, 3, ..., 16, 17, 18
Author Message
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1633
Location: nyc

PostPosted: Tue 01 Oct 2019, 03:15    Post subject: microdoc.1.2.pet: some more text editor utilities/addons
Subject description: catting, themeing, batch launching, conflict fixes, other improvements over 0m4u
 

microdoc.1.2.pet

from pupli repo/word processing and related/nwp+vtg/recs and notes/microdoc/notes 4:
Quote:

9/19

i've been playing around with nano, micro, and mcedit and have developed a distinct preference for micro. i'm more used to its built in shortcuts (typical word processor copy paste select all, etc) and with a few tweaks it's getting to be almost as useful as geany. with the github colorscheme (ctrl+e > set colorscheme github) on an android box running termux/tmux, you get that tv is off aesthetic while still having a powerful text editor that does in fact offer to reload when you've changed your synced files elsewhere on the system (apologies for an earlier post down at murga-linux that claimed otherwise--i must've been thinking of nano). the pinstall script for microdocs1.1 can explain a little further why this pet exists

#!/bin/sh
mkdir -p /root/.config/rox.sourceforge.net/Templates/microdocs
cd /root/.config/rox.sourceforge.net/Templates/microdocs
microdoc
cd /root/.config/rox.sourceforge.net/Templates/microdocs/10110/
#(10 of 1-10)
mbatch10
cd /root/.config/rox.sourceforge.net/Templates/microdocs/az10/
mbatchaz
cd /root/.config/rox.sourceforge.net/Templates/microdocs/azaz/
mbatchaz
cd /root/.config/rox.sourceforge.net/Templates/microdocs/10az/
mbatch10
#microdoc00 produces considerably more files and is better done through the terminal than right click menu (feels instantaneous compared to watching rox display the names as they move). both versions cat (combine) all to micro with the callm callm2 scripts. pet fixes the ctrl+b conflict with tmux (shell mode for micro is tmux's command prefix). code for batch launching a directory's so short the launchers don't really save too much time relative to the space they take up (one per directory), so none for the 100s and an option for 10s (26x26 gets made by both microdoc and microdoc00)
#update to 1.1. adds microdoc0, which calls both to a directory (backtick, microdoc0) and tmuxm, which is set to enable mouse control on tmux vintage tahr and older. (comment out what's there and uncomment (or manage to remember) tmux set -g mouse for xenial and newer. not sure about which version to use for what slacko or unicorn)
#cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/* ./100/{1..100}/* | micro
#cat ./N/* | micro
#micro ./N/*
#added many of the non tc (true color) colorschemes from micros website
#new keycuts are f6 close all, f7 shell mode, f8 save all, f9 save as, alt t tab switch (enter name or number in status bar)
#microdoc and microdoc00 can be called to the same directory without overwriting one another. default for right click is microdocs (ten versus 100 version) with the mini batch scripts included in the subdirectories.
#p. dogfellow 9/29/19

#see micro's website for more https://micro-editor.github.io/

though it would take some rationale of the logic behind androido and tnux.1_ to see what's being improved and why. basically, this pet makes it easy to call, navigate, and collect the text from batches of files using micro and the cat utility. here's the tree -sa output of the pet:


root# tree -sa
.
├── [ 140] pet.specs
├── [ 1971] pinstall.sh
└── [ 80] root
├── [ 60] .config
│ └── [ 80] micro
│ ├── [ 112] bindings.json
│ └── [ 440] colorschemes
│ ├── [ 802] bubblegum.micro
│ ├── [ 1374] cmc16.micro
│ ├── [ 1316] cmcpaper.micro
│ ├── [ 770] codeblocks.micro
│ ├── [ 824] codeblocks-paper.micro
│ ├── [ 1073] darcula.micro
│ ├── [ 1057] default.micro
│ ├── [ 678] geany.micro
│ ├── [ 810] github.micro
│ ├── [ 591] gruvbox.micro
│ ├── [ 1057] monokai.micro
│ ├── [ 1038] nano.micro
│ ├── [ 1031] railscast.micro
│ ├── [ 817] simple2.micro
│ ├── [ 811] simple.micro
│ ├── [ 807] solarized2.micro
│ ├── [ 814] solarized3.micro
│ ├── [ 941] solarized.micro
│ ├── [ 1067] twilight.micro
│ └── [ 722] zenburn.micro
└── [ 60] my-applications
└── [ 180] bin
├── [ 113] getmicro
├── [ 408] mbatch10
├── [ 1012] mbatchaz
├── [ 1402] microdoc
├── [ 29] microdoc0
├── [ 1394] microdoc00
└── [ 215] tmuxm

6 directories, 30 files
_____

here's microdoc:

(sorry, but i don't have the energy to mimic geany's syntax highlighting like i did with the pinstall script (plus it's also got orange and really green is for numbers there and code on forums (generally), and i'd have to change most of the non commented text back to black...):

#!/bin/sh
mkdir -p ./10110/{1..10}/
touch ./10110/{1..10}/{1..10}
mkdir -p ./10az/{1..10}/
touch ./10az/{1..10}/{a..z}
mkdir -p ./az10/{a..z}/
touch ./az10/{a..z}/{1..10}
mkdir -p ./azaz/{a..z}/
touch ./azaz/{a..z}/{a..z}
#./10110/m110 ##10X10
#./az10/m110 ##26X10
#./azaz/maz ##26X26
#./10az/maz ##10X26
echo $'#!/bin/sh
cat ./{1..10}/* >> ./10.txt
micro ./10.txt
' > ./10110/m110
chmod 755 ./10110/m110
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az10/maz
chmod 755 ./az10/maz
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./azaz/maz
chmod 755 ./azaz/maz
echo $'#!/bin/sh
cat ./{1..10}/* >> ./10.txt
micro ./10.txt
' > ./10az/m110
chmod 755 ./10az/m110
#cat only version plus open the 4 catted directories as 4 files in micro:
echo $'#!/bin/sh
cat ./{1..10}/* >> ./10.txt
' > ./10110/m110c
chmod 755 ./10110/m110c
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az10/maz
chmod 755 ./az10/maz
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
' > ./azaz/mazc
chmod 755 ./azaz/mazc
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az10/mazc
chmod 755 ./az10/mazc
echo $'#!/bin/sh
cat ./{1..10}/* >> ./10.txt
' > ./10az/m110c
chmod 755 ./10az/m110c
echo $'#!/bin/sh
#callm
#cat the four directories and open them up with micro
cat ./az10/{a..z}/* ./azaz/{a..z}/* ./10az/{1..10}/* ./10110/{1..10}/* | micro
' > ./callm
chmod 755 ./callm

here's microdoc00, which makes and can call/cat even more files (as with the above set, you add, rename, remove contents to/of/from the subdirectories without affecting the efficacy of the tips or scripts):

#!/bin/sh
mkdir -p ./100/{1..100}/
touch ./100/{1..100}/{1..100}
mkdir -p ./100az/{1..100}/
touch ./100az/{1..100}/{a..z}
mkdir -p ./az100/{a..z}/
touch ./az100/{a..z}/{1..100}
mkdir -p ./azaz2/{a..z}/
touch ./azaz2/{a..z}/{a..z}
#./100/m110 ##100X100
#./az100/m110 ##26X100
#./azaz2/maz ##26X26
#./100az/maz ##100X26
echo $'#!/bin/sh
cat ./{1..100}/* >> ./100.txt
micro ./100.txt
' > ./100/m110
chmod 755 ./100/m110
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az100/maz
chmod 755 ./az100/maz
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./azaz2/maz
chmod 755 ./azaz2/maz
echo $'#!/bin/sh
cat ./{1..100}/* >> ./100.txt
micro ./100.txt
' > ./100az/m110
chmod 755 ./100az/m110
#cat only version
echo $'#!/bin/sh
cat ./{1..100}/* >> ./100.txt
' > ./100/m110c
chmod 755 ./100/m110c
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az100/maz
chmod 755 ./az100/maz
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
' > ./azaz2/mazc
chmod 755 ./azaz2/mazc
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az100/mazc
chmod 755 ./az100/mazc
echo $'#!/bin/sh
cat ./{1..100}/* >> ./100.txt
' > ./100az/m110c
chmod 755 ./100az/m110c
echo $'#!/bin/sh
#m100azcall
#callm2
#cat the four directories and open them up with micro
cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/* ./100/{1..100}/* | micro

' > ./callm2
chmod 755 ./callm2

____

that's basically it. the getmicro script is on the path like in the tnux scripts: i consider this more or less an improvement of those pets (minus the provisions for the other terminal text editors).

...here's the config file for the keys that gets added to /root/.config/micro:

{
"F6": "QuitAll",
"F7": "ShellMode",
"F8": "SaveAll",
"F9": "SaveAs",
"Alt-t": "command-edit:tabswitch "
}

F6 comes in handy because the batches take a while to close even at .12 seconds per (hold down ctrl plus q otherwise). alt+t comes in handy for a similar reason--entering 85 or 13 (m) or the name is faster than holding down alt+ , or .

this version makes almost no txt files for the catting by default. the scripts in the subdirectories do, but when you call callm or callm2, the buffer is opened in micro but not officially saved anywhere unless you decide to save what you see (which is a sense is a potential back up of either main batch of batches (4 directories are made by each microdoc or microdoc00, 8 are made by microdoc0, which calls both to your current directory (if you call it from the terminal) or your chosen directory (if used in a script of with cd /chosen/path; microdoc0)).

--p.dogfellow, 9/29/19

***
(fwiw, i thought i remembered reading typical delay between repeats is about .12 seconds on most keyboards but now that i think about it some more, i think it may be xdotool's default repeat rate).



____

here's the mouse fix for the newer tmuxes (if you need it, dump it in a terminal and it'll overwrite the previous one for the older tmuxes):

echo $'#!/bin/sh
#older than xenial:
#tmux set -g mouse-select-pane on
#tmux set -g mouse-resize-pane on
#xenial and newer: set -g mouse
tmux set -g mouse
' > /root/my-applications/bin/tmuxm
chmod 755 /root/my-applications/bin/tmuxm


****
dump this into a terminal to update the microdoc0 script:

#!/bin/sh
echo $'#!/bin/sh
microdoc
microdoc00
echo $\'#!/bin/sh
#callm0
#all 8, numbers first. #callm,callm2:
#cat ./az10/{a..z}/* ./azaz/{a..z}/* ./10az/{1..10}/* ./10110/{1..10}/* | micro
#cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/* ./100/{1..100}/* | micro
cat ./10az/{1..10}/* ./100/{1..100}/* ./100az/{1..100}/* ./10110/{1..10}/* ./az10/{a..z}/* ./az100/{a..z}/* ./azaz/{a..z}/* ./azaz2/{a..z}/* | micro
\' > ./callm0
chmod 755 ./callm0

' > /root/my-applications/bin/microdoc0
chmod 755 /root/my-applications/bin/microdoc0
#callm and callm2 get made with the first two commands and cat the a* directories first. if you call either of these scripts while already in micro, it opens another "layer" you can add other tabs/files to or must close to get back to your original set or file. if you call both from shell mode, you have two other layers (which may not be what you want)
(^not as tedious to mimic as the earlier script, which bounced back and forth from color to color a lot more. micro's version of geany doesn't look like geany on my terminals, and many are arguably prettier (see http://zbyedidia.webfactional.com/micro/screenshots.html for some), but

https://youtu.be/C2ApUj96wOg?t=930

has me sitting at the machine when i intended to get up, so...i went back on my word and...continued to put effort into the wrong aspects of the is file.

enjoy!

Smile

(syntax highlighting aside, the github theme on a black t.v. is mostly black (no white bars for contrast or messages) with gray, grayed or white text (tab names and micro's ui text is slightly brighter than your text, line numbers are gray))
[...]
(looking at the color config file, my old eyes appear to be seeing light blue as gray..

***

9/30/19:

excerpt of changes/tree -sa for 1.2:

└── [ 60] my-applications
└── [ 260] bin
├── [ 362] echocat
├── [ 310] echomicro
├── [ 113] getmicro
├── [ 408] mbatch10
├── [ 1012] mbatchaz
├── [ 1678] microcatters
├── [ 1402] microdoc
├── [ 442] microdoc0
├── [ 1394] microdoc00
├── [ 444] mkcallm0
└── [ 215] tmuxm


microdoc.1.2/root/my-applications/bin/mkcallm0
microdoc.1.2/root/my-applications/bin/microdoc0
microdoc.1.2/root/my-applications/bin/microcatters
microdoc.1.2/root/my-applications/bin/echomicro
microdoc.1.2/root/my-applications/bin/echocat

are new for 1.2 or changed. microcatters makes cuscat, medcat, and largecat.
largecat:
#!/bin/sh
#largecat
#cat ./{A..Z}/* ./{AA..ZZ}/* ./{a..z}/* ./{aa..zz}/* ./{0..1000}/* | micro
#cat ./{0..1000}/* ./{a..z}/* ./{aa..zz}/* ./{A..Z}/* ./{AA..ZZ}/* | micro
#cat ./{A..Z}/* ./{AA..ZZ}/* ./{a..z}/* ./{aa..zz}/* ./{0..1000}/* | micro
#cat ./{0..1000}/* ./{a..z}/* ./{aa..zz}/* ./{A..Z}/* ./{AA..ZZ}/* | micro
#cat ./{a..z}/* ./{0..110}/* | micro
cat ./{0..110}/* ./{a..z}/* | micro





medcat:

#!/bin/sh
#medcat
#callm0
#all 8, numbers first. #callm,callm2:
#cat ./az10/{a..z}/* ./azaz/{a..z}/* ./10az/{1..10}/* ./10110/{1..10}/* | micro
#cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/* ./100/{1..100}/* | micro
#cat ./10az/{1..10}/* ./100/{1..100}/* ./100az/{1..100}/* ./10110/{1..10}/* ./az10/{a..z}/* ./az100/{a..z}/* ./azaz/{a..z}/* ./azaz2/{a..z}/* | micro
#cat ./{A..Z}/* ./{AA..ZZ}/* ./{a..z}/* ./{aa..zz}/* ./{0..1000}/* | micro
#cat ./{0..1000}/* ./{a..z}/* ./{aa..zz}/* ./{A..Z}/* ./{AA..ZZ}/* | micro
cat ./{0..10}/* ./{a..z}/* | micro



cuscat:

#!/bin/sh
#cuscat
#callm0
#all 8, numbers first. #callm,callm2:
#cat ./az10/{a..z}/* ./azaz/{a..z}/* ./10az/{1..10}/* ./10110/{1..10}/* | micro
#cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/* ./100/{1..100}/* | micro
#cat ./10az/{1..10}/* ./100/{1..100}/* ./100az/{1..100}/* ./10110/{1..10}/* ./az10/{a..z}/* ./az100/{a..z}/* ./azaz/{a..z}/* ./azaz2/{a..z}/* | micro
#cat ./{A..Z}/* ./{AA..ZZ}/* ./{a..z}/* ./{aa..zz}/* ./{0..1000}/* | micro
#cat ./{0..1000}/* ./{a..z}/* ./{aa..zz}/* ./{A..Z}/* ./{AA..ZZ}/* | micro
cat ./{0..4}/* ./{a..e}/* | micro



microdocs0 now adds the callm0 micro cat code for all the directories (call it from the terminal (back tick) and it will make both the 26 and 10s set and the 26 and 100s set.
echo cat is helper code for catting/combining the directory sets and opening the results in micro
microcat is helper code for opening the subdirectories as batches in micro
mkcallm0 makes the callm0 script in the directory it's called from.

you can see a lot of commented out code in the three -cat files--use that to include or exclude directories or further customize your cat calls. one of the ways i discovered i had a preference for micro was i found i kept changing the nano and mcedit codes in the 0n4n and 0mce folders to micro. all of them also wound up going to e and 4, so that's what the custom version of the cat2micro scripts shows. if you go above and possibly below (00.. or 0001 to where you start and a few beyond the last directory you've got (set to 105 in your directory of 100 az's for example), you can symlink in directories from other sources and they'll get picked up so long as you rename the symlink to follow the convention you're calling (though you don't have to worry about it if you call all the numbers and letters together). if you want to give yourself a buffer in that regard (use the 100s script in a directory with subdirectories of 10 to 26), the error messages from cat saying the directories don't (maybe yet) exist fly by instantly--i'm only aware they happened after i close micro and see what messages the terminal gave. if you want to be able to call the micro scripts without first opening the terminal, either right click run in terminal or make a version that prepends terminal (rxvt, urxvt, lxterminal, roxterm, and sakura all are standard or attainable--use sc0ttman's pkg utility if the package manager in your pup fails) -e to the code. that is, micro blah becomes sakura -e micro blah (which would open a file called blah in micro in the sakura terminal). use that on scripts or desktop files.

___

in a somewhat related matter, i'm porting all these scripts over to my android by making three folders (in addition to a micro folder, since i know the locations of the config files for it on both the pups and android boxes. updating that's even simpler than what i'm about to describe (copy contents of folder by clicking a script set up to send the stuff over).

for general use, i have a script folder and two file folders. script folder takes into account setting permissions in puppy might not mean anything to android, so in a synced folder, i copy the scripts over the paths after chmod 755 ./* -ing the thing. androido (see notes 3) has path2 listed, which is on the android $PATH. copied that over and added some copy to ./ (copy to here) scripts to the android system--installing updates and overwriting older files and adding scripts is pretty painless now. added more scripts to open the bashrc file since some of the cd /path scripts only work on that file and not as scripts (not sure why but i'm going to give up trying to get it to use those scripts. stuff >> bash.bashrc is the way to go with that sort of thing. adding to the path makes you prefix with bash, even if your shebang is #!/bin/bash.

guess i should up this thing before i end up updating it again.

--puppus dogfellow, 9/30/19



some of scripts i forgot to show:

echocat:
Code:
#!/bin/sh
#copy paste batch cat code. add subdirectory of your choice between the double slashes (//)
echo "cat .//* | micro"
echo "cat ./10az//* | micro"
echo "cat ./100//* | micro"
echo "cat ./100az//* | micro"
echo "cat ./10110//* | micro"
echo "cat ./az10//* | micro"
echo "cat ./az100//* | micro"
echo "cat ./azaz//* | micro"
echo "cat ./azaz2//* | micro"

echomicro:
Code:
#!/bin/sh
#copy paste batch launch help. add subdirectory of your choice between the double slashes (//)
echo "micro .//*"
echo "micro ./10az//*"
echo "micro ./100//*"
echo "micro ./100az//*"
echo "micro ./10110//*"
echo "micro ./az10//*"
echo "micro ./az100//*"
echo "micro ./azaz//*"
echo "micro ./azaz2//*"


unlike the scripts made by microcatters, callm, callm2, and callm0 cat the subdirectories inside the made by calling microdoc(0/00).the microcatters (cuscat, medcat, and largecat) are meant to work from inside directories that follow that sort of (customizable/flexible) naming convention.

documentation suggests expanding the {1..#}bits to allow for symlinking in, but you could always delete a batch and symlink in its virtual replacement (you could work with its files without endangering their content).

enjoy.
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1633
Location: nyc

PostPosted: Sat 05 Oct 2019, 01:38    Post subject: microdocs1.3.pet: better/easier inclusion/exclusion of files
Subject description: plus more improvements and some backwards compatibility (though fewer cat to text scripts ...
 

or similar clutter).

from microdoc.1.3: zooming out and backward compatibility
Subject description: 2 new calendar folders, more inclusion and exclusion presets and cat/batch helpers
:

Puppus Dogfellow wrote:
microdoc.1.3.pet
microdoc.tar.xz

from pupli repo/word processing and related/nwp+vtg/recs and notes/microdoc/notes 4:
Quote:

[...]

10/4/19:

here's the pinstall script for 1.3:

Code:

#!/bin/sh
mkdir -p /root/.config/rox.sourceforge.net/Templates/microdoc
cd /root/.config/rox.sourceforge.net/Templates/microdoc
microdocs1
cd /root/.config/rox.sourceforge.net/Templates/microdoc/microdocs/10110/ 
#(10 of 1-10)
mbatch10
cd /root/.config/rox.sourceforge.net/Templates/microdoc/microdocs/az10/
mbatchaz
cd /root/.config/rox.sourceforge.net/Templates/microdoc/microdocs/azaz/
mbatchaz
cd /root/.config/rox.sourceforge.net/Templates/microdoc/microdocs/10az/
mbatch10
#microdoc00 produces considerably more files and better done through the terminal than right click menu (feels instantaneous compared to watching rox display the names as they move). both versions cat all to micro with the callm callm2 scripts. pet fixes the ctrl+b conflict with tmux (shell mode for micro is tmux's command prefix). code for batch launching a directory's so short the launchers don't really save too much time relative to the space they take up (one per directory), so none for the 100s and an option for 10s (26x26 gets made by both microdoc and microdoc00)
#update to 1.1. adds microdoc0, which calls both to a directory (backtick, microdoc0) and tmuxm, which is set to enable mouse control on tmux vintage tahr and older. (comment out what's there and uncomment (or manage to remember) tmux set -g mouse for xenial and newer. not sure about which version to use for what slacko or unicorn)
#cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/*  ./100/{1..100}/* | micro
#cat ./N/* | micro
#micro ./N/*
#added many of the non tc (true color) colorschemes from micros website
#new keycuts are f6 close all, f7 shell mode, f8 save all, f9 save as, alt t tab switch (enter name or number in status bar)
#microdoc and microdoc00 can be called to the same directory without overwriting one another. default for right click is microdocs (ten versus 100 version) with the mini batch scripts included in the subdirectories.
#p. dogfellow 9/29/19

#see micro's website for more https://micro-editor.github.io/
# see https://jonasjacek.github.io/colors/ for colors that seem to work in termux/tmux on an android box running 6 or maybe 7.
#10/3: new for 1.3, microdocs1 makes a better version...
#you can copy or symlink in the batches made from the older version (0mce, 0n4n, 0m4u) and mdcat will work on them from outside the main directories, catset will work from within. exclude files from catting or batch launching by taking them out of the terminal directory (i.e. with D meaning directory and f standing for file, of /D/D/D/f(s) or /D/D/f(s) only the f and any other files in that last directory will get picked up. files outside that line of nested directories (that is, files alongside the directories at any step of the way) get ignored by the batch launching and catting scripts (some are general (*--launch all) and some have templates commented out so you can fine tune your choices.
#i was trying to color code directory batches since i have my config file set to ignore base names and there are recurring patterns...
# use rm -f /root/.config/micro/colorschemes/tv*
# and rm -f /root/.config/micro/colorschemes/9* #to get rid of most of them

cd /root/my-documents/
microdocs1
cd /root/my-documents/microdocs/10110/ 
#(10 of 1-10)
mbatch10
cd /root/my-documents/microdocs/az10/
mbatchaz
cd /root/my-documents/microdocs/azaz/
mbatchaz
cd /root/my-documents/microdocs/10az/
mbatch10
# the catmd script outside the microdocs directory collects and displays all the contents minus what's described above (by default only launching/helper scripts are excluded. mdcat does the same thing from inside the main microdocs  directory)
#cp -f /root/.config/micro/bindings.json-bk
cp -f /root/.config/micro/bindings.json /root/.config/micro/bindings.json-bk 
cp -f /root/.config/micro/settings.json /root/.config/micro/settings.json-bk
#cp -f /root/.config/micro/settings.json1 /root/.config/micro/settings.json
echo $'#!/bin/sh
micro  /root/.config/micro/settings.json1 /root/.config/micro/settings.json
' > /root/my-applications/bin/microconfig
chmod 755 /root/my-applications/bin/microconfig
#json1 (which doesn;t overwrite the default unless you uncomment the line above) has soft wrap (word wrap) and a colorscheme that's a dimmer github.micro enabled. unlimited undo insn't enabled but i've been considering it...

#echo $'#!/bin/sh
 #cat ./*/* | micro
#' > ./catset
#chmod 755 ./catset

#echo $'#!/bin/sh
#micro ./*/*
#' > ./mset
#chmod 755 ./mset
#two new additions that are like smaller versions of mdcat and catmd--use inside a directory whose subdirectories are filled with files and not more directories (though you could use those as an exclude from list--you'll just get error messages after the fact stating cat/micro can't open a directory like you're asking it to)

#--p dogfellow, 10/4/19
_

__
new pet is 9k. the 50k microdoc.tar.xz file is a compressed version of the new microdocs folder (inside a microdoc folder and along side an mdcat script) that gets made in Templates and my-docs (the one in my-docs isn't nested in microdoc--mdcat file's along side it).

___

here's microdocs1 (makes the microdoc folder):
Code:

#!/bin/sh
echo $'#!/bin/sh
 cat ./microdocs/*/*/* | micro
' > ./catmd
chmod 755 ./catmd
mkdir ./microdocs
cd ./microdocs
echo $'#!/bin/sh
 cat ./*/*/* | micro
' > ./mdcat
chmod 755 ./mdcat
mkdir -p ./10110/{1..10}/
touch ./10110/{1..10}/{1..10}
mkdir -p ./10az/{1..10}/
touch ./10az/{1..10}/{a..z}
mkdir -p ./az10/{a..z}/
touch ./az10/{a..z}/{1..10}
mkdir -p ./azaz/{a..z}/
touch ./azaz/{a..z}/{a..z}
mkdir -p ./cal/{1..12}/
touch ./cal/{1..12}/{1..31}
mkdir -p ./cal2/{1..52}/
touch ./cal2/{1..52}/{1..7}
echo $'#!/bin/sh
cat ./{1..52}/* >> ./cal2.txt
' > ./cal2/catcal2
chmod 755 ./cal2/catcal2
echo $'#!/bin/sh
cat ./{1..52}/* >> ./cal2.txt
micro ./cal2.txt
' > ./cal2/mcatcal2
chmod 755 ./cal2/mcatcal2
#./cal2/{1..52}/{1..7}#52x7
# ./cal/{1..12}/{1..31} ##12x31
echo $'#!/bin/sh
cat ./{1..12}/* >> ./cal.txt
' > ./cal/catcal
chmod 755 ./cal/catcal
echo $'#!/bin/sh
cat ./{1..12}/* >> ./cal.txt
micro ./cal.txt
' > ./cal/mcatcal
chmod 755 ./cal/mcatcal

#./10110/m110  ##10X10
#./az10/m110 ##26X10
#./azaz/maz ##26X26
#./10az/maz ##10X26
echo $'#!/bin/sh
cat ./{1..10}/* >> ./10.txt
micro ./10.txt
' > ./10110/m110
chmod 755 ./10110/m110
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az10/maz
chmod 755 ./az10/maz
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./azaz/maz
chmod 755 ./azaz/maz
echo $'#!/bin/sh
cat ./{1..10}/* >> ./10.txt
micro ./10.txt
' > ./10az/m110
chmod 755 ./10az/m110
#cat only version plus open the 4 catted directories as 4 files in micro:
echo $'#!/bin/sh
cat ./{1..10}/* >> ./10.txt
' > ./10110/m110c
chmod 755 ./10110/m110c
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az10/maz
chmod 755 ./az10/maz
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
' > ./azaz/mazc
chmod 755 ./azaz/mazc
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az10/mazc
chmod 755 ./az10/mazc
echo $'#!/bin/sh
cat ./{1..10}/* >> ./10.txt
' > ./10az/m110c
chmod 755 ./10az/m110c
echo $'#!/bin/sh
#callm
#cat the four directories and open them up with micro
cat ./az10/{a..z}/* ./azaz/{a..z}/* ./10az/{1..10}/*  ./10110/{1..10}/* | micro
' > ./callm
chmod 755 ./callm
###########

mkdir -p ./100/{1..100}/
touch ./100/{1..100}/{1..100}
mkdir -p ./100az/{1..100}/
touch ./100az/{1..100}/{a..z}
mkdir -p ./az100/{a..z}/
touch ./az100/{a..z}/{1..100}
mkdir -p ./azaz2/{a..z}/
touch ./azaz2/{a..z}/{a..z}
#./100/m110  ##100X100
#./az100/m110 ##26X100
#./azaz2/maz ##26X26
#./100az/maz ##100X26
echo $'#!/bin/sh
cat ./{1..100}/* >> ./100.txt
micro ./100.txt
' > ./100/m110
chmod 755 ./100/m110
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az100/maz
chmod 755 ./az100/maz
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./azaz2/maz
chmod 755 ./azaz2/maz
echo $'#!/bin/sh
cat ./{1..100}/* >> ./100.txt
micro ./100.txt
' > ./100az/m110
chmod 755 ./100az/m110
#cat only version
echo $'#!/bin/sh
cat ./{1..100}/* >> ./100.txt
' > ./100/m110c
chmod 755 ./100/m110c
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az100/maz
chmod 755 ./az100/maz
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
' > ./azaz2/mazc
chmod 755 ./azaz2/mazc
echo $'#!/bin/sh
cat ./{a..z}/* >> ./az.txt
micro ./az.txt
' > ./az100/mazc
chmod 755 ./az100/mazc
echo $'#!/bin/sh
cat ./{1..100}/* >> ./100.txt
' > ./100az/m110c
chmod 755 ./100az/m110c
echo $'#!/bin/sh
#m100azcall
#callm2
#cat the four directories and open them up with micro
cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/*  ./100/{1..100}/* | micro

' > ./callm2
chmod 755 ./callm2

echo $'#!/bin/sh
#callm0
#all 8, numbers first. #callm,callm2:
#cat ./az10/{a..z}/* ./azaz/{a..z}/* ./10az/{1..10}/*  ./10110/{1..10}/* | micro
#cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/*  ./100/{1..100}/* | micro
cat ./10az/{1..10}/* ./100/{1..100}/*  ./100az/{1..100}/* ./10110/{1..10}/* ./az10/{a..z}/* ./az100/{a..z}/* ./azaz/{a..z}/* ./azaz2/{a..z}/* | micro
' > ./callm0
chmod 755 ./callm0

echo $'#!/bin/sh
#callm0a
#all 8, letters first. #callm,callm2:
#cat ./az10/{a..z}/* ./azaz/{a..z}/* ./10az/{1..10}/*  ./10110/{1..10}/* | micro
#cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/*  ./100/{1..100}/* | micro
cat ./az10/{a..z}/* ./az100/{a..z}/* ./azaz/{a..z}/* ./azaz2/{a..z}/* ./10az/{1..10}/* ./100/{1..100}/*  ./100az/{1..100}/* ./10110/{1..10}/* | micro
' > ./callm0a
chmod 755 ./callm0a



echo $'#!/bin/sh
#callm0a
#all 8, letters first but sandwiched between cal 1 and cal2
#cat ./az10/{a..z}/* ./azaz/{a..z}/* ./10az/{1..10}/*  ./10110/{1..10}/* | micro
#cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/*  ./100/{1..100}/* | micro
cat ./cal/{1..12}/* ./az10/{a..z}/* ./az100/{a..z}/* ./azaz/{a..z}/* ./azaz2/{a..z}/* ./10az/{1..10}/* ./100/{1..100}/*  ./100az/{1..100}/* ./10110/{1..10}/* ./cal2/{1..52}/* | micro
' > ./calll
chmod 755 ./calll


#microcatters
echo $'#!/bin/sh
#medcat
#callm0
#all 8, numbers first. #callm,callm2:
#cat ./az10/{a..z}/* ./azaz/{a..z}/* ./10az/{1..10}/*  ./10110/{1..10}/* | micro
#cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/*  ./100/{1..100}/* | micro
#cat ./10az/{1..10}/* ./100/{1..100}/*  ./100az/{1..100}/* ./10110/{1..10}/* ./az10/{a..z}/* ./az100/{a..z}/* ./azaz/{a..z}/* ./azaz2/{a..z}/* | micro
#cat ./{A..Z}/* ./{AA..ZZ}/* ./{a..z}/* ./{aa..zz}/* ./{0..1000}/*  | micro
#cat ./{0..1000}/* ./{a..z}/* ./{aa..zz}/* ./{A..Z}/* ./{AA..ZZ}/*  | micro
cat ./{0..10}/* ./{a..z}/*  | micro
' > ./medcat
chmod 755 ./medcat
echo $'#!/bin/sh
#cuscat
#callm0
#all 8, numbers first. #callm,callm2:
#cat ./az10/{a..z}/* ./azaz/{a..z}/* ./10az/{1..10}/*  ./10110/{1..10}/* | micro
#cat ./az100/{a..z}/* ./azaz2/{a..z}/* ./100az/{1..100}/*  ./100/{1..100}/* | micro
#cat ./10az/{1..10}/* ./100/{1..100}/*  ./100az/{1..100}/* ./10110/{1..10}/* ./az10/{a..z}/* ./az100/{a..z}/* ./azaz/{a..z}/* ./azaz2/{a..z}/* | micro
#cat ./{A..Z}/* ./{AA..ZZ}/* ./{a..z}/* ./{aa..zz}/* ./{0..1000}/*  | micro
#cat ./{0..1000}/* ./{a..z}/* ./{aa..zz}/* ./{A..Z}/* ./{AA..ZZ}/*  | micro
cat ./{0..4}/* ./{a..e}/*  | micro
' > ./cuscat
chmod 755 ./cuscat

echo $'#!/bin/sh
#largecat
#cat ./{A..Z}/* ./{AA..ZZ}/* ./{a..z}/* ./{aa..zz}/* ./{0..1000}/*  | micro
#cat ./{0..1000}/* ./{a..z}/* ./{aa..zz}/* ./{A..Z}/* ./{AA..ZZ}/*  | micro
#cat ./{A..Z}/* ./{AA..ZZ}/* ./{a..z}/* ./{aa..zz}/* ./{0..1000}/*  | micro
#cat ./{0..1000}/* ./{a..z}/* ./{aa..zz}/* ./{A..Z}/* ./{AA..ZZ}/*  | micro
#cat ./{a..z}/* ./{0..110}/* | micro
cat ./{0..110}/* ./{a..z}/* | micro
' > ./largecat
chmod 755 ./largecat

echo $'#!/bin/sh
 cat ./*/* | micro
' > ./catset
chmod 755 ./catset

echo $'#!/bin/sh
micro ./*/*
' > ./mset
chmod 755 ./mset

cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./10110/
cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./10az/
cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./az10/
cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./azaz/
cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./cal/
cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./cal2/
cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./100/
cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./100az/
cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./az100/
cp -f ./catset ./mset ./cuscat ./medcat ./largecat ./azaz2/

______

updated echocat and echmicro scripts:
echocat:
Code:

#!/bin/sh
echo "#copy paste batch cat code. add subdirectory of your choice between the double slashes (//)
cat .//* | micro
cat ./10az//* | micro
cat ./100//* | micro
cat ./100az//* | micro
cat ./10110//* | micro
cat ./az10//* | micro
cat ./az100//* | micro
cat ./azaz//* | micro
cat ./azaz2//* | micro
cat ./cal//* | micro
cat ./cal2//* | micro
#whole sets of subdirectories combined and opened in micro:
cat ./*/* | micro
#^from within the subdirectory. those below are for along side it.
cat ./10az/*/* | micro
cat ./100/*/* | micro
cat ./100az/*/* | micro
cat ./10110/*/* | micro
cat ./az10/*/* | micro
cat ./az100/*/* | micro
cat ./azaz/*/* | micro
cat ./azaz2/*/* | micro
cat ./cal/*/* | micro
cat ./cal2/*/* | micro

#output to text file instead of text editor (incoming doesn't overwrite older contents):
cat ./{a..z}/* >> ./az.txt
#output to text file instead of text editor (incoming does overwrite older contents):
cat ./{a..z}/* > ./az.txt"

echomicro:
Code:

#!/bin/sh
 echo "#copy paste batch launch help. add subdirectory of your choice between the double slashes (//)
micro .//*
 micro ./10az//*
 micro ./100//*
 micro ./100az//*
 micro ./10110//*
 micro ./az10//*
 micro ./az100//*
 micro ./azaz//*
 micro ./azaz2//*
 micro ./cal//*
 micro ./cal2//*
#no */* batch launching but as a tip, for better use with the alt+t shortcut, swap the main config's setting for base directory name to not show whole path (this is also a reminder to myself to do it)
#swap out micro for text editor of choice and ignore the config advice
#micro ./*/*/* would open up a ridiculous amount of files...
#files outside of of the final destination are ignored so you can pull things out of what's to be catted by pulling them out of that last nested directory
#"

___

-pd




the mdcat script made alongside the microdocs directory pulls the files' contents in the order the file manager lists the directories that contain them. inside are helper scripts similar to the content of the two echo scripts above. they may further help you customize your calls of batches or their contents. you can add some of the helper scripts (such as the catset and mset) back to the folders made by the tnux pet(0m4u, 0mce, on4n), or copy or symlink those into the microdocs folder to be picked up by mdcat, catmd, etc. batches and catcalls are directed to the files in the last nested directory--anything else (including a final terminal directory) will get ignored (and possibly receive a harmless error message--you can use off-nest locations as safe houses or quarantine sheds or exclude-from-batch-call-unless-specified (perhaps in a cuscat script) lists.

the two new calendar folders (cal1 and cal2) are set for 12 directories of 31 blanks and 52 of 7 respectively.


no desktop files or launcher shortcuts yet--i'm thinking a vtg cheat sheet would be the best way to go about managing these files from puppy (aside from just navigating in rox and right clicking run in terminal for most scripts; this way you can customize the paths on the fly, duplicate versions and have alternates ready at a click or two, or make them into desktop files if you want.)

color schemes included may not work as intended on all terminals (i know some of the purple stuff on my android box is blue on at least one of my puppies). they're short and pretty easy to modify--since many of the subdirectories launch similarly named files (a-z, 1-100), and the easiest way to use the alt t call feature is by name without the path (see the settings.json file to adjust), i thought color coding might be useful.

you can rename according to whatever order you want whatever array arranged and the catmd (from outside the folder) and mdcat (inside the folder) scripts will pick up your content in that order--you could use the microdocs directory/directories (microdoc1 in the terminal makes it in the current directory) as an organizational tool.

the 50k tar.xz is mostly to just give you idea of the size of the mostly blank folder being made--it's better to call it through the terminal than have rox copy it over from right click > new (it seems to be acknowledging a potential spot for stuff rather than moving or creating a file (it's probably just an effect/illusion of the gui's business compared to the behind the scenes feel of terminal)). (but it really feels significantly slower).

anyway, enjoy.

Very Happy
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1633
Location: nyc

PostPosted: Fri 18 Oct 2019, 23:27    Post subject: microdocs 1.4: much simpler batch launching and catting,
Subject description: updated mmv (MochiMoppel'sViewer can preview +/or preload terminal+text editor choice +batch load...
 

microdoc.1.4.pet


from pupli repo/word processing and related/nwp+vtg/recs and notes/microdoc/notes 4:

Quote:

_______
10/19

just uploaded microdoc.1.3.1, which i think makes catting/combining and batch launching easier, but i see the last minute addition i made to echo3 (spit out help and paste and paste code) is wrong about d2b (directory to batch). navigate to one of the subfolders containing subfolders holding files and not subfolders (ie inside azaz or 0m4u), click backtick (`--usually the first key on the keyboard apart from the row that begins with Escape), then d2b [Dir] --just the directory name or number--no leading ./ or trailing /* (and no brackets).

anyway, enjoy.

--puppus dogfellow, 10/11/19
___
10/15/19

the above seems to be a sort of checking of pockets for keys and phone when you know you've got both--if it's incorrect in that file, i didn't find where--the end bit has it correctly. what may not be clear from the DDf vs Df stuff (for the scripts that call batches to be combined and displayed in micro, use c2m (Df) or ccm (DDf, or c2j/ccj for the joe version--neither nano nor mcedit can use the code that way)) is DDf isn't just calling the lone terminal batch (the way d2b (folder of files you want to open at once by name but without ./ at the beginning or trailing / or * at the end) ). that's just to help you visualize where you'd use it based on how many levels deep your target directories are; it's really DD*f* as opposed to Df*, which is to say it's opening all the subdirectories in the target directory, reading their files, and combining the output--it's significantly more files and probably impractical to use as a batch launch script (the equivalent of the nonexistent dd2b opening the real 100 directory opens 10000 files at once, and it's only one of the 13 or so directories (now that 1.4 includes the 3 tnux 0- folders) the catmd and mdcat scripts inside/outside the microdocs main folder call).
--pd---
10/18
must've modded and run the wrong pinstall script, or i ran the command, decided to include it, and then forgot, but it would've been more accurate to say the 13 potential default folders (though you can add as many as you like and there will be catting and batching scripts for them, but not all will work if you don't follow the structure or naming convention of the subdirectories, which is a way to create exclude lists if you want to think of it that way).
so it's ten with the option for thirteen default folders. if you want the three 0-series defaults from the tnux pet (a folder with nano presets, one with mcedit presets, one with micro presets, all with templates for tmux grids and their own helper scripts; subdirectories only go from a-c, 1-2; will offer to install nano for you), open a terminal in the microdocs directory (backtick) and run note (type note and then hit return/enter).

...still can't get the arrow keys to work with the select function in micro (so use the mouse or alt a to delete word left, alt s to delete word right, and see below for the alt f/b b/f for select left right or forward back controversy).

(text below shows development from 1.1 to 1.3 with some more notes on 1.4 at the end)

--pd.
_____


update to microdocs includes updated version of mm_view_20190829.gz by MochiMoppel (mmv in the nwp/pwn launcher (space bar plus shift)).

use /usr/bin/sakura -e micro "$@"/* in its command box, swapping the micro and sakura to test out various text editors and terminals for your presets or just have another way to batch launch.

main improvements of the update are being able to open a terminal and db2 [directoryname] or ["directory name"] to open a batch of files, and c2m [directoryname] or ["directory name"] to view the contents of a batch in a unsaved buffer in micro.

c2j swaps joe for micro in the catting script, echocat, echomicro, and echo3 print out help in the terminal they're called from (paste and place and tips), dbn opens batches in nano, ...

enjoy
Very Happy

--pd
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1633
Location: nyc

PostPosted: Sat 19 Oct 2019, 01:12    Post subject: the help files for the previous pet
Subject description: and other commands for the terminal
 

Quote:
c2j swaps joe for micro in the catting script, echocat, echomicro, and echo3 print out help in the terminal they're called from (paste and place and tips), dbn opens batches in nano, ...

enjoy
Very Happy

--pd


run in terminal on directory as [code] [dir]
one deep means directories inside those directories won't have their contents read--only the files along side them have their contents combined in. the d2b series of batch scripts work the same way (but there are no presets to do all subdirectories in a directory as a batch--100 would open up 10000 files--f6 to close all at once if you want to make your own)

c2j - combine contents of directory and display in an unsaved buffer in Joe's Own Editor (one deep)
c2m - combine contents of directory and display in an unsaved buffer in micro (one deep)
ccj - combine contents of all subdirectories in a directory and display in an unsaved buffer in Joe's Own Editor (one deep)
ccm - combine contents of all subdirectories in a directory and display in an unsaved buffer in micro (one deep)
d2b - open up contents of directory in micro
d2bj - open up contents of directory in micro
d2bl - lxterminal opening batch in nano
d2bmx - mcedit -x opening batch
d2bn - nano opening batch
d2br - roxterm opening batch in joe
d2bs - sakura opening batch in micro
d2bu - urxvt opening batch in mcedit -x
d2rmb - rxvt micro
dr2d2b - make portable versions/drag-tos of some of these scripts


also part of the pet (some will rewrite their earlier, identical selves):

getmicro -
mbatch10 -
mbatchaz -
microcatters -
microdoc -
microdoc0 -
microdoc00 -
microdocs1 -
mkcallm0 -
mmv -
note -
notesm -
notesmce -
notesmcx -
notesn -
tmuxm
_____

i think the other scripts have been covered but i'll post the content of the three help scripts here:

echo3 -
echocat -
echomicro -

echocat:
Quote:


# echocat
#copy paste batch cat code. add subdirectory of your choice between the double slashes (//)
cat .//* | micro
cat ./10az//* | micro
cat ./100//* | micro
cat ./100az//* | micro
cat ./10110//* | micro
cat ./az10//* | micro
cat ./az100//* | micro
cat ./azaz//* | micro
cat ./azaz2//* | micro
cat ./cal//* | micro
cat ./cal2//* | micro
#whole sets of subdirectories combined and opened in micro:
cat ./*/* | micro
#^from within the subdirectory. those below are for along side it.
cat ./10az/*/* | micro
cat ./100/*/* | micro
cat ./100az/*/* | micro
cat ./10110/*/* | micro
cat ./az10/*/* | micro
cat ./az100/*/* | micro
cat ./azaz/*/* | micro
cat ./azaz2/*/* | micro
cat ./cal/*/* | micro
cat ./cal2/*/* | micro

#output to text file instead of text editor (incoming doesn't overwrite older contents):
cat ./{a..z}/* >> ./az.txt
#output to text file instead of text editor (incoming does overwrite older contents):
cat ./{a..z}/* > ./az.txt

tldrv:

ccm file for DDf(s), c2m file Df(s) (Directory, file(s))


______


echomicro:
Quote:


root# echomicro
#copy paste batch launch help. add subdirectory of your choice between the double slashes (//)
micro .//*
micro ./10az//*
micro ./100//*
micro ./100az//*
micro ./10110//*
micro ./az10//*
micro ./az100//*
micro ./azaz//*
micro ./azaz2//*
micro ./cal//*
micro ./cal2//*
#no */* batch launching but as a tip, for better use with the alt+t shortcut, swap the main config's setting for base directory name to not show whole path (this is also a reminder to myself to do it)
#swap out micro for text editor of choice and ignore the config advice
#micro ./*/*/* would open up a ridiculous amount of files...
#files outside of of the final destination are ignored so you can pull things out of what's to be catted by pulling them out of that last nested directory

tldrv: d2b file where file is the directory containing the files you want to batch launch in micro (use d2bn to for nano,...
#


____
echo3:
Quote:


t# echo3
replace ./ with the directory containing microdocs or the folders below or use in the following form to launch from the microdocs directory (substitute micro with the text editor of your choice (nano, joe, mcedit, etc):

micro ./0m4u/{}/*
micro ./0mce/{}/*
micro ./0m4u/{}/*
micro ./10az/{}/*
micro ./100/{}/*
micro ./100az/{}/*
micro ./10110/{}/*
micro ./az10/{}/*
micro ./az100/{}/*
micro ./azaz/{}/*
micro ./azaz2/{}/*
micro ./cal/{}/*
micro ./cal2/{}/*

replace {} with an appropriate subdirectory or range (i.e. in that spot would go {a..e},, {32..40}, {32..48..2}, or a specific directory name (default is letters and numbers to z and 100 depending on the set). i.e. micro ./azaz/e/* for that specific set of subdirectories. the ..2 means go by twos. swap that last asterisk for a range or file to narrow the batch further or open a specific file.
cat is quick even when you're doing large batches or the whole set and the output from these presets is a single file/buffer (potential real file if you save it) opened in micro so those presets don't get any more specific than the following:

cat ./0m4u/*/* | micro
cat ./0mce/*/* | micro
cat ./0m4u/*/* | micro
cat ./10az/*/* | micro
cat ./100/*/* | micro
cat ./100az/*/* | micro
cat ./10110/*/* | micro
cat ./az10/*/* | micro
cat ./az100/*/* | micro
cat ./azaz/*/* | micro
cat ./azaz2/*/* | micro
cat ./cal/*/* | micro
cat ./cal2/*/* | micro

(for these you could swap out micro for joe, but nano and mcedit can't use this form (i'd be surprised if vim or emacs couldn't, and any of them could of course open the text versions:

output to file instead of micro (0 for 0verwrite):

cat ./0m4u/*/* > ./cat00m4u
cat ./0mce/*/* > ./cat00mce
cat ./0m4u/*/* > ./cat00m4u
cat ./10az/*/* > ./cat010az
cat ./100/*/* > ./cat0100
cat ./100az/*/* > ./cat0100az
cat ./10110/*/* > ./cat010110
cat ./az10/*/* > ./cat0az10
cat ./az100/*/* > ./cat0az100
cat ./azaz/*/* > ./cat0azaz
cat ./azaz2/*/* > ./cat0azaz2
cat ./cal/*/* > ./cat0cal
cat ./cal2/*/* > ./cat0cal2
____
output to file instead of micro (no extra 0 for 0verwrite):

cat ./0m4u/*/* >> ./cat0m4u
cat ./0mce/*/* >> ./cat0mce
cat ./0m4u/*/* >> ./cat0m4u
cat ./10az/*/* >> ./cat10az
cat ./100/*/* >> ./cat100
cat ./100az/*/* >> ./cat100az
cat ./10110/*/* >> ./cat10110
cat ./az10/*/* >> ./cataz10
cat ./az100/*/* >> ./cataz100
cat ./azaz/*/* >> ./catazaz
cat ./azaz2/*/* >> ./catazaz2
cat ./cal/*/* >> ./catcal
cat ./cal2/*/* >> ./catcal2
)
--
copies made from the original folders would use the same format helper scripts as above. folders added by the user would use the same format if arranged so that the nested directory's/directories' contents contains the target files (./d/d/f(s) with ./ being where you are, d being the possibly new directories, and f being file(s)). the new ones (added by microcatters2) only look at if 0,1,a,c, by default so any directories named similar will be included, otherwise excluded (you could also exclude files from catting or batch scripts by removing them from that nested target to anywhere else).

without the tnux.x set linked or copy in, there's no default 0-set (but there are scripts that provide for its existence).

use the above copy/paste bits and included help scripts to organize, launch, read, and write your files.

enjoy!

--puppus dogfellow, 10/7/19
___
10/11:

d2b is a new one--drag to a terminal emulator version (like d2bs) or launch a batch of files with it by
d2b /path2directoryof/subfolderscontaining/file(s)
see microdoc/notes4
( https://docs.google.com/document/d/1Dp8wyEuezPN_r5he0E3L5JdDFv2uFcSUXAWrG0iqNiY/edit?usp=sharing )
and where the microdocs business starts in the nwp/pwn anuupuus thread:
( http://murga-linux.com/puppy/viewtopic.php?p=1038645#1038645 )
for more
--pd

...db2n is the nano version. c2m (D/f) or ccm D/D/f where D is directory and f is files in contained therein. ccm will go two deep (use on something like azaz or 100), and c2m goes one deep (for example, one of the subfolders in the two aforementioned examples). the result of the catting is opened as an unsaved buffer/file in micro. doesn't work in nano or mcedit, but c2j and ccj are the joe's editor versions.


--puppus dogfellow, 10/14/19




if you want to edit the help files quickly, use lab or gab in the launcher (presently only presets for leafpad (lab) and geany (gab--the ab in both are apps-bin. the defaults on which those are based (ll, gl) are set to edit in /nwp/--at the wp to get to the microfolder in nwp/wp. there's also a rox launcher (rl) that works the same way)) and enter the name of the file you want to edit.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 18 of 18 [259 Posts]   Goto page: Previous 1, 2, 3, ..., 16, 17, 18
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Derivatives
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1349s ][ Queries: 13 (0.0408s) ][ GZIP on ]