Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

READ-ONLY-MODE: PLEASE DO NOT POST NEW STUFF!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile       

The time now is Sun 09 Aug 2020, 05:37
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 [267 Posts]   Goto page: Previous 1, 2, 3, ..., 16, 17, 18
Author Message
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1669
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: 1669
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: 1669
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: 1669
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 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1669
Location: nyc

PostPosted: Thu 09 Jan 2020, 08:47    Post subject: word processor and text editor packages
Subject description: libre office, beaver, a tip or two
 

beaver-4._
LibreOffice-6.2.8_en-US_xz.sfs
LibreOffice-6.2.8_en-US_xz.pet
LibreOffice-6.3.4_64_en-US_xz.sfs
LibreOffice-6.3.4_64_en-US_xz.pet


----
from the links and thanks file in the beaver folder (in
pupli repo/word processing and related/):

Quote:

links, thanks, and notes:

http://bristolwatch.com/rpi/rpi_beaver.htm

http://beaver-editor.sourceforge.net/


beaver-0.4.1-i486-1_SBo.tgz 156k
beaver_0.4.0-1_i386.deb 151k
beaver_0.4.1-1_armhf.deb 157k
beaver_amd64.deb 127k


tested in bionic64 and xenial32

---

launch from a terminal with beaver or use the following modded leafpad.desktop file (dump into a terminal and find a beaver icon to suit you, right click associate it in rox or adjust the Icon= bit to suit the path of your file):


echo $'
[Desktop Entry]
Encoding=UTF-8
Name=Beaver text editor
Icon=/usr/local/share/pixmaps/beaver.png
Comment=Beaver text editor
Exec=beaver
Terminal=false
Type=Application
Categories=TextEditor
GenericName=Beaver text editor
' > /usr/share/applications/Beaver.desktop
fixmenus
jwm -reload

____

edit: i found the beaver icons brought over with the installation of the above packages and adjusted the desktop file to include one. program supports batch launching and tabs so i'm using a version of the above that calls bev3, which is beaver /path/{01..5} /path2 and another script that does similar called at the same time--i'm using it to launch the microdoc sets but still relying on micro opening the catted batches to see if i missed anything
(see microdocs for more on the structure of the sets, but the beaver scripts are essentially

beaver /path/to/all/*| beaver /path/to/{a..(rang)e}| beaver /path/to/file /path/to/dir/*

as an example of how to open up three separate windows with preset tabs. if you're using anuupuus or the lpx feature (which i think i made a separate post about somewhere), it's the same format as the multiple windows of leafpad opening up--you could alter those scripts to use beaver instead--i plan to update that utility/plugin to also use the cat/to | micro scripts--i find they're pretty convenient, especially if your experimenting with hundreds of nested files and folders and beginning to lose track of where you're storing your text--just make a note of where you're working from in the document--i find it's generally easier to reblank them (if that's your thing) by grabbing them in rox and doing it through geany (though that could also be made into launcher shortcuts or menu items.))

enjoy,

p. dogfellow, 12/19-1/20


unlike micro/geany but like leafpad/nano, no reload warning in beaver if you're working on the file in multiple locations and there's a more recent change elsewhere.

as a tip, if you use micro or any of the other terminal text editors and prefer the features of one terminal for some things but not all, tmux a will let any terminal mirror your session in real time--you can get multiple views of the same sets of documents, windows, or panes from more than just your original working terminal (for example, if cutting and pasting is easier in sakura but you like the flow and view better in rxvt).

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


Joined: 07 Jan 2013
Posts: 1669
Location: nyc

PostPosted: Fri 24 Jan 2020, 03:51    Post subject: micro plugins and configuration quickswitches
Subject description: work around for navigation and selection issues
 

microplugins.pet

new commands are mbs1, mbs2, mbs3 to swap between the three default choices (mbs1 restores your originals). here's the pinstall/explanation:
Code:

#!/bin/sh
#microplugins/pinstall.sh
cp -f /root/.config/micro/bindings.json /root/.config/micro/bindings.json-00
cp -f /root/.config/micro/settings.json /root/.config/micro/settings.json-00
#cp -f /root/.config/micro/settings.json-11 /root/.config/micro/settings.json
#cp -f /root/.config/micro/bindings.json-11 /root/.config/micro/bindings.json
cp -f /root/.config/micro/bindings.json-12 /root/.config/micro/bindings.json
cp -f /root/.config/micro/settings.json-12 /root/.config/micro/settings.json
#activates set ..-12 by default, but your originals are the basis for the quickswitches (pet before this in bb insta-spin) and can be reactivated by mbs0 in a terminal. the set marked -11 is mbs1 and the default set is backed up as mbs2 (mbs = Micro's Bindings, Settings)
echo $'#!/bin/sh
cp -f /root/.config/micro/bindings.json-00 /root/.config/micro/bindings.json
cp -f /root/.config/micro/settings.json /root/.config/micro/settings.json-00
' > /root/my-applications/bin/mbs0
/root/my-applications/bin/mbs0
echo $'#!/bin/sh
cp -f /root/.config/micro/bindings.json-11 /root/.config/micro/bindings.json
cp -f /root/.config/micro/settings.json-11 /root/.config/micro/settings.json
' > /root/my-applications/bin/mbs1
/root/my-applications/bin/mbs1
echo $'#!/bin/sh
cp -f /root/.config/micro/bindings.json-12 /root/.config/micro/bindings.json
cp -f /root/.config/micro/settings.json-12 /root/.config/micro/settings.json
' > /root/my-applications/bin/mbs2
chmod 755/root/my-applications/bin/mbs2
#after running, run CtrlE > reload in micro. mbs1 (micro keyboard configuration 1) is your originals, 2 is a custom set without messing with multicursor functions, 3 uses those functions to replace some of the selection and navigation shortcuts that don't work/would otherwise be missing. short cuts/ changes from the original file or from 2 to 3 are :
#"CtrlW": "ShellMode", 
#"AltW": "PreviousSplit", 
#"Alt-e": "NextSplit",
#"CtrlH": "HSplit",
#"Alt-v": "VSplit",
#"Alt-x": "SelectToStart",
#"Alt-c": "CursorStart",
#"Alt-n": "CursorEnd",
#"Alt-m": "SelectToEnd",
#"Alt-p": "PastePrimary",
#"Alt-f": "SelectWordRight",
#"Alt-b": "SelectWordLeft",
#^ for forward and back
#"Alt-a": "SelectLeft",
#"Alt-s": "SelectRight",
#//tmux conflict --scroll back
#"F5": "SelectUp",
#"F6": "SelectDown",
#"F7": "SelectRight",
#"F8": "SaveAll",
#"F9": "SaveAs",
#"F10": "QuitAll",
#"F11": "DeleteWordLeft",
#"F12": "DeleteWordRight",
#//  //   "F10": "DeleteWordRight",
#"Alt-t": "command-edit:tabswitch "
#//  "F7": "Find",
#//"Alt-n": "SpawnMultiCursor",
#//"Alt-m": "SpawnMultiCursorSelect",
#//"Alt-p": "RemoveMultiCursor",
#//"Alt-c": "RemoveAllMultiCursors",
#//"Alt-x": "SkipMultiCursor",
#//function keys plus original additions/changes to default
#// Integration with file managers
#//"CtrlF1": "SelectToStart",
#//"CtrlF2": "SelectUp",
#//"CtrlF3": "SelectDown",
#//"CtrlF4": "SelectToEnd",
#"F1": "SelectToStart",
#"F2": "SelectUp",
#"F3": "SelectDown",
#"F4": "SelectToEnd",
#keybindings 12 gives more of the navigation and selection controls back to the keyboard but you lose some multi cursor functions
#settings 12 has undo history enabled but is otherwise the same as 11
#   
#delete word left delete word right have been move to f11 and f12
#shell mode and close all have been changed to ctrlw and f10 from f7 and f6. ctrlw, ctrle are shellmode, command mode
#the rationale behind the new xcnm combo is spatial mostly.  alt plus c=cursor (start, since that was a missing keyboard shortcut), and on the inside of the same row n for (cursor to) end. one over on either side of those is select to start/end.
#
#-----
#settings 11 is same as last micro config containing pet i offered
#settings 12 has unlimited undo (save undo history. set option is the ctrlE toggle way of changing the file)
#
#***
#micro in terminal to launch--desktop file for further discussion (though which terminal, launching what files to start, tmuxed or no, etc)
#also updates mmv
#getmicro in terminal if you don't have it installed will download it for you and set permissions
#--puppus dogfellow, 1/23/20
-------

#(in short, not being able to bounce around in or highlight the document through the keyboard is somewhat annoying and is supposed to work with no fiddling around but doesn't, at least through the majority of terminal/pup/tmux combos i've tried it out in)


here's another version of the quickswitches from http://murga-linux.com/puppy/viewtopic.php?p=1048638#1048638,
templates/examples of configuration quickswitches
set for 6 jwm variations, 3 for micro text editor (back up your defaults/import and store your mods)
(a post in the mcc thread):

Puppus Dogfellow wrote:
ease of configuration is one of the joys of puppy, but it's also a way to mess up your system. script below makes copies of your jwm configuration in folders that each contain an import script--when you get a configuration or variation you like, go to one of the folders and click that to repopulate the switch with the new files. set for six jwm and three micro, but you can swap out the paths, files, and icon (names) below before you run it to incorporate whatever you find yourself tinkering with most. quickswitch-jm:

Code:


#!/bin/sh
#examples of configuration quickswitches (add flexibility to your setups and safety to your experiments)
mkdir -p /root/.config/micro/conf1
mkdir -p /root/.config/micro/conf2
mkdir -p /root/.config/micro/conf3
cp -f /root/.config/micro/settings.json /root/.config/micro/conf1/settings.json
cp -f /root/.config/micro/bindings.json /root/.config/micro/conf1/bindings.json
echo $'#!/bin/sh
cp -f /root/.config/micro/conf1/settings.json /root/.config/micro/settings.json
cp -f /root/.config/micro/conf1/bindings.json /root/.config/micro/bindings.json
' > /root/.config/micro/mcon1
chmod 755 /root/.config/micro/mcon1
echo $'#!/bin/sh
cp -f /root/.config/micro/conf2/settings.json /root/.config/micro/settings.json
cp -f /root/.config/micro/conf2/bindings.json /root/.config/micro/bindings.json
' > /root/.config/micro/mcon2
chmod 755 /root/.config/micro/mcon2
echo $'#!/bin/sh
cp -f /root/.config/micro/conf3/settings.json /root/.config/micro/settings.json
cp -f /root/.config/micro/conf3/bindings.json /root/.config/micro/bindings.json
' > /root/.config/micro/mcon3
chmod 755 /root/.config/micro/mcon3
#unlike the version in microplugins.pet, this set up isn't on PATH. work from the configuration directories themselves
#and/or substitute /root/.config/micro/ for /root/my-applications/bin/ in the mcon scripts above. the ones below assume you're in the directory and have fiddled around with the configs to sufficient satisfaction that you'd want to be able to switch or revert to what you'd done to them. use this template to set other configs to come to you for easy modding
echo $'#!/bin/sh
cp -f /root/.config/micro/settings.json ./
cp -f /root/.config/micro/bindings.json ./
' > /root/.config/micro/conf1/importcurrent
chmod 755 /root/.config/micro/conf1/importcurrent
echo $'#!/bin/sh
cp -f /root/.config/micro/settings.json ./
cp -f /root/.config/micro/bindings.json ./
' > /root/.config/micro/conf2/importcurrent
chmod 755 /root/.config/micro/conf2/importcurrent
echo $'#!/bin/sh
cp -f /root/.config/micro/settings.json ./
cp -f /root/.config/micro/bindings.json ./
' > /root/.config/micro/conf3/importcurrent
chmod 755 /root/.config/micro/conf3/importcurrent
#this section is three backups/switches for your micro editor configs
#using the mcc icon/label maker for the desktop files and menu entries (thanks again technosaurus for txt2xpm)
echo $'[Desktop Entry]
Encoding=UTF-8
Name=mcon1
Icon=/root/puppy-reference/pixmaps/6tMiCon.xpm
Comment=micro editor mconfiguration switcher
Exec=/root/.mconfig/micro/mcon1
Terminal=false
Type=Application
Categories=X-Desktop;Utility
GenericName=mconfig swapper
' > /usr/share/applications/mcon1.desktop
echo $'[Desktop Entry]
Encoding=UTF-8
Name=mcon2
Icon=/root/puppy-reference/pixmaps/7tMiCon.xpm
Comment=micro editor mconfiguration switcher
Exec=/root/.mconfig/micro/mcon2
Terminal=false
Type=Application
Categories=X-Desktop;Utility
GenericName=mconfig swapper
' > /usr/share/applications/mcon2.desktop
echo $'[Desktop Entry]
Encoding=UTF-8
Name=mcon3
Icon=/root/puppy-reference/pixmaps/8tMiCon.xpm
Comment=micro editor mconfiguration switcher
Exec=/root/.mconfig/micro/mcon3
Terminal=false
Type=Application
Categories=X-Desktop;Utility
GenericName=mconfig swapper
' > /usr/share/applications/mcon3.desktop
#=====================================================

#!/bin/sh
mkdir -p /root/.jwm/cona/
echo $'#!/bin/sh
cp -f /root/.jwm/jwmrc-personal ./
cp -f /etc/xdg/templates/_root_.jwmrc ./
' > /root/.jwm/cona/importcurrent
chmod 755 /root/.jwm/cona/importcurrent
cp -f /root/.jwm/jwmrc-personal /root/.jwm/cona/jwmrc-personal
cp -f /etc/xdg/templates/_root_.jwmrc /root/.jwm/cona/_root_.jwmrc
echo $'#!/bin/sh
#jwmca
#!/bin/sh
cp -f /root/.jwm/cona/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc
cp -f /root/.jwm/cona/jwmrc-personal /root/.jwm/jwmrc-personal
fixmenus
jwm -restart
' > /root/.jwm/jwmca
chmod 755 /root/.jwm/jwmca
#=============================
#!/bin/sh
mkdir -p /root/.jwm/conb/
echo $'#!/bin/sh
cp -f /root/.jwm/jwmrc-personal ./
cp -f /etc/xdg/templates/_root_.jwmrc ./
' > /root/.jwm/conb/importcurrent
chmod 755 /root/.jwm/conb/importcurrent
cp -f /root/.jwm/jwmrc-personal /root/.jwm/conb/jwmrc-personal
cp -f /etc/xdg/templates/_root_.jwmrc /root/.jwm/conb/_root_.jwmrc
echo $'#!/bin/sh
#jwmcb
#!/bin/sh
cp -f /root/.jwm/conb/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc
cp -f /root/.jwm/conb/jwmrc-personal /root/.jwm/jwmrc-personal
fixmenus
jwm -restart
' > /root/.jwm/jwmcb
chmod 755 /root/.jwm/jwmcb
#=============================
#!/bin/sh
mkdir -p /root/.jwm/conc/
echo $'#!/bin/sh
cp -f /root/.jwm/jwmrc-personal ./
cp -f /etc/xdg/templates/_root_.jwmrc ./
' > /root/.jwm/conc/importcurrent
chmod 755 /root/.jwm/conc/importcurrent
cp -f /root/.jwm/jwmrc-personal /root/.jwm/conc/jwmrc-personal
cp -f /etc/xdg/templates/_root_.jwmrc /root/.jwm/conc/_root_.jwmrc
echo $'#!/bin/sh
#jwmcc
#!/bin/sh
cp -f /root/.jwm/conc/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc
cp -f /root/.jwm/conc/jwmrc-personal /root/.jwm/jwmrc-personal
fixmenus
jwm -restart
' > /root/.jwm/jwmcc
chmod 755 /root/.jwm/jwmcc
#=============================
#!/bin/sh
mkdir -p /root/.jwm/cond/
echo $'#!/bin/sh
cp -f /root/.jwm/jwmrc-personal ./
cp -f /etc/xdg/templates/_root_.jwmrc ./
' > /root/.jwm/cond/importcurrent
chmod 755 /root/.jwm/cond/importcurrent
cp -f /root/.jwm/jwmrc-personal /root/.jwm/cond/jwmrc-personal
cp -f /etc/xdg/templates/_root_.jwmrc /root/.jwm/cond/_root_.jwmrc
echo $'#!/bin/sh
#jwmcd
#!/bin/sh
cp -f /root/.jwm/cond/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc
cp -f /root/.jwm/cond/jwmrc-personal /root/.jwm/jwmrc-personal
fixmenus
jwm -restart
' > /root/.jwm/jwmcd
chmod 755 /root/.jwm/jwmcd
#=============================
#!/bin/sh
mkdir -p /root/.jwm/cone/
echo $'#!/bin/sh
cp -f /root/.jwm/jwmrc-personal ./
cp -f /etc/xdg/templates/_root_.jwmrc ./
' > /root/.jwm/cone/importcurrent
chmod 755 /root/.jwm/cone/importcurrent
cp -f /root/.jwm/jwmrc-personal /root/.jwm/cone/jwmrc-personal
cp -f /etc/xdg/templates/_root_.jwmrc /root/.jwm/cone/_root_.jwmrc
echo $'#!/bin/sh
#jwmce
#!/bin/sh
cp -f /root/.jwm/cone/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc
cp -f /root/.jwm/cone/jwmrc-personal /root/.jwm/jwmrc-personal
fixmenus
jwm -restart
' > /root/.jwm/jwmce
chmod 755 /root/.jwm/jwmce
#=============================
#!/bin/sh
mkdir -p /root/.jwm/conf/
echo $'#!/bin/sh
cp -f /root/.jwm/jwmrc-personal ./
cp -f /etc/xdg/templates/_root_.jwmrc ./
' > /root/.jwm/conf/importcurrent
chmod 755 /root/.jwm/conf/importcurrent
cp -f /root/.jwm/jwmrc-personal /root/.jwm/conf/jwmrc-personal
cp -f /etc/xdg/templates/_root_.jwmrc /root/.jwm/conf/_root_.jwmrc
echo $'#!/bin/sh
#jwmcf
#!/bin/sh
cp -f /root/.jwm/conf/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc
cp -f /root/.jwm/conf/jwmrc-personal /root/.jwm/jwmrc-personal
fixmenus
jwm -restart
' > /root/.jwm/jwmcf
chmod 755 /root/.jwm/jwmcf
#=========================================
0txpm "JWM-A" >/root/puppy-reference/pixmaps/0tjwmc.xpm
1txpm "JWM-B" >/root/puppy-reference/pixmaps/1tjwmc.xpm
2txpm "JWM-C" >/root/puppy-reference/pixmaps/2tjwmc.xpm
3txpm "JWM-D" >/root/puppy-reference/pixmaps/3tjwmc.xpm
4txpm "JWM-E" >/root/puppy-reference/pixmaps/4tjwmc.xpm
5txpm "JWM-F" >/root/puppy-reference/pixmaps/5tjwmc.xpm
6txpm "MiCon1" >/root/puppy-reference/pixmaps/6tMiCon.xpm
7txpm "MiCon2" >/root/puppy-reference/pixmaps/7tMiCon.xpm
8txpm "MiCon3" >/root/puppy-reference/pixmaps/8tMiCon.xpm

echo $'[Desktop Entry]
Encoding=UTF-8
Name=jwma
Icon=/root/puppy-reference/pixmaps/0tjwmc.xpm
Comment=your jwm settings pre-nwp
Exec=/root/.jwm/jwmca
Terminal=false
Type=Application
Categories=X-Desktop;Utility
GenericName=config swapper
' > /usr/share/applications/jwmca.desktop

echo $'[Desktop Entry]
Encoding=UTF-8
Name=jwmb
Icon=/root/puppy-reference/pixmaps/1tjwmc.xpm
Comment=your jwm settings pre-nwp
Exec=/root/.jwm/jwmcb
Terminal=false
Type=Application
Categories=X-Desktop;Utility
GenericName=config swapper
' > /usr/share/applications/jwmcb.desktop
echo $'[Desktop Entry]
Encoding=UTF-8
Name=jwmc
Icon=/root/puppy-reference/pixmaps/2tjwmc.xpm
Comment=your jwm settings pre-nwp
Exec=/root/.jwm/jwmcc
Terminal=false
Type=Application
Categories=X-Desktop;Utility
GenericName=config swapper
' > /usr/share/applications/jwmcc.desktop
echo $'[Desktop Entry]
Encoding=UTF-8
Name=jwmd
Icon=/root/puppy-reference/pixmaps/3tjwmc.xpm
Comment=your jwm settings pre-nwp
Exec=/root/.jwm/jwmcd
Terminal=false
Type=Application
Categories=X-Desktop;Utility
GenericName=config swapper
' > /usr/share/applications/jwmcd.desktop
echo $'[Desktop Entry]
Encoding=UTF-8
Name=jwme
Icon=/root/puppy-reference/pixmaps/4tjwmc.xpm
Comment=your jwm settings pre-nwp
Exec=/root/.jwm/jwmce
Terminal=false
Type=Application
Categories=X-Desktop;Utility
GenericName=config swapper
' > /usr/share/applications/jwmce.desktop
echo $'[Desktop Entry]
Encoding=UTF-8
Name=jwmf
Icon=/root/puppy-reference/pixmaps/5tjwmc.xpm
Comment=your jwm settings pre-nwp
Exec=/root/.jwm/jwmcf
Terminal=false
Type=Application
Categories=X-Desktop;Utility
GenericName=config swapper
' > /usr/share/applications/jwmcf.desktop
fixmenus
jwm -restart


most programs seem to keep their configurations in /root/.config or in /opt, but pfind can help you find where a given program scatters its files (pfind>search system files). backups clobber the experimental live version of whatever you're working on, but the affected program usually would need to be restarted or reloaded for change to take effect. template i used for the desktop files puts the entries in desktop and utility--swap the line to mimic a location/entry of your choice by copying the Categories= line from the .desktop files in /usr/share/applications.

--chose one each to represent the default set of color combos, but it seems the reference screen shot and all others from that service are gone, so...i guess that's something else to do.

anyway, enjoy/hope someone finds it useful/helpful
-pd


been working taking the spin to bionic (my machine running 6t4 is dead, a 32 bit laptop also recently died, i replaced them with two 64 bit desktops, both now running nwp'd pups. here's the work shop folder:
https://drive.google.com/drive/folders/11KnrcOLfTvlJGz52oQwl9ZBZtaRZPzxE?usp=sharing, and by nwp'd i mean has the nwp installed.

so it's six micro configs and another 6 jwm swaps, plus better keyboard control in micro.

enjoy.

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


Joined: 07 Jan 2013
Posts: 1669
Location: nyc

PostPosted: Mon 03 Feb 2020, 05:14    Post subject: libre office update for 64 bit, f12 fix for previous post,
Subject description: aesthetic tweaks for the browser based word processors (bwp, bbwp, mcwp, ewp--there may be more...)
 

here's a libreoffice update for 64 bit and a quick fix for a problem i forgot to address in the microplugins.pet from the previous post (release f12 from jwm). last bit is how to get custom icons for the tabs used by the browser based word processors and how to change the names displayed in the tab (which would otherwise likely be different from the name you're saving it under/thinking of it as). middle bit releases f12 from jwm so micro can use the key.


for 64bit:
from http://murga-linux.com/puppy/viewtopic.php?p=1049365#1049365
Quote:


LibreOffice-6.4.0_64_en-US_xz.pet

LibreOffice-6.4.0_64_en-US_xz.sfs

LibreOffice-6.4.0_64_en-US_xz.pet (293MB):
MD5:0f8b89bc7a7da420869556a4e7df9ae1
SHA1:13c7bde8e192dd9213eef2ed146d17edc5712aad
SHA256:4673981c0d33396d354a990657278782d54e0c69868b8ab22d28173f8e2b95fb
CRC32:38977cef

LibreOffice-6.4.0_64_en-US_xz.sfs (255MB):
MD5:ea93bfd7e232ad4f181677a8492a8839
SHA1:f34e9bc0b819e204569681595e8ec13c7d4f6735
SHA256:d6d8f8166b3321792c4ea91f572ceaccef9060d9e43f910aabdbfe6f248b1996
CRC32:0b818174

------
whether you choose the sfs or pet, you may need to install the .desktops pet for menu entries and non generic desktop icons:
libre6.4.desktops.pet


________________
for 32 and 64 bit:

for all 1:

F12 and Alt+F1 activate the root3/right click/main menu in most if not all jwm based puppies, and none of my tweaks have messed with those two shortcuts (even though i use alt+3 on my setups for it--alt+0-9 access the ten default jwm menus) until the last micro plugins/configs pet used F12 for delete word right. to allow micro to use that keycut, choose/terminal-dump one of the following options:


Code:

#comment out:
sed -i 's/<Key key="F12">root:3<\/Key>/<!--<Key key="F12">root:3<\/Key> -->/' /root/.jwm/jwmrc-personal
sed -i 's/<Key key="F12">root:3<\/Key>/<!--<Key key="F12">root:3<\/Key> -->/' /etc/xdg/templates/_root_.jwmrc
fixmenus
jwm -restart
#move to alt+__:
sed -i 's/<Key key="F12">root:3<\/Key>/<Key mask="A" key="F12">root:3<\/Key>/' /root/.jwm/jwmrc-personal
sed -i 's/<Key key="F12">root:3<\/Key>/<Key mask="A" key="F12">root:3<\/Key>/' /etc/xdg/templates/_root_.jwmrc
fixmenus
jwm -restart
(
#rev/restore:
sed -i 's/<Key mask="A" key="F12">root:3<\/Key>/<Key key="F12">root:3<\/Key>/' /root/.jwm/jwmrc-personal
sed -i 's/<Key mask="A" key="F12">root:3<\/Key>/<Key key="F12">root:3<\/Key>/' /etc/xdg/templates/_root_.jwmrc
fixmenus
jwm -restart
#uncomment:
sed -i 's/<!--<Key key="F12">root:3<\/Key> -->/<Key key="F12">root:3<\/Key>/' /root/.jwm/jwmrc-personal
sed -i 's/<!--<Key key="F12">root:3<\/Key> -->/<Key key="F12">root:3<\/Key>/' /etc/xdg/templates/_root_.jwmrc
fixmenus
jwm -restart
)

________________
for all 2:

from pupli repo/word processing and related/nwp+vtg/ico/ico-title-adjust:

Quote:

browser based word processor and spinoffs use a generic tab icon unless you add a version of the following code to the head area in the html files (viewable in box1 tab or a text editor but not in default):

Code:
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">     
 <link rel="shortcut icon" type="image/x-icon" href="file:///[cus]()/mc/bwp1/()[cus].ico">



adjust to suit your choices and paths/addresses.

from https://stackoverflow.com/questions/4888377/how-to-add-a-browser-tab-icon-favicon-for-a-website#4888458

jpegs and pngs converted with:
https://www.convertico.com/

____
while in the head area, you can change the name of the tab by swapping out the text between the <title>tags</title>
(above example would give you a tab that's named "tags" regardless of the name you saved the file under.)


--p.dogfellow, 12/19

____

edit 2/20: the ico format apparently also works in .desktop files and with rox's right click file association function (tested in bionic64)




at the very least, the custom icons make it easier to identify your files when you have the tabs pinned.

enjoy

--p. dogfellow
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1669
Location: nyc

PostPosted: Sun 16 Feb 2020, 01:33    Post subject: xpcat, lpxcat, lpxcatg, xpcatg
Subject description: combine your xpads or default location lpx 1-25 and open in either geany or micro
 

four new utility scripts for two of the spins' utilities. collect all the data on your xpads or lpx notes and combine them in a document opened in geany or micro. launcher codes are only for geany (lpxcatg, xpcatg) but all four can be called from a terminal (xpcat and lpxcat rely on micro, which is terminal based. t will get you to the terminal from the launcher, sk will get you sakura if you have it installed).

Code:

#cat lpx and xpad (4 for terminal, two for launcher)
echo $'#!/bin/sh
#lpxcat --cat lpx default set 1-25
cd /nwp/notes
cat ./n/* ./n/o/* ./n/o/t/* ./n/o/t/e/* ./n/o/t/e/s/* | micro
' > /root/my-applications/bin/lpxcat
chmod 755 /root/my-applications/bin/lpxcat
echo $'#!/bin/sh
#xpcat --cat xpad "content" files
cat /root/.config/xpad/con* | micro
' > /root/my-applications/bin/xpcat
chmod 755 /root/my-applications/bin/xpcat
echo $'#!/bin/sh
#xpcatg --cat xpad "content" files --geany
cat /root/.config/xpad/con* > /tmp/xpcat; geany /tmp/xpcat
' > /root/my-applications/bin/xpcatg
chmod 755 /root/my-applications/bin/lpxcatg
echo $'#!/bin/sh
#lpxcat --cat lpx default 1-25 --geany
cd /nwp/notes
cat ./n/* ./n/o/* ./n/o/t/* ./n/o/t/e/* ./n/o/t/e/s/* > /tmp/lpxcat1; geany /tmp/lpxcat1
' > /root/my-applications/bin/lpxcatg
chmod 755 /root/my-applications/bin/lpxcatg
#cat lpx and xpad with geany--for nwp/pwn launcher
echo $'#!/bin/sh
#xpcatg --cat xpad "content" files --geany version
cat /root/.config/xpad/con* > /tmp/xpcat; geany /tmp/xpcat
' > /nwp/xpcatg
chmod 755 /nwp/xpcatg
echo $'#!/bin/sh
cd /nwp/notes
cat ./n/* ./n/o/* ./n/o/t/* ./n/o/t/e/* ./n/o/t/e/s/* > /tmp/lpxcat1; geany /tmp/lpxcat1
' > /nwp/lpxcatg
chmod 755 /nwp/lpxcatg
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1669
Location: nyc

PostPosted: Sat 28 Mar 2020, 21:31    Post subject: browser and word processor updates
Subject description: libreoffice 32/64 sfs and pets; firefox 74.0 32/64 pets
 

firefox pets are below the (spin specific and not automatically installed) fix for the root1 (left click/alt+1) menus' firefox entries (dump into a terminal):

Code:

sed -i 's/>firefox</>apulse \/opt\/firefox\/firefox</g' /nwp/root3/10/root1menu
sed -i 's/>firefox</>apulse \/opt\/firefox\/firefox</g' /nwp/root3/9/root1menu
sed -i 's/\/opt\/firefox\/firefox/apulse \/opt\/firefox\/firefox/g' /nwp/root3/9/root1menu
sed -i 's/\/mnt\/sda1\/firefox\/firefox/apulse \/opt\/firefox\/firefox/g' /nwp/root3/9/root1menu
sed -i 's/\/opt\/firefox\/firefox/apulse \/opt\/firefox\/firefox/g' /nwp/root3/10/root1menu
sed -i 's/\/mnt\/sda1\/firefox\/firefox/apulse \/opt\/firefox\/firefox/g' /nwp/root3/10/root1menu
fixmenus
jwm -restart

and here are the pets to go with it:

firefox-74.0-32.pet
firefox-74.0-64.pet

you may need to install libgtk3 to run firefox. it should be built in to most of the spins here, but you can use the ppm or Pkg - CLI package manager to download one appropriate for you system. i'd been using the one linked earlier in the thread (http://www.murga-linux.com/puppy/viewtopic.php?p=901433#901433) from precise/p6 through xenial, but that link's from 2016 and i'd check for something more recent first (also this bit of the post is a plug for sc0ttman's PKG--install it if you haven't already)

______

here's the libre office update:
from 642-64 sfs and 2 pets (one at a higher compression rate)
Subject description: new desktop file fix (http://www.murga-linux.com/puppy/viewtopic.php?p=1053726#1053726):

Puppus Dogfellow wrote:
LibreOffice-6.4.2_64_en-US_xz.pet 250 mb
MD5: f491ea8aa4982a37059732aafe3ad506
SHA1: 6c53edcfaf190b1a3ab3d234a28a6994b129e8b5
SHA256: 22fbb68352fecef3909700b32f48dd91d00d741d3ee0158ef55e773d4b27b8e5
CRC32: 3fd6f6fc

LibreOffice-6.4.2_64_en-US_xz.pet 177 mb

MD5: 130f3498e1b30a9df658227770edbcd2
SHA1: b3d7bca2828cac7a84b1d13fae6624d3cbe7b76a
SHA256: 2fb7fb103f2a806f7d9ab4ae6c9fd1f4e320475225ebb8b37301514c236f1f96
CRC32: 7c7bfb70

LibreOffice-6.4.2_64_en-US_xz.sfs
MD5: 86b1e3bb022bf9cd683eecbd618e9510
SHA1: be3193b099c817b6b3dbf557fb57ec597d2a5e75
SHA256: f585e0cc9c18af5c561db4dc41f3bdbf1ba1d578b428d331238288e17e1231af
CRC32: 2644e2f0

_____

the smaller pet is the same but with the desktop file fix included (which no longer seems to work--it gets overwritten by the end of installation) and a higher compression ratio. the new fix for the desktop files (until the next version when i'll probably just add it as a pinstall script) is to dump the following into a terminal:
Code:

sed -i 's/BuildingBlock.svg/\/usr\/share\/icons\/hicolor\/48x48\/apps\/libreoffice6.4-base.svg/' /usr/share/applications/libreoffice6.4-base.desktop
sed -i 's/BuildingBlock.svg/\/usr\/share\/icons\/hicolor\/48x48\/apps\/libreoffice6.4-calc.svg/' /usr/share/applications/libreoffice6.4-calc.desktop
sed -i 's/BuildingBlock.svg/\/usr\/share\/icons\/hicolor\/48x48\/apps\/libreoffice6.4-draw.svg/' /usr/share/applications/libreoffice6.4-draw.desktop
sed -i 's/BuildingBlock.svg/\/usr\/share\/icons\/hicolor\/48x48\/apps\/libreoffice6.4-impress.svg/' /usr/share/applications/libreoffice6.4-impress.desktop
sed -i 's/BuildingBlock.svg/\/usr\/share\/icons\/hicolor\/48x48\/apps\/libreoffice6.4-math.svg/' /usr/share/applications/libreoffice6.4-math.desktop
sed -i 's/BuildingBlock.svg/\/usr\/share\/icons\/hicolor\/48x48\/apps\/libreoffice6.4-startcenter.svg/' /usr/share/applications/libreoffice6.4-startcenter.desktop
sed -i 's/BuildingBlock.svg/\/usr\/share\/icons\/hicolor\/48x48\/apps\/libreoffice6.4-writer.svg/' /usr/share/applications/libreoffice6.4-writer.desktop



enjoy.

--pd


unlike the firefox menu fix, the libre office desktop fix is unlikely to be a one time only sort of affair, unless i start repackaging the LO pets at a higher compression and make the code above the pinstall script. since it seems to me the gz compressed pets install faster, i'd like to just keep to the way i've been doing them and use this as an opportunity to give a little pointer on a use for launcher. i'm going to take a bit of useful code and make it into a launcher shortcut:

shift plus spacebar -- launcher pops up
ll --gets you leafpad launcher
(type a name for the file- something short--this is all about convenience. i'll choose lodesk--libre office desktop fix)
scz -- print out the shebang that makes code into possibly clickable scripts
copy and paste the code chunk above into the file below the shebang and save the file
shift plus spacebar -- launcher pops up
ch -- get to the permissions launcher
enter the name of the file you just made
(done)

that's it. next time you do "lodesk" in the launcher, your messed up desktop files from your last libre office installation will be fixed (of a known problem/"problem")

customize batch launching and send and resize files from the launcher.


enjoy,

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


Joined: 07 Jan 2013
Posts: 1669
Location: nyc

PostPosted: Wed 08 Apr 2020, 23:54    Post subject: fzf fuzzy file finder, a few helper scripts and some praise,
Subject description: plus the d2bb microdocs helper script i meant to include a while back
 

here's a 32 bit package: fzf_0.17.5-2_i386.deb
64 bit packages: fzf


from
pupli repo/Utilities Tools System Libs/fzf/links and notes:

Quote:

fuzzy file finder website: https://github.com/junegunn/fzf

packages are from https://packages.ubuntu.com/search?keywords=fzf&searchon=names&suite=all&section=all
(

disco (19.04) (utils): general-purpose command-line fuzzy finder [universe]
0.17.5-2: amd64 arm64 armhf i386 ppc64el s390x
eoan (19.10) (utils): general-purpose command-line fuzzy finder [universe]
0.18.0-2: amd64 arm64 armhf i386 ppc64el s390x
focal (utils): general-purpose command-line fuzzy finder [universe]
0.20.0-1: amd64 arm64 armhf ppc64el s390x
)

_____


i've only started playing around with this utility, but it's really impressive. it indexes a few hundred thousand or so files in the amount of time it was taking me to look through the previews of just a few.

here's a little set of helper scripts and a help file centered around what's impressed me so far (copy-paste the green text into a terminal to use):

Code:
#!/bin/sh
echo "
#!/bin/sh
echo \"
#----     Token Match type Description   
###     sbtrkt fuzzy-match Items that match sbtrkt   
###     'wild exact-match (quoted) Items that include wild 
###     ^music prefix-exact-match Items that start with music   
###     .mp3$ suffix-exact-match Items that end with .mp3     
###     !fire inverse-exact-match Items that do not include fire   
###     !^music inverse-prefix-exact-match Items that do not start with music   
###     !.mp3$ inverse-suffix-exact-match Items that do not end with .mp3
from: https://github.com/junegunn/fzf
ubuntu fzf packages: https://packages.ubuntu.com/search?keywords=fzf&searchon=names&suite=all&section=all
-------
#help for these shortcut scripts:

#fz = fzf with multi tagging (tab bar) previewing the entire document
#fz1 = same as above but only first 500 lines previewed
#default behavior is to print  out the paths of the files selected (the program is a file finder). if the command has an m in it, the file(s) are opened in micro rather than just having their paths displayed. the g files use geany, the gi files use geany opening a new window, and the b version opens beaver as the editor of choice.
#fz -h displays this help message.
#i didn't make a preset for leafpad, but you can make your own with editorchoice \"\$(fzf or wrapper/preset)\".
#^the code part of the line above is coming out invisible in the terminal, so here's a link to here:
#pupli repo/Utilities Tools System Libs/fzf/links and notes: https://docs.google.com/document/d/19p_wq0sP4duJ08QMcJYqHogEJQlnM8WfHV6bsWCld30/edit?usp=sharing
#convention used here is first preview choice (all or up to 500), then decide if you want the paths displayed or the document(s) opened.
# e.g./includes: fz, fz1, fzg, fz1g, fzm, fz1m, fzb, fz1b, fzgi, fz1gi.
# m, b, g, or gi in the name opens the selected files in an editor rather than just displaying the paths after you enter your selections

--puppus dogfellow, april 2020

\"
" > /root/my-applications/bin/fz-h
chmod 755 /root/my-applications/bin/fz-h

echo $'#!/bin/sh
fzf -m --preview \'head -500 {}\' --preview-window wrap
' > /root/my-applications/bin/fz1
echo $'#!/bin/sh
fzf -m --preview \'cat {}\' --preview-window wrap
' > /root/my-applications/bin/fz
echo $'#!/bin/sh
micro \"$(fzf -m --preview \'head -500 {}\' --preview-window wrap)\"
' > /root/my-applications/bin/fz1m
echo $'#!/bin/sh
micro \"$(fzf -m --preview \'cat {}\' --preview-window wrap)\"
' > /root/my-applications/bin/fzm
chmod 755 /root/my-applications/bin/fzm /root/my-applications/bin/fz /root/my-applications/bin/fz1m /root/my-applications/bin/fz1
echo $'#!/bin/sh
geany \"$(fzf -m --preview \'head -500 {}\' --preview-window wrap)\"
' > /root/my-applications/bin/fz1g
echo $'#!/bin/sh
geany \"$(fzf -m --preview \'cat {}\' --preview-window wrap)\"
' > /root/my-applications/bin/fzg
echo $'#!/bin/sh
beaver \"$(fzf -m --preview \'head -500 {}\' --preview-window wrap)\"
' > /root/my-applications/bin/fz1b
echo $'#!/bin/sh
beaver \"$(fzf -m --preview \'cat {}\' --preview-window wrap)\"
' > /root/my-applications/bin/fzb
chmod 755 /root/my-applications/bin/fzg /root/my-applications/bin/fz1b /root/my-applications/bin/fz1g /root/my-applications/bin/fzb
echo $'#!/bin/sh
geany -i \"$(fzf -m --preview \'head -500 {}\' --preview-window wrap)\"
' > /root/my-applications/bin/fz1gi
echo $'#!/bin/sh
geany -i \"$(fzf -m --preview \'cat {}\' --preview-window wrap)\"
' > /root/my-applications/bin/fzgi
chmod 755 /root/my-applications/bin/fzgi /root/my-applications/bin/fz1gi

____

i have the version for dingo (or whatever ubuntu's d series animal was) running fine in xenial 32 and would be surprised if you couldn't use it back at least as far as precise (which seems to predate the existence of the utility). it instantly responds to your input and filters the files in one part of the screen while it previews in another part. check out the author's site above to learn more.



also, here's the batch launcher for beaver i meant to include a few posts ago:
Code:

echo $'
#!/bin/sh
# d2b
beaver "$@"/*
' > /root/my-applications/bin/d2bb
chmod 755 /root/my-applications/bin/d2bb


i'll include these little scripts in the next nwp, but fzf's site says they update frequently so it's probably better get fzf itself through an updated PKG, your package manager(PPM), or the fzf site directly to check out the latest releases and info. (i'm pretty sure the for ermine would run in bionic, and i know the one from dingo runs in xenial).

enjoy,

--pd

(update: code can now handle spaces in file names, and it appears the ermine version works fine in beaver)
___


short version: it finds your files through the terminal and can be set to give you a preview. it's configurable and blazingly fast, and although a cli app, it's surprisingly user friendly.
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1669
Location: nyc

PostPosted: Sun 19 Apr 2020, 03:06    Post subject: an updates and recs pet (recs01.1.pet): mmv, fzf, ag,
Subject description: multimedia apps by jpline; petget tweak by nico007; fzf presets and helpers, Mochi's viewer updated
 

edit: i left one of the updated packages out of the pet so here's he corrected version:

recs-01.1.pet


----
recs-01.pet
(use the one above)
root# tree -s
.
├── [ 134] pet.specs
├── [ 3062] pinstall.sh
├── [ 4096] root
│   ├── [ 4096] my-applications
│   │   └── [ 4096] bin
│   │   ├── [ 34] fzffp
│   │   ├── [ 1859] fz-h
│   │   ├── [ 1493] giffer
│   │   ├── [ 84417] mmv
│   │   └── [ 10466] spetget
│   └── [ 4096] puppy-reference
│   └── [ 4096] mini-icons
├── [ 4096] tmp
│   ├── [ 7572] ffmerge-0.2a.pet
│   ├── [ 11036] ffplay-gtk-1.1a.pet
│   ├── [ 19568] fftag-1.5a.pet
│   ├── [ 884768] fzf_0.18.0-2_i386.deb
│   ├── [ 954428] fzf_0.20.0-1_amd64.deb
│   ├── [ 8276] pdvdrip-0.9.pet
│   ├── [ 5488] pscreenrecorder-0.3.pet
│   ├── [ 39536] silversearcher-ag_2.1.0-1_amd64.deb
│   └── [ 40832] silversearcher-ag_2.1.0-1_i386.deb
└── [ 4096] usr
└── [ 4096] share
└── [ 4096] applications

9 directories, 16 files

recs-01.pet

pinstall.sh:
Code:


#!/bin/sh
#https://docs.google.com/document/d/1dlHhNOMl5IbzeYCmG0DA3UohepyHNGPFygmcbVaE388/edit?usp=sharing
echo $'#!/bin/sh
mpv "$(fzf -m)"
' > /root/my-applications/bin/fzmpv
echo $'#!/bin/sh
deadbeef "$(fzf -m)"
' > /root/my-applications/bin/fzdeadb
echo $'#!/bin/sh
vlc "$(fzf -m)"
' > /root/my-applications/bin/fzvlc
echo $'#!/bin/sh
libreoffice6.4 "$(fzf -m)"
' > /root/my-applications/bin/fzlo
echo $'#!/bin/sh
libreoffice6.4 --writer "$(fzf -m --preview \'cat {}\' --preview-window wrap)"
' > /root/my-applications/bin/fzlop
echo $'#!/bin/sh
leafpad "$(fzf -m --preview \'cat {}\' --preview-window wrap)"
' > /root/my-applications/bin/fzlea
echo $'#!/bin/sh
rox "$(fzf -m)"
' > /root/my-applications/bin/fzrx
chmod 755  /root/my-applications/bin/fzlea /root/my-applications/bin/fzlop /root/my-applications/bin/fzlo /root/my-applications/bin/fzvlc /root/my-applications/bin/fzmpv /root/my-applications/bin/fzdeadb /root/my-applications/bin/fzrx
echo $'#!/bin/sh
fzf -m --preview \'head -500 {}\' --preview-window wrap
' > /root/my-applications/bin/fz1
echo $'#!/bin/sh
fzf -m --preview \'cat {}\' --preview-window wrap
' > /root/my-applications/bin/fz
echo $'#!/bin/sh
micro \"$(fzf -m --preview \'head -500 {}\' --preview-window wrap)\"
' > /root/my-applications/bin/fz1m
echo $'#!/bin/sh
micro \"$(fzf -m --preview \'cat {}\' --preview-window wrap)\"
' > /root/my-applications/bin/fzm
chmod 755 /root/my-applications/bin/fzm /root/my-applications/bin/fz /root/my-applications/bin/fz1m /root/my-applications/bin/fz1
echo $'#!/bin/sh
geany \"$(fzf -m --preview \'head -500 {}\' --preview-window wrap)\"
' > /root/my-applications/bin/fz1g
echo $'#!/bin/sh
geany \"$(fzf -m --preview \'cat {}\' --preview-window wrap)\"
' > /root/my-applications/bin/fzg
echo $'#!/bin/sh
beaver \"$(fzf -m --preview \'head -500 {}\' --preview-window wrap)\"
' > /root/my-applications/bin/fz1b
echo $'#!/bin/sh
beaver \"$(fzf -m --preview \'cat {}\' --preview-window wrap)\"
' > /root/my-applications/bin/fzb
chmod 755 /root/my-applications/bin/fzg /root/my-applications/bin/fz1b /root/my-applications/bin/fz1g /root/my-applications/bin/fzb
echo $'#!/bin/sh
geany -i \"$(fzf -m --preview \'head -500 {}\' --preview-window wrap)\"
' > /root/my-applications/bin/fz1gi
echo $'#!/bin/sh
geany -i \"$(fzf -m --preview \'cat {}\' --preview-window wrap)\"
' > /root/my-applications/bin/fzgi
echo $'#!/bin/sh
leafpad \"$(fzf -m --preview \'head -500 {}\' --preview-window wrap)\"
' > /root/my-applications/bin/fz1lea
chmod 755 /root/my-applications/bin/fzgi /root/my-applications/bin/fz1gi /root/my-applications/bin/fz1lea
ln -s /root/my-applications/bin/spetget /root/.config/rox.sourceforge.net/SendTo/.application_pet/spetget
spetget /tmp/ffmerge-0.2a.pet
spetget /tmp/ffplay-gtk-1.2.pet
spetget /tmp/fftag-1.5a.pet
spetget /tmp/pdvdrip-0.9.pet
spetget /tmp/pscreenrecorder-0.3.pet
petget /tmp/fzf_0.18.0-2_i386.deb
petget /tmp/fzf_0.20.0-1_amd64.deb
petget /tmp/silversearcher-ag_2.1.0-1_amd64.deb
petget /tmp/silversearcher-ag_2.1.0-1_i386.deb
sleep 5
fixmenus
jwm -restart



_____
from


pupli repo/word processing and related/nwp+vtg/recs and notes/recs-01.pet/notes5
_____
Quote:


[...]

i frequently load up pets with petget calling extra pets from /tmp as an easy way to update things and incorporate update pets into the main package. nico7 made a version of petget that i renamed spetget (silent petget)--it allows things that don't need your okay to be installed as if you had gone through the effort of disassembling them and adding their pieces back into some aggregate pet (and possibly having to mess around with the pets' pinstall scripts). nico posted three scripts ( Petget-Tools: http://murga-linux.com/puppy/viewtopic.php?p=1035007#1035007), but so far i've only used and renamed "Petget_NoScreens.sh"). so that's one rec.

the multimedia pets are tiny and are all made by plnej:

fftag 1.5a http://murga-linux.com/puppy/viewtopic.php?t=117253
pscreenrecorder-0.3 http://murga-linux.com/puppy/viewtopic.php?t=118525
ffplay-gtk 1.2 http://murga-linux.com/puppy/viewtopic.php?t=117468
pdvdrip-0.9 http://murga-linux.com/puppy/viewtopic.php?t=117692
ffmerge 0.2a http://murga-linux.com/puppy/viewtopic.php?t=117755

____

mmv is MochiMoppel's Viewer (renamed to go with the desktop files and shortcuts i already have for it). you can find that here (4/20/20 version is current as of writing): http://murga-linux.com/puppy/viewtopic.php?t=109573


[...]
_____

pet will install mochi's and j's stuff without asking your approval (should work on all pups). silver searcher and fzf are architecture dependent--say yes to the two that fit and no to the two that don't. fzf is under a meg, silver-searcher is under 50k. there are helper scripts for fzf, and a general overview of the rest of the pet (before it was in pet form) can be found at pupli repo/Utilities Tools System Libs/fzf/links and notes and a post from the nwp thread that quotes it and maybe adds a bit more,
some helper scripts for a recommended utility (fzf)
plus something i forgot from earlier (directory batch launch with beaver (d2bb)) (http://murga-linux.com/puppy/viewtopic.php?p=1055393#1055393):

fuzzy file finder website: https://github.com/junegunn/fzf


[...]
edit 4/9/2020: fixed the above script so it can handle spaces in file names. tested briefly and found eoan version of fzf seems to work fine in bionicpup64.

snippet suggested above for leafpad also works as a finder/launcher for libreoffice, vlc, and deadbeef (and i'm sure more but this is what i just tried out). i'll make a terminal dump version a little later, but here's the basic command for the little scripts/shortcuts:

Code:
vlc "$(fzf -m)"
libreoffice6.4 "$(fzf -m)"
deadbeef "$(fzf -m)"
libreoffice6.4 --writer "$(fzf -m --preview 'cat {}' --preview-window wrap)"

i left in a preview template/example, but for non text files i'm not sure how much help the preview pane is (mostly looks like squiggles and gibberish to me, with some recognizable characters and shapes thrown in every once in a while).

_______
here are the terminal dump in versions of the above (plus leafpad, rox and mpv)
Code:


echo $'#!/bin/sh
mpv "$(fzf -m)"
' > /root/my-applications/bin/fzmpv
echo $'#!/bin/sh
deadbeef "$(fzf -m)"
' > /root/my-applications/bin/fzdeadb
echo $'#!/bin/sh
vlc "$(fzf -m)"
' > /root/my-applications/bin/fzvlc
echo $'#!/bin/sh
libreoffice6.4 "$(fzf -m)"
' > /root/my-applications/bin/fzlo
echo $'#!/bin/sh
libreoffice6.4 --writer "$(fzf -m --preview \'cat {}\' --preview-window wrap)"
' > /root/my-applications/bin/fzlop
echo $'#!/bin/sh
leafpad "$(fzf -m --preview \'cat {}\' --preview-window wrap)"
' > /root/my-applications/bin/fzlea
echo $'#!/bin/sh
rox "$(fzf -m)"
' > /root/my-applications/bin/fzrx
chmod 755  /root/my-applications/bin/fzlea /root/my-applications/bin/fzlop /root/my-applications/bin/fzlo /root/my-applications/bin/fzvlc /root/my-applications/bin/fzmpv /root/my-applications/bin/fzdeadb /root/my-applications/bin/fzrx


____
terminal launching codes are the names, which are formed by fz+part of the second program's name. new ones from this batch are

fzlea - fuzzy filtering to leafpad (preview enabled)
fzlop - fuzzy filtering to libre office (preview enabled)
fzlo - fuzzy filtering to libre office
fzvlc - fuzzy filtering to vlc
fzmpv - fuzzy filtering to mpv
fzdeadb - fuzzy filtering to deadbeef
fzrx - fuzzy filtering to rox-filer
[plus now
fz1lea -fzf w/ 500 line preview to leafpad,
fzffp --fzf to ffplay-gtk]
[...]
so that's pretty much the pet. fzf plus ag is a real alternative to recoll when it comes to looking through text files, but not for those that are compressed and in containers (odt, docx,..). you could probably look through rtf files but i haven't tried. preview preset for libreoffice should probably be removed. if you've got tons of odt/docx and don't want to index them with something like recoll, make plain text backups and use fzf plus ag (silversearcher gets called by "ag") to rifle through them.

anyway, i tried the most recent 32/64 bit versions of fzf and silversearcher-ag in bionic64 and xenial 32 and they work fine. the newest 32s should work in pups at least as far back as precise.
___

[...]


forgot to explain what giffer is. see http://murga-linux.com/puppy/viewtopic.php?p=1044027#1044027

for more, but short version is it can make cuts and loops and save them as gifs or movies. l starts and ends the loop. g for gif of it, h for movie. use ffmerge by plinej with it and you have an ultra tiny cut, paste, and splice suite for multimedia files.
(no user interface for giffer beyond mpv itself. script and configuration file available in the above link (or you can take the pet apart. thanks to fabrice_035 for the giffer heads up)).

edit 4/18:

plinej updated two of the apps so i'm going to reup the pet as recs -01 and rename this file to match (and include it as a link/comment in the pet's pinstall.sh so that it has some sort of built in documentation). think it will likely still include the useless libreoffice preview settings--treat them as practice templates and change what they do.

-pd

---

recs-01.pet 1958k

reupped with an fzf preset for plinej's ffplay-gtk (fzffp in terminal) and leafpad, 500 line preview (fzleap)
ffplay updated to 1.2, spetget symlinked to /root/.config/rox.sourceforge.net/SendTo/.application_pet/spetget so you can use it through the right click menu.

still has the useless libreoffice with preview presets


enjoy!

-pd



update gives you a mini cutting, looping, splicing, and annotating studio for multimedia files, adds some fzf helpers and shortcuts to the previous effort, and gives you the option to install the latest fzf and silversearcher-ag (latest 32 bit versions should work at least as far back as precise (though only testes as far back as xenial). 64 bit versions tested in bionic).

make plain text backups of your odt's, docx's and the like, use fzf and ag to view and find them, and you have a tiny search utility that's nearly as fast as recoll but doesn't need to build giant (or any) databases (recoll is included in these spins, but it's nice to have another tool for the job, especially if you need to look through something not already archived).

(checked since i first made this post and you get formatting code, but rtf files can indeed be previewed with fzf, so leaving that preset for libreoffice makes a justifiable amount of sense, i guess/i have no plans to remove it).

---
audio-video pets by jpline included in the pet are also mirrored in the multimedia section of my repo: pupli repo/audio, graphics, video, studio, QT/


---

here's the corrected pet again:recs-01.1.pet (1967k)



enjoy,

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


Joined: 07 Jan 2013
Posts: 1669
Location: nyc

PostPosted: Fri 15 May 2020, 00:34    Post subject: large and small word processor updates
Subject description: libre office 643 sfs and pet, a slght change for the browser based word processors
 

from LibreOffice 6.4.3-64 pet (177MB) and sfs (215MB) (http://murga-linux.com/puppy/viewtopic.php?p=1056040#1056040):

Puppus Dogfellow wrote:
LibreOffice-6.4.3_64_en-US_xz.sfs
LibreOffice-6.4.3_64_en-US_xz.pet


LibreOffice-6.4.3_64_en-US_xz.sfs (215MB)
MD5: 08cb3b9cc9f1bdbbf553897970b09f21
SHA1: 84de6f52daa1b640e7a2101ac3557c18dfbc613f
SHA256: a646349941a9ad4f8588b1f392aec9c00fad2427bd926277af896fde26ab5f45
CRC32: 967afe99

LibreOffice-6.4.3_64_en-US.pet (177MB)
MD5:547a99953bd8f75305073374de316697
SHA1: b6cd41aba0c9989b08e7e306a2afb07f33db942f
SHA256: d33e77dd040ec24fc779def6d50fd3a62852e8e89d6a95bc4205b979fdcbb47d
CRC32: 5bb72948


the pet includes the desktop icon fix from a couple of posts back

___

on the other side of the word processing spectrum, here's a little tip/update for the browser based word processors

from the Make Concurrent copies thread
Re: usability tip/update for the word processor plugin(s) (http://murga-linux.com/puppy/viewtopic.php?p=1058113#1058113):

Puppus Dogfellow wrote:
from
a small restructuring and some added functions
Subject description: (it's now also a tiny browser based word processor (complete with keyboard tweaker)) (http://murga-linux.com/puppy/viewtopic.php?p=965915#965915):

Quote:


[...]seems saving to pdf works in mozilla based browsers after all, and i need to take back some of my hedging on its usability as a word processor--it will save the changes you make in the editable tab if you save it as a pdf through the print dialog, but the same file downloaded through the same interface doesn't show your changes if you save it as an html file.

(both functions work as expected in chromium based browsers, and either can use bookmarking to return to previous work. drag and drop the file to an open browser; use the rox new templates to start a project wherever you like.)

--p. dogfellow, 8/22/17

edit: save as webpage complete as opposed to html only and the mozlilla based family works fine. saving as plain text also works through the ctrl+s function and file menu.

sorry for all the unnecessary drama--it works, it's a word processor.

(enjoy).
[...]



works in android and windows as well, but i now recommend webpage complete regardless of browser if you want to continue to edit the file and reliably save your changes. something seems to have changed in the last few months and the html only option no longer does anything useful in any browser (beyond download a copy of the template). adjust in page layout view to choose what headers and footers appear (date, path of the file, page numbers, etc).

tested in firefox, midori, palemoon, vivaldi, chrome, chromium, edge, explorer, and some of these same in android (after some fiddling with permissions through a file browser, iirc.)

enjoy

-pd
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 18 of 18 [267 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.3126s ][ Queries: 13 (0.0046s) ][ GZIP on ]