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

The time now is Mon 06 Jul 2015, 16:02
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Geany as Launcher and Bookmarks Manager
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Author Message
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 930
Location: nyc

PostPosted: Mon 16 Mar 2015, 22:36    Post subject:  Geany as Launcher and Bookmarks Manager
Subject description: open programs, files, folders and web sites; reshape and resize windows from within a text document.
 

adapted from here.

requires xdotool-2.20110530.1-3.pet
64 bit version: xdotool-2.20110530.1-3.1.2.x86_64.rpm


the following guide assumes jwm. you can use rox panels or alter the menu code for other windows managers if you don't have it/prefer not to use it. if you can get geany's macro function to work correctly then you're a step ahead of the set up and don't need anything other than geany itself to use the tweak the following script automates. just record the steps as a macro (tools menu). you'll have a shortcut key that's at least as convenient as any other, but you don't get the tray button or menu item without some window manager adjustments of one sort or another.

______________

with a few adjustments, you can launch anything from within any geany document as if it were itself a menu or a terminal. below is a screenshot of partview being opened by clicking on the VTG button i added to a top middle hideaway tray. place the cursor and the line gets sent to the terminal, focus is switched to the terminal, the line is entered, and then focus is returned/the program, script, folder etc is run, launched, opened.



you'll need the following script and some tweaking of the geany menu.

Code:

#!/bin/sh
# name vtg and place in /root/my-applications/bin
# requires xdotool and a few menu adjustments
#geany as launcher and bookmarks manager
#open programs, files and web sites; reshape and resize windows from within a text document.
xdotool key ctrl+9 ctrl+8 Return ctrl+7

 #for jwm root menu(s): <Program label="Geany VTE Line Launch" icon="">vtg</Program>
 #or <Program label="VTG"">vtg</Program> .   for a tray button you could use   <TrayButton popup="geanylauncher" label="VTG">exec:vtg</TrayButton> . add an icon (icon="path/to/icon.jpg.or.whatever") for it if you like. add to /root/jwmrc-tray or any other



at this point, this xdotool script is pointing to shortcuts in geany which do not yet exist. to make them,

edit > preferences > keybindings (or help > keyboard shortcuts > edit)

step 1: send selection (or line--just place the cursor; you don't need to highlight anything) to terminal:
ctrl+9 (this one is already built in as F4--you can set the shortcuts to whatever you like--just keep the order the same as in the script above)

step 2: switch focus to terminal:
ctrl+8

step 3: enter command obtained in step 1
Return

step 4: return focus to page/close message window and terminal so that you're back to the original page as it was before you launched the script. you'll need to alter this if you want to keep the terminal open or otherwise change the interface:
ctrl+7


you'll need to find the slots for the above commands and set the shortcut keys (the pop up will call ctrl primary), optionally leaving F4 and changing the ctrl+9 in the script above to match.


the following line of code launched with VTG will make a text file of all the files and their paths in /root/my-applications/bin (swap out the blue for the location of your choice) and then open it (named on the fly--choose whatever you like for the location and name in red) in geany:

find $PWD /root/my-applications/bin > /root/myapbin1; geany /root/myapbin1


the following code will automatically take any path highlighted and convert it into a rox bookmark (when activated with VTG, whether it's a menu item, tray button, or panel script--shortcut keys (other than those that access the menu) don't work very well with this script so i suggest putting VTG atop a root menu for quick key access). you can highlight multiple lines at a time and the script will correctly place the "rox" and quotation marks where they need to be.

Code:

#! /bin/sh
# based on ht-b by miriam
# name rxmkr and place in /root/my-applications/bin
# turn a path into a rox bookmark when used with nwpt/vtg
# swap out the rox to have other file managers open the folder/other programs open the file.

xclip -o | sed 's/^/rox "/' | sed 's/$/\"/' | xclip -selection clipboard
xdotool type "`xclip -out -selection clipboard`"

#<Program label="RXMKR">vtg</Program> as menu suggestion


right clicking will give you an option to open items as text--always works if the path is full. the above code places quotation marks around the path--not really necessary unless there are spaces in some program titles. highlight and use the find and replace function (search menu ...> replace selected) to have things other than rox open up the files. make copies to have it set so that a file can be opened by a variety of things at a click. to launch the bulk of puppy's programs, you don't need the path, just the name, usually in lower case.

Code:
ls /usr/share/applications > /root/pupaps1; geany  /root/pupaps1


gives you most as a list opened in geany, but you'll need to ditch the .desktop part of the file names and the capitalization.

edit > select all > format > toggle case, and search > find and replace > [.desktop] [space, blank, or return all work] > whole document

and you be able to launch puppy's apps from menus that can be altered and expanded as you're using them.

to get an idea of the control this gives you, play around with the following code:

Code:

#!/bin/sh

# pos+

wmctrl -r :SELECT: -b remove,maximized_vert,maximized_horz && wmctrl -r :SELECT: -e 0,1176,460,-1,-1


# value of -1 means don't change; gravity, position on x axis, position on y axis, width of x, height of y.
#currently set to snap windows between two monitors. change :SELECT: to :ACTIVE: to have it work on the currently activated window rather than giving you cross hairs to zap windows with.
#requires wmctrl.
# wmctrl -G -l  gives you geometry of current windows--use as a guide.
# to use in with vtg, you don't need it as a script--just the line of code: wmctrl -r :SELECT: -b remove,maximized_vert,maximized_horz && wmctrl -r :SELECT: -e 0,1176,460,-1,-1
 


1176,460,-1,-1 are x position, y position, width of x, and height of y respectively, with the last two (physical dimensions as opposed to the first two, which are placement) set to remain as the original window has them. you can change the figures to whatever you like, hit VTG, and the next window you click will be forced into your chosen size and position, even if the document you are controlling things from hasn't yet been saved.

helpful hint: make shortcut menus from your bash-history and gexec history files. use program1| program2| program3| to launch things simultaneously as the VTE will ordinarily wait for something to be closed before launching the next thing. the program path/to/file1 path/to/file2 path/to/file3 format will allow most applications to open more than one file at a click.

(position script requires wmctrl, which you can get here)

____

i think this may have appeal beyond my little precise spinoff and it's not necessarily dependent on JWM, so i'm making it its own thread as opposed to placing it here, which is where i document most of my jwm fiddling. feedback welcomed and encouraged--this seems to me a good way to learn and play around with code and at the very least become more familiar with it, or at least less put off by it, if not more appreciative of it--knowing it makes life easier and there's nothing wrong with that. my appreciation for linux, puppy, rox, jwm, and geany grows every day.

i'm serious.

Laughing




enjoy.

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


Joined: 07 Jan 2013
Posts: 930
Location: nyc

PostPosted: Mon 23 Mar 2015, 22:34    Post subject: a workaround for the convoluted shortcut key stroll
Subject description: also cast or putt the mouse about
 

xdotool allows you to quickly rein in the launch command we had to place on the menu. if you followed the above suggestion and placed the vgt command on the first slot of the root one menu, then

Code:


<Key mask="A" key="z">exec:xdotool key alt+1 Down Return</Key>   
<Key mask="A" key="BackSpace">exec:xdotool key alt+1 Down Return</Key>   


cuts the key presses to two from four.

__________

once you get the hang of using it, it's really fast and almost sort of fun. you can use the following code to click pop up boxes--i think the mechanics involved are somewhat akin to a golf or fishing game, or maybe even Battleship.


Code:

      xdotool mousemove 0 0 click 1 mousemove restore         




what that does is tell xdotool to toss the mouse to the x and y coordinates specified (here both zero), click the left button, and then send the mouse back. trial and error until you can hit things with pinpoint accuracy and no longer need to recast, take a second shot, load up another torpedo, etc.


Wink


____________

thing three: since this (just about) uses real language to launch things, and since any language that interferes with the code can be commented out but still used to give and gain guidance, and since the text can be made absolutely enormous, and since it's possible that if they've waited this long to get into computers, they won't be feeling the lack of icons, perhaps the geany line launcher can be used to help make puppy friendlier for those whose visual acuity or general ease with computers is lacking.
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 930
Location: nyc

PostPosted: Thu 02 Apr 2015, 00:41    Post subject: helper menu and suggested uses  

convert paths to rox bookmarks or menu items

^download and place contents in /root/my-applcations/bin.
add the following menu to /etc/xdg/templates/_root_.jwmrc (or another root menu, if you have/prefer).

Code:
  <Menu label="make bookmarks and launchables" icon="" height="16">
 
<Program label="to open with rox" icon="">rxmkr</Program>

<Program label="to open with geany" icon="">gmkr</Program>
<Program label="to open with leafpad" icon="">lpmkr</Program>

<Program label="to open with libreoffice--writer" icon="">lowmkr</Program>
<Program label="to open with libreoffice" icon="">lomkr</Program>
<Program label="plain quotation marks around path" icon="">plainquotesmkr</Program>

<Program label="to open with firefox" icon="">ffmkr</Program>
<Program label="to open with palemoon" icon="">pmmkr</Program>
<Program label="to open with seamonkey " icon="">smmkr</Program> 

<Program label="to open with mtpaint" icon="">mtmkr</Program>
<Program label="to open with viewnoir" icon="">vnmkr</Program> 

<Program label="to open with vlc" icon="">vlcmkr</Program> 
 </Menu>


use this in conjunction with the

find $PWD /root/my-applications/bin > /root/myapbin1; geany /root/myapbin1

script, which lists paths in the directory specified, then copies them into a file (to be named and given a place to reside). highlighting these paths and then clicking one of the above menu entries will surround the path with quotation marks (in case there's a break in a name somewhere), and then prepend that with the program of your choice (it's simple to swap out program name in either the script or the menu item that calls it--just copy and overwrite in both places to add your own choices to the menu) followed by a space.


____________

i'm using

Code:
<Key mask="A" key="z">exec:xdotool key alt+1 Down Return</Key>   
to launch vtg, possible because it sits on the first slot of the root one menu. so with alt+z providing easy activation, you just need something to provide easy access to the works. i'm using alt+shift+g (
Code:
<Key mask="AS" key="g">exec:geany /root/nwp.readme</Key>
added to jwmrc-personal.) this is what comes up, more or less:

Quote:

combination crib sheet for useful codes, menu/bookmarks launcher, scrap, VGT and NWP help. first, some useful codes:
place cursor and press VGT button or shortcut to launch code or program

-------codes-------

treesize| rox /mnt| partview
^overview 1

lxtask| PupControl
^overview 2
(when programs are linked on a line as above, place cursor to launch all or highlight one to launch it on its lonesome)




rox -D /
^close all rox windows

rox -D /close/this/directory/&subs


for f in TTT{2..6}.txt ; do cp TTT.txt $f ; done
#make multiple copies of a file^
for f in TTT{2..6} ; do cp -r TTT $f ; done
#make multiple copies of a directory^
#see line 69 for details (ctrl+l 69 enter)
^you can use ctrl+l or ctrl+f to go to line or find...you can also navigate/placehold by bracket, brace, or marker through the built in shortcut keys.

this is living scrap--there's really no reason to comment anything out--you can also highlight sections of code to see if they work--handy when putting menus together, etc...

find $PWD /root/my-applications/bin > /root/myapbin1; geany /root/myapbin1

^the above line of code launched with VTG will make a text file of all the files/paths in /root/my-applications/bin (swap out the first path for the location of your choice) and then open it (named on the fly--choose whatever you like for the location and name for the final two paths given).

ls /usr/share/applications > /root/pupaps1; geany /root/pupaps1

^gives you most as a list opened in geany, but you'll need to ditch the .desktop part of the file names and the capitalization.
edit > select all > format > toggle case and search > find and replace > [.desktop] [space, blank, return all work] > whole document
and you be able to launch puppy's apps from menus that can be altered and expanded as you're using them.
to get an idea of the control this gives you, play around with the following code:

[...]


---bookmarks and programs---

hardinfo
htop
gexec
df -h

^i have RoxTerminal set to autostart with four open tabs. you can highlight and middle click a tab to paste a name change/middle click in the tab to run the code (as with any terminal, use the arrow keys to scroll back through past entries or tab tab to autocomplete). activated with the vtg, df -h (drive sizes and free space in human readable form) and htop will output in the terminal window, and gexec and hardinfo will pop up their respective guis. (i'd've made one of them the PupControl center, but i made a scriptlet to call it and renamed it pcp--keyboard shortcut to the terminal and muscle memory actually makes that faster for me, but that's another strategy for quickly launching programs you use often/often enough.) use ctrl+7 to toggle the view back to the terminal and see the output/return to the document.



findnrun
grun


geany

geany /root/nwp.readme /root/vgtmenu2


geany /root/custombkmk1sc.txt /root/714.jwmrc /root/.jwmrc /root/.gexec_history /root/.gexec /root/.jwm/jwmrc-personal /root/.jwm/jwmrc-personal2 /root/.config/rox.sourceforge.net/ROX-Filer/Bookmarks.xml /root/.config/rox.sourceforge.net/ROX-Filer/Groups.xml /etc/xdg/templates/_root_.jwmrc /root/.gtk-bookmarks

geany /root/root0menu /root/root1menu /root/root2menu /root/root4menu /root/root5menu /root/root6menu /root/root7menu /root/root8menu /root/root9menu


rox /mnt /mnt/home /root

rox

^setting up combinations of folders and documents to be opened. for websites use browsername url1 url2 url3---this will open it in tabs usually. check your browser's options for details (type, for example, "firefox --help" into a terminal)



leafpad path/file1| leafpad path/file2| leafpad path/to/file3

change directories, run the path-getting script, make geany open the file:

cd /root/my-applications/bin
find $PWD > /mnt/sda1/myapps22est.txt
geany /mnt/sda1/myapps22est22est.txt


same as one line/step:

find $PWD /root/my-applications/bin > /root/fnddestfi1; geany /root/fnddestfi1

ls /usr/share/applications > /root/pupaps1; geany /root/pupaps1
^ list by title, which is enough to launch most things...




line 66piece line 66 piece line 66 piece line 66 piece line 66 piece line 66 piece 66 piece line 66 piece
#!/bin/sh

#make multiple copies of a file:


#for f in TTT{2..6}.txt ; do cp TTT.txt $f ; done

#for f in PPP{2..6}.png ; do cp PPP.png $f ; done
#for f in DDD{2..6}.docx ; do cp DDD.docx $f ; done
#for f in OOO{2..6}.odt ; do cp OOO.odt $f ; done

#for f in TTT{2..6} ; do cp -r TTT $f ; done
#^for directories
# swap out file name (the all caps and extension bits should match the
# file you want to copy--change the brace contents to change the amount and range/the titles of the copies--you can swap the numbers for a..z or A..Z, or add sets of braces one after the other for multiple variables.
# no extension given in the directories version and the recursive command is added. you can add text after the variables in the brackets in either and it will be part of the new file/folder name.
#more on brace expansion: http://wiki.bash-hackers.org/syntax/expansion/brace
# http://stackoverflow.com/questions/5580835/cp-copy-command-with-bash-brace-expansion (from Michael Krelin); orig: for f in test{2..4}.txt ; do cp file.txt $f ; done)--can anyone make this a script that works for files dragged to it?


#--------------------------------------------
#!/bin/sh
# name 5copiesDir and place in /root/my-applications/bin
#make multiple copies of a file:
# nwpt menu entry <Program label="5 copies template--directories">5copiesDir</Program>
xdotool type "for f in TTT{2..6} ; do cp -r TTT $f ; done"


6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666


/root/my-applications/SLocate/auto-updatedb-slocate.sh
^update slocate, though better in a terminal other than vte as it's relatively time consuming. use

rox /root/my-applications/SLocate
and the / function (or the arrow keys--better if everything in a folder has virtually the same name) plus Enter instead. i actually like it so much i gave it an easier to key entry (copied and renamed a desktop file) by adding "uu" to the title. below is a version that will launch it and a version that will select it (select it version requires you rename a copy of the desktopfile or a symlink to the script):

rox /usr/share/applications; xdotool type 'auto-updatedb-slocate.sh'; xdotool key Return

^keeping it a one liner means you don't have to highlight to launch it--just placing the cursor anywhere on the line (plus the vgt shortcut however you trigger it) is enough.

rox /usr/share/applications; xdotool type '/uu'

^ no Return/Enter, no launch. you could add ctrl+q at the end to automatically close the rox window the line opened (for the second version, you'd need to add ;xdotool key Return ctrl+q)..



slocate --database=[specify path] [search term]
[you can also use --database=path1:path2:path3]

slocate --database=/mnt/sda1/slocate-sda1.db

slocate --database=/mnt/sda2/slocate-sda2.db
slocate --database=/mnt/sda3/slocate-sda3.db
slocate --database=/mnt/sda4/slocate-sda4.db
slocate --database=/mnt/sda5/slocate-sda5.db



slocate --database=/mnt/sdb1/slocate-sdb1.db
slocate --database=/mnt/sdb2/slocate-sdb2.db
slocate --database=/mnt/sdb3/slocate-sdb3.db
slocate --database=/mnt/sdb4/slocate-sdb4.db
slocate --database=/mnt/sdb5/slocate-sdb5.db


slocate --database=/mnt/sdc1/slocate-sdc1.db
slocate --database=/mnt/sdc2/slocate-sdc2.db
slocate --database=/mnt/sdc3/slocate-sdc3.db
slocate --database=/mnt/sdc4/slocate-sdc4.db
slocate --database=/mnt/sdc5/slocate-sdc5.db

slocate --database=/mnt/sdd1/slocate-sdd1.db
slocate --database=/mnt/sdd2/slocate-sdd2.db
slocate --database=/mnt/sdd3/slocate-sdd3.db
slocate --database=/mnt/sdd4/slocate-sdd4.db
slocate --database=/mnt/sdd5/slocate-sdd5.db

slocate --database=slocate-loop1.db

[i'd add text like the following to one of the documents/the document that opens when you call geany in this capacity]:

rox /mnt; xdotool key ctrl+b

rox /tmp; xdotool key ctrl+b Down Down Down Down Down Down Down Down

^quickly access your rox bookmarks. you can designate what folder you want to extend its bookmarks menu by adding a path after a space after the rox; you can position the select-highlight by adding (a series of) Down to the latter part of the line (without it, the position defaults to Add New Bookmark).

rox /mnt/home; xdotool key ctrl+b Up Up Up
^three up from last bookmark

rox /usr/share; xdotool key ctrl+b Down Down Right Down
^one down on the recently visited list

tips/reminders: escape will shut the list, ctrl+Home takes you to /root(~), and Backspace moves to parent folder--you don't really need a speed dial (designate by ctrl+0-9, access by 0-9) for / or ~ because of this (ctrl+Home followed by Backspace reaches / from any folder). call the bookmarks list with ctrl+b; left click and enter close the original, middle and right click open the bookmark as an additional folder. \ is the right click menu, / opens the path search bar at the bottom of the window.


geany /root/.bashrc /root/custombkmk1sc.txt /root/.jwmrc /etc/xdg/templates/_root_.jwmrc /root/.jwm/jwmrc-personal /root/.jwm/jwmrc-personal2 /root/.config/rox.sourceforge.net/ROX-Filer/Bookmarks.xml /root/.config/rox.sourceforge.net/ROX-Filer/Groups.xml /etc/xdg/templates/_root_.jwmrc /root/.gtk-bookmarks /root/Choices/ROX-Filer/PuppyPin3 /etc/X11/xorg.conf /root/.history /root/root9menu /root/root8menu /root/root7menu /root/root6menu /root/root5menu /root/root4menu /root/root2menu /root/root1menu /root/root0menu /root/.gexec_history /root/.pexec_history /root/my-documents/Text/vgtapps /root/scrap /root/notes /root/.jwmrc-tray /root/.config/geany/geany.conf /root/.config/geany/keybindings.conf /root/my-applications/bin/nwp.readme /root/my-documents/Text/nwp.2


^open a bunch of useful files in geany. this is the same group i used for the recent files list in the geany.config file i'm attaching. rename/replace yours to have spell check, tree browser, the virtual terminal, and the general layout seen in the pic in the first post. swap out the recents for your own to save yourself a potential inconvenience (look around line 150 or so for your document history).


to compile (from Barry K in another thread):


# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=i686-pc-linux-gnu
Or
# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=x86_64-pc-linux-gnu

But you should always run --help to find out all options:
# ./configure --help

A problem that often comes up with Quirky and many earlier pups is due to Xorg being in /usr/X11/R7. Here is a bunch of stuff that you can do prior to running configure:

export LIBS='-I/usr/X11R7/include'
export CPPFLAGS='-I/usr/X11R7/include'
export CFLAGS='-I/usr/X11R7/include'
export LDFLAGS='-L/usr/X11R7/lib'
export CPLUS_INCLUDE_PATH=/usr/X11R7/include
export C_INCLUDE_PATH=/usr/X11R7/include

...most often not needed, certainly not all of that.

(and then i guess:)
make
make install

___


[program_name] -h > /root/my-documents/Text/[program_help]; geany /root/my-documents/Text/[program_help]

or
[program_name] --help > /root/my-documents/Text/[program_help]; geany /root/my-documents/Text/[program_help]

^to make a help file of many if not most programs

active and select resize scripts, active send-to, stick, and layer scripts, plus the code i found that made it easy to put together and why i recommend gexec:

grep -lr --exclude-dir=".excludedsub(repeat for each subtree)" -e "SELECT" . | xargs sed -i "s/SELECT/ACTIVE/g"

i used the above to flip a directory worth of files from select scripts to active scripts. here's the reverse, in case you find yourself making your own versions and want to spare yourself from needlessly doubling the effort involved getting a set for each:

grep -lr --exclude-dir=".excludedsub" -e "ACTIVE" . | xargs sed -i "s/ACTIVE/SELECT/g"

adapted from here:

http://www.isaacsukin.com/news/2013/06/command-line-tip-replace-word-all-files-directory

(i used the built-in gnfrename to batch rename a directory of copies, then copied the new scripts back into /root/my-applications/bin. remember to check the permissions if something won't run.)


--------------------
#!/bin/sh
for file in *
do
cat negones >> $file
done#!/bin/sh

#(negones being a file in the same directory consisting of:

#!/bin/sh
wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz && wmctrl -r :ACTIVE: -e 0,-1,-1,-1,-1

# --a general way to make template files/fill a directory of files with given content)

#adapted from http://www.unix.com/shell-programming-and-scripting/67979-adding-multiple-lines-multiple-files.html
--------------------

find and replace (space) with (space)/root/my-applications/bin/
touch command to make them real files. [i typed out a series of numbers (200 -1800 by 25s; echo {200..1800..25} would've produced the same sequence), replaced the space (through geany's find and replace function) with space plus path, added touch in front of the resulting list, and got a batch of files that way. used gfnrename to rename copies of the originals in separate folders for height, width, select, and active (the included active send-tos were done with the grep line that starts this readme). included the content with the little script above, placed in and activated from the same folder that held the originals (spare yourself some work and copy them after the content's been added. to do: learn the code for transposing values after commas--that'd make the process more automated still...you could also i'm sure have sed/awk/grep (tr, cut?) take the values from a list and put them in the proper place in each file. this'll do for now...)

--------------------

gfnrename
--------------------

#!/bin/sh
#name fnr
findnrun
#--------------------
#^findnrun is probably the best thing to choose when you can only remember three characters in the title of the program, but it appears to only search the desktops files and so can't launch the terminal shortcuts. it gets a launch shortcut of its own, but i recommend gexec to launch the mini-scripts, whether resize, reposition, or just in general. the lack of a zealous highlight/replace-predict action may mean you need an extra tab-press to complete something like sak into sakura compared to say, gRun, but that same thing allows shorter two and three character scripts to be run without the launcher automatically predicting some longer-titled items, apparently by default interpreting those titles as fragments of longer titles outside /root/my-applications/bin--you won't be able to access them if there's a conflict. gexec's dropdown history window (which you can preload and make into a menu of sorts) also appears to work better than gRun's. i haven't done much testing with Prun, but it seems to work very well for all the non-resize/reposition shortcuts--it fails with them in the same way the terminals do (as discussed earlier, terminals are out for launching the resize reposition scripts on active windows since they'll only be resizing/repositioning themselves).

(findandrun found (gfnrename) pretty easily (top of the list by third character) and allows you to grab the launch name for the vgt...)

worth knowing: pexec works as well as gexec (and also has a pull down menu you can preload).


Code:
cd /usr/share/applications; grep Exec= *.desktop | grep -o 'Exec=.*' | cut -f2- -d'=' > /root/my-documents/Text/execs2; geany /root/my-documents/Text/execs2


Code:
grep Exec= *.desktop /usr/share/applications | grep -o 'Exec=.*' | cut -f2- -d'=' > /root/my-documents/Text/vtgapps; geany /root/my-documents/Text/vtgapps


^ build/rebuild list

Code:
geany /root/my-documents/Text/vtgapps


Batch convert in libreofice to pdf:

for F in *.doc; do libreoffice --convert-to pdf $F; done
for F in *.odt; do libreoffice --convert-to pdf $F; done

from rcrsn51 thread: http://www.murga-linux.com/puppy/viewtopic.php?p=825060#82506

should work for all combinations and in both directions with: odt doc docx txt rtf ...




[just been adding shiny codey things...like i said, scrap, but it's alive...and i'm a squirrel...]


anyway, sloppy as this is, i hope it makes its usefulness (or at least intention) clear. that copy script makes it easy to make multiple copies of a directory or file--one of the few shortcomings of rox overcome.

edit: paths prepended with rox will open the file with its default handler, so it's really the most useful of the bookmarking scripts.

edit 2: copy files and copy directories scripts needed an extra line or two commented out to function correctly for use with rox or a windows manager. fixed.

Last edited by Puppus Dogfellow on Thu 25 Jun 2015, 02:46; edited 13 times in total
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 5575
Location: Gatineau (Qc), Canada

PostPosted: Thu 02 Apr 2015, 02:15    Post subject:  

Hi, Puppus.

Thanks for this, but I'm not sure I fully understand your use of geany
in this way.

So this is totally different from using F5 in geany to launch or test a script
loaded in geany? (I routinely use that function of geany to test scripts.)

Thanks in advance for any explanation. BFN.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)

Last edited by musher0 on Thu 02 Apr 2015, 13:08; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 930
Location: nyc

PostPosted: Thu 02 Apr 2015, 03:30    Post subject:  

musher0 wrote:
Hi, Puppus.

Thanks for this, but I'm not sure I fully understand your use of geany
in this way.

So this is totally different from using F5 in geany to launch or test a script
loaded in geany? (I routinely use that function of eany to test scripts.)

Thanks in advance for any explanation. BFN.

musher0


for me, F5 pops up a bash window (always with nothing more than an error report) and doesn't work on individual lines. i think it may be more like the execute button in that it launches an entire file/script. with this, you can do a line or whatever you highlight (scripts, words, and/or bits of code). the idea is to seamlessly use it from the the document you're working on, one you just launched, or one nearby--don't feel like opening the menu to get leafpad? just type leafpad on a line and hit alt+z, etc.

of course, if F5 ordinarily worked in this manner (send to the terminal, output in the terminal, launch from the terminal, return to the document as if you never left it) it would save about five minutes of set up. i think down the line, its main use for me may be code i found and a way to launch multiple folders, files, etc. i've placed a text file in dropbox so that my custom shortcuts end up persistent even if the computer or OS dies. there's no set up or other fiddling around--just open up the file and nearly all the shortcuts are usable, with the only exceptions being path-specific batch launches.

HTH

(and that i'm wrong about the way F5 works, though to use it i'd have to untweak some things...and i've got a machine with largely functionless function keys...still, would be easier to set up in that there'd be nothing to do. or explain. Wink )
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 5575
Location: Gatineau (Qc), Canada

PostPosted: Thu 02 Apr 2015, 13:12    Post subject:  

Hi.

Thanks for the further explanation, but tests will have to wait a little,
I'm busy at present with stemsee's GUI for slocate.

TWYL.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 930
Location: nyc

PostPosted: Thu 02 Apr 2015, 20:55    Post subject:  

musher0 wrote:
Hi.

Thanks for the further explanation, but tests will have to wait a little,
I'm busy at present with stemsee's GUI for slocate.

TWYL.

musher0


i just tested out VGT with your slocate scripts. works very well and helps with my only two complaints/feature requests--the autoupdate inordinately taxes one of my machines so i've taken to disabling it for all of them--perhaps this option could be added to the GUI. also, there doesn't seem to be a readily apparent way to get the thing to search a specific database rather than all of them--annoying when you know what you're looking for is on a specific partition/drive. to help with this, i've added the following to the geany text file from before:
Quote:

/root/my-applications/SLocate/auto-updatedb-slocate.sh
^update slocate, though better in a terminal other than vte as it's relatively time consuming. use

rox /root/my-applications/SLocate
and the / function (or the arrow keys--better if everything in a folder has virtually the same name) plus Enter instead. i actually like it so much i gave it an easier to key entry (copied and renamed a desktop file) by adding "uu" to the title. below is a version that will launch it and a version that will select it (select it version requires you rename a copy of the desktopfile or a symlink to the script):

rox /usr/share/applications; xdotool type 'auto-updatedb-slocate.sh'; xdotool key Return

^keeping it a one liner means you don't have to highlight to launch it--just placing the cursor anywhere on the line (plus the vgt shortcut however you trigger it) is enough.

rox /usr/share/applications; xdotool type '/uu'

^ no Return/Enter, no launch. you could add ctrl+q at the end to automatically close the rox window the line opened (for the second version, you'd need to add ;xdotool key Return ctrl+q)..



slocate --database=[specify path] [search term]
[you can also use --database=path1:path2:path3]

slocate --database=/mnt/sda1/slocate-sda1.db

slocate --database=/mnt/sda2/slocate-sda2.db
slocate --database=/mnt/sda3/slocate-sda3.db
slocate --database=/mnt/sda4/slocate-sda4.db
slocate --database=/mnt/sda5/slocate-sda5.db



slocate --database=/mnt/sdb1/slocate-sdb1.db
slocate --database=/mnt/sdb2/slocate-sdb2.db
slocate --database=/mnt/sdb3/slocate-sdb3.db
slocate --database=/mnt/sdb4/slocate-sdb4.db
slocate --database=/mnt/sdb5/slocate-sdb5.db


slocate --database=/mnt/sdc1/slocate-sdc1.db
slocate --database=/mnt/sdc2/slocate-sdc2.db
slocate --database=/mnt/sdc3/slocate-sdc3.db
slocate --database=/mnt/sdc4/slocate-sdc4.db
slocate --database=/mnt/sdc5/slocate-sdc5.db

slocate --database=/mnt/sdd1/slocate-sdd1.db
slocate --database=/mnt/sdd2/slocate-sdd2.db
slocate --database=/mnt/sdd3/slocate-sdd3.db
slocate --database=/mnt/sdd4/slocate-sdd4.db
slocate --database=/mnt/sdd5/slocate-sdd5.db

slocate --database=slocate-loop1.db



when you run the search code, it's sent to the terminal with alt+z, but you'll have to use ctrl+7 to view it (and use it again to get back to the document).

it's not a bad terminal--you can give it a photo backdrop and customize the font and colors and stuff. Smile

Last edited by Puppus Dogfellow on Tue 07 Apr 2015, 02:40; edited 2 times in total
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 5575
Location: Gatineau (Qc), Canada

PostPosted: Thu 02 Apr 2015, 21:51    Post subject:  

By VTG, you mean the Volume of Trapped Gas? Wink
http://acronyms.thefreedictionary.com/VTG

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 930
Location: nyc

PostPosted: Thu 02 Apr 2015, 22:13    Post subject:  

musher0 wrote:
By VTG, you mean the Volume of Trapped Gas? Wink
http://acronyms.thefreedictionary.com/VTG


possibly.

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


Joined: 07 Jan 2013
Posts: 930
Location: nyc

PostPosted: Thu 16 Apr 2015, 20:24    Post subject: an easier setup method  

Quote:

you'll need the following script and some tweaking of the geany menu.

Code:

#!/bin/sh
# name vtg and place in /root/my-applications/bin
# requires xdotool and a few menu adjustments
#geany as launcher and bookmarks manager
#open programs, files and web sites; reshape and resize windows from within a text document.
xdotool key ctrl+9 ctrl+8 Return ctrl+7

 #for jwm root menu(s): <Program label="Geany VTE Line Launch" icon="">vtg</Program>
 #or <Program label="VTG"">vtg</Program> .   for a tray button you could use   <TrayButton popup="geanylauncher" label="VTG">exec:vtg</TrayButton> . add an icon (icon="path/to/icon.jpg.or.whatever") for it if you like. add to /root/jwmrc-tray or any other



at this point, this xdotool script is pointing to shortcuts in geany which do not yet exist. to make them,

edit > preferences > keybindings (or help > keyboard shortcuts > edit)

step 1: send selection (or line--just place the cursor; you don't need to highlight anything) to terminal:
ctrl+9 (this one is already built in as F4--you can set the shortcuts to whatever you like--just keep the order the same as in the script above)

step 2: switch focus to terminal:
ctrl+8

step 3: enter command obtained in step 1
Return

step 4: return focus to page/close message window and terminal so that you're back to the original page as it was before you launched the script. you'll need to alter this if you want to keep the terminal open or otherwise change the interface:
ctrl+7


you'll need to find the slots for the above commands and set the shortcut keys (the pop up will call ctrl primary), optionally leaving F4 and changing the ctrl+9 in the script above to match.


all the hunting and pecking is actually kind of an annoying ordeal, so i'm attaching my keybindings.conf file for you to swap with yours. unless you've customized many keyboard shortcuts in geany (all of which get overruled by whatever keyboard shortcuts are set in JWM and likely other windows managers as well), this will save you time. just name it keybindings.conf and place in /root/.config/geany, overwriting your own. the way it's set (i believe i misremembered the original use for F4--it's actually overwritten by ctrl+8 above--there was no shortcut for send selection/line to terminal), ctrl+7 toggles the message window open and closed (since the last use was the terminal, that's what will be visible/in focus), which is sometimes handy in itself. however, you'll still need the ctrl+8 combo to actually enter anything into it--the focus (cursor) will remain on the text document otherwise. when the message window is closed, the text document immediately becomes active again/ regains the focus and the blinking cursor.




Code:



[Bindings]
popup_gototagdefinition=
edit_transposeline=<Primary>t
edit_movelineup=
edit_movelinedown=
move_tableft=<Alt>Page_Up
move_tabright=<Alt>Page_Down
menu_new=<Primary>n
menu_open=<Primary>o
menu_open_selected=<Primary><Shift>o
menu_save=<Primary>s
menu_saveas=
menu_saveall=<Primary><Shift>s
menu_print=<Primary>p
menu_close=<Primary>w
menu_closeall=<Primary><Shift>w
menu_reloadfile=<Primary>r
file_openlasttab=
menu_quit=<Primary>q
menu_undo=<Primary>z
menu_redo=<Primary>y
edit_duplicateline=<Primary>d
edit_deleteline=<Primary>k
edit_deletelinetoend=<Primary><Shift>Delete
edit_scrolltoline=<Primary><Shift>l
edit_scrolllineup=<Alt>Up
edit_scrolllinedown=<Alt>Down
edit_completesnippet=Tab
move_snippetnextcursor=
edit_suppresssnippetcompletion=
popup_contextaction=
edit_autocomplete=<Primary>space
edit_calltip=<Primary><Shift>space
edit_macrolist=<Primary>Return
edit_wordpartcompletion=Tab
menu_cut=<Primary>x
menu_copy=<Primary>c
menu_paste=<Primary>v
edit_copyline=<Primary><Shift>c
edit_cutline=<Primary><Shift>x
menu_selectall=<Primary>a
edit_selectword=<Shift><Alt>w
edit_selectline=<Shift><Alt>l
edit_selectparagraph=<Shift><Alt>p
edit_selectwordpartleft=
edit_selectwordpartright=
edit_togglecase=<Primary><Alt>u
edit_commentlinetoggle=<Primary>e
edit_commentline=
edit_uncommentline=
edit_increaseindent=<Primary>i
edit_decreaseindent=<Primary>u
edit_increaseindentbyspace=
edit_decreaseindentbyspace=
edit_autoindent=
edit_sendtocmd1=<Primary>1
edit_sendtocmd2=<Primary>2
edit_sendtocmd3=<Primary>3
edit_sendtovte=<Primary>9
format_reflowparagraph=<Primary>j
edit_joinlines=
menu_insert_date=<Shift><Alt>d
edit_insertwhitespace=
edit_insertlinebefore=
edit_insertlineafter=
menu_preferences=<Primary><Alt>p
menu_pluginpreferences=
menu_find=<Primary>f
menu_findnext=<Primary>g
menu_findprevious=<Primary><Shift>g
menu_findnextsel=
menu_findprevsel=
menu_replace=<Primary>h
menu_findinfiles=<Primary><Shift>f
menu_nextmessage=
menu_previousmessage=
popup_findusage=<Primary><Shift>e
popup_finddocumentusage=<Primary><Shift>d
find_markall=<Primary><Shift>m
nav_back=<Alt>Left
nav_forward=<Alt>Right
menu_gotoline=<Primary>l
edit_gotomatchingbrace=<Primary>b
edit_togglemarker=<Primary>m
edit_gotonextmarker=<Primary>period
edit_gotopreviousmarker=<Primary>comma
popup_gototagdeclaration=<Primary><Shift>t
edit_gotolinestart=Home
edit_gotolineend=End
edit_gotolinestartvisual=<Alt>Home
edit_gotolineendvisual=<Alt>End
edit_prevwordstart=<Primary>slash
edit_nextwordstart=<Primary>backslash
menu_toggleall=
menu_fullscreen=F11
menu_messagewindow=<Primary>7
toggle_sidebar=
menu_zoomin=<Primary>plus
menu_zoomout=<Primary>minus
normal_size=<Primary>0
menu_linewrap=
menu_linebreak=
menu_clone=
menu_replacetabs=
menu_replacespaces=
menu_togglefold=
menu_foldall=
menu_unfoldall=
reloadtaglist=<Primary><Shift>r
remove_markers=
remove_error_indicators=
remove_markers_and_indicators=
project_new=
project_open=
project_properties=
project_close=
build_compile=F8
build_link=F9
build_make=<Shift>F9
build_makeowntarget=<Primary><Shift>F9
build_makeobject=<Shift>F8
build_nexterror=
build_previouserror=
build_run=F5
build_options=
menu_opencolorchooser=
menu_help=F1
switch_editor=F2
switch_search_bar=F7
switch_message_window=
switch_compiler=
switch_messages=
switch_scribble=F6
switch_vte=<Primary>8
switch_sidebar=
switch_sidebar_symbol_list=
switch_sidebar_doc_list=
switch_tableft=<Primary>Page_Up
switch_tabright=<Primary>Page_Down
switch_tablastused=<Primary>Tab
move_tabfirst=
move_tablast=

[addons]
focus_bookmark_list=
focus_tasks=
update_tasks=
xml_tagging=
Enclose_1=
Enclose_2=
Enclose_3=
Enclose_4=
Enclose_5=
Enclose_6=
Enclose_7=
Enclose_8=

[commander]
show_panel=

[file_browser]
focus_file_list=
focus_path_entry=
rename_object=
create_file=
create_dir=
rename_refresh=

[html_chars]
insert_html_chars=
replace_special_characters=
htmltoogle_toggle_plugin_status=

[spellcheck]
spell_check=
spell_toggle_typing=

[split_window]
split_horizontal=
split_vertical=
split_unsplit=


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


Joined: 07 Jan 2013
Posts: 930
Location: nyc

PostPosted: Mon 27 Apr 2015, 09:11    Post subject: improved method for grabbing exec commands  

Quote:
to launch the bulk of puppy's programs, you don't need the path, just the name, usually in lower case.

Code:

   
ls /usr/share/applications > /root/pupaps1; geany  /root/pupaps1


gives you most as a list opened in geany, but you'll need to ditch the .desktop part of the file names and the capitalization.

edit > select all > format > toggle case, and search > find and replace > [.desktop] [space, blank, or return all work] > whole document

and you be able to launch puppy's apps from menus that can be altered and expanded as you're using them.



a better way to get the exec commands, or to at least pick up those the other method may have missed:


Code:
cd  /usr/share/applications; grep Exec= *.desktop > /root/my-documents/Text/execs; geany /root/my-documents/Text/execs


^ build/rebuild and open the list


Code:
geany /root/my-documents/Text/execs


^open the list (you should probably rename the file being opened (and adjust the above line accordingly) since it may have older customizations and reorderings you don't want overwritten just for the sake of a few new relatively easily gotten exec commands here and there). add this to the vgt text file or add the path to it to the command that opens the vgt text file(s).


____



either of the following versions will give only the executable commands from the usr/share/applications folder's desktop files, stripping out title and other extraneous info (i.e. all lines in the output file will launch with no further changes):

Code:
cd  /usr/share/applications; grep Exec= *.desktop | grep -o 'Exec=.*' | cut -f2- -d'=' > /root/my-documents/Text/execs2; geany /root/my-documents/Text/execs2


Code:
grep Exec= *.desktop /usr/share/applications | grep -o 'Exec=.*' | cut -f2- -d'=' > /root/my-documents/Text/vtgapps; geany /root/my-documents/Text/vtgapps
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 494
Location: Oslo, Norway

PostPosted: Tue 28 Apr 2015, 22:15    Post subject:  

I don't intend to be mean to people who really do an effort to improve on an application, especially one that is found in most - if not all - puppys, but unless my memory plays tricks on me, we had an application that could do all these things - and much more - years ago, emacs... Cool

tallboy

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 930
Location: nyc

PostPosted: Wed 29 Apr 2015, 04:41    Post subject:  

tallboy wrote:
I don't intend to be mean to people who really do an effort to improve on an application, especially one that is found in most - if not all - puppys, but unless my memory plays tricks on me, we had an application that could do all these things - and much more - years ago, emacs... Cool

tallboy


i'm sure many text editors can be configured to do what geany does here. does emacs automatically strip the exec commands from the desktop files? i wouldn't be surprised to find it had a working line launcher by default--wasn't too involved to set up the shortcut keys regardless.

that you were even reminded of emacs is something i take as a compliment of sorts--this is just my attempt to make customizations of menus and tasks easier for newbies and general linux users, feeling somewhat between the two myself. my main exposure to linux is puppy and my main exposure to text editors is geany--i view vim and emacs as something for the elite hackers and programmers, while i'm still getting used to using the terminal and coming to terms with the idea that i like my geany layout better for word processing than my libreoffice layout. geany (which is light even as text editors go, from what i gather) is lighter and quicker than an office suite and i think about one day learning all or most of the text and document navigation/movement shortcuts it has. once upon a time i hated the mouse, and text editors are very keyboard oriented, something that still has a perhaps nostalgic appeal for me.

modifying this seems easier than finding a compatible version of emacs and configuring it similarly, or compiling the latest version, getting its plugins, etc.

which isn't to say i wouldn't give it a try if it or vim or vi became available. i probably wouldn't, but i might--one of them has some sort of file that records every change made to everything--sounds like it could be helpful in some ways. as i said, i'm taking a program you may or may not already have open and use to record notes or change your set up or write programs, plays, poetry, prose, codes, or scripts, and am giving a few tips that are a customizable menu/on how to customize a menu. so, no meanness taken or detected, but for what it's worth, i see comparisons with gexec or pRun plus maybe a little xpad more fitting than comparisons with other text editors, at least as far as my little tweak to the geany (and i guess jwm) interface/experience goes. it's sort of, "here's a place you can write stuff down. also, it's a terminal, which may be a somewhat new idea for you..." three years of using linux has made me more confident and comfortable with computers than twenty or so years as a windows users did. just trying to pass on some of what's made things a little easier and more pleasant for me.

anyway, it's mostly just a change-on-the-fly menu and a crib sheet for newbie friendly code. i add things as i find them, suggest others do the same. reorder for convenience, delete code as/if you commit it to memory (unless it's long).
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 494
Location: Oslo, Norway

PostPosted: Wed 29 Apr 2015, 23:43    Post subject:  

Puppus Dogfellow, I really respect the work you do with Geany!

One of the reasons I mentioned emacs, is that it demonstrates how easy it is to be trapped in the development of a super-editor. I don't use emacs much anymore, but if you take a look in the Debian repos, you will find an almost insanely high number of additional packages for emacs, all full of commands with their own keystrokes to do this or that - way too many to remember! Emacs can also tell you about it while you do something else, you choose the voice, there are not many tasks that emacs cannot do! BTW; I must mention my favorite command in emacs, that is missing in all other programs: DWIM - Do What I Mean! That should tell you something about the complexity in the mindset of the developers...
The same situation developed around Donald Knuth's wonderful typesetting sytem LaTex. There is almost no limit to the additions that others have made to the basic LaTex, the last time i looked, the whole Tex setup needed a DVD for download. 4 gigs, mostly just text! That is a lot of pages!
As for the office suites, they steadily grow, but they always compromize on some functions.

I am unfortunately just getting older - not wiser - and I find myself, with increasing frequency, having to read the user manuals for commands or programs I have used many times over the years, simply because they have grown out over all proportions.

User friendlyness in a small package is what I look for now, and it seems you are thinking along those lines, so please continue making your improvements to Geany. When I need them, I shall test them as they develop! Very Happy

One should always have in mind the basic thought behind the development of the commands for 'nixes; Do one thing, and do it well!
http://en.wikipedia.org/wiki/Unix_philosophy

tallboy

BTW, I use Geany and Xpad every single day.

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 930
Location: nyc

PostPosted: Mon 04 May 2015, 21:14    Post subject: NWP--The Nooby Word Processor
Subject description: (it's only a menu)
 

tallboy wrote:
Puppus Dogfellow, I really respect the work you do with Geany!

One of the reasons I mentioned emacs, is that it demonstrates how easy it is to be trapped in the development of a super-editor. I don't use emacs much anymore, but if you take a look in the Debian repos, you will find an almost insanely high number of additional packages for emacs, all full of commands with their own keystrokes to do this or that - way too many to remember! Emacs can also tell you about it while you do something else, you choose the voice, there are not many tasks that emacs cannot do! BTW; I must mention my favorite command in emacs, that is missing in all other programs: DWIM - Do What I Mean! That should tell you something about the complexity in the mindset of the developers...
The same situation developed around Donald Knuth's wonderful typesetting sytem LaTex. There is almost no limit to the additions that others have made to the basic LaTex, the last time i looked, the whole Tex setup needed a DVD for download. 4 gigs, mostly just text! That is a lot of pages!
As for the office suites, they steadily grow, but they always compromize on some functions.

I am unfortunately just getting older - not wiser - and I find myself, with increasing frequency, having to read the user manuals for commands or programs I have used many times over the years, simply because they have grown out over all proportions.

User friendlyness in a small package is what I look for now, and it seems you are thinking along those lines, so please continue making your improvements to Geany. When I need them, I shall test them as they develop! Very Happy

One should always have in mind the basic thought behind the development of the commands for 'nixes; Do one thing, and do it well!
http://en.wikipedia.org/wiki/Unix_philosophy

tallboy

BTW, I use Geany and Xpad every single day.


thanks for the kind words and background, tallboy. i guess i am trying to make it friendlier, but the user package is more puppy than geany as i see it. i'm no coder so things'd have to be small--i write scriptlets more than scripts, just little crutches and bread trails and the like. here you can see what (little) progress i've made making geany (and any other text processor--the menu will work on any active window that can receive text) into a word processor of sorts--i figured the final cementing of the document format can be done through google drive or some similar service. the windows manipulation scripts and word processing tools (really just html code at the moment) are something like 150 tiny scripts that do one dopey thing and one dopey thing only, so i think i'm on some similar line of thought with the greats Razz Wink. i really like the speed and tabs and shortcuts and--and i can see your point about getting lost in a supereditor. four gigs is a lot, but if you care to, you can try the meg or so of geany plug-ins/libraries i pulled off my machine. some of the add ins are cool--i like the tree browser, spell check, extend select (in theory--it can help with the paste and paste parts of the NWP menu. i haven't actually used it yet.)--there are a few others that also seem interesting. i tried downloading it from the PPM but it didn't work for me on any of four machines. nor did the debian packages i found. copying and moving the plugins and libraries (after compiling them in 5.5) to their proper places worked for me. i saw another poster asking for geany plugins, so maybe i'm not the only one who had difficulty with the official packages.

speaking of geany and xpad, there's http://crunchbanglinux.org/wiki/howto/sync_xpad, which to me seems needlessly complicated compared to just syncing through geany, but it's interesting nonetheless. i've got an xpad backup and wipe out solution if you'd like to test (those things tend to pile up, don't they?).


but, yes, simple and helpful are good goals.

on the topic of helpful (more for the vgt crib sheet):

Quote:


[i'd add text like the following to one of the documents/the document that opens when you call geany in this capacity]:

rox /mnt; xdotool key ctrl+b

rox /tmp; xdotool key ctrl+b Down Down Down Down Down Down Down Down

^quickly access your rox bookmarks. you can designate what folder you want to extend its bookmarks menu by adding a path after a space after the rox; you can position the select-highlight by adding (a series of) Down to the latter part of the line (without it, the position defaults to Add New Bookmark).

rox /mnt/home; xdotool key ctrl+b Up Up Up
^three up from last bookmark

rox /usr/share; xdotool key ctrl+b Down Down Right Down
^one down on the recently visited list

tips/reminders: escape will shut the list, ctrl+Home takes you to /root(~), and Backspace moves to parent folder--you don't really need a speed dial (designate by ctrl+0-9, access by 0-9) for / or ~ because of this (ctrl+Home followed by Backspace reaches / from any folder). call the bookmarks list with ctrl+b; left click and enter close the original, middle and right click open the bookmark as an additional folder. \ is the right click menu, / opens the path search bar at the bottom of the window.


geany /root/.bashrc /root/custombkmk1sc.txt /root/.jwmrc /etc/xdg/templates/_root_.jwmrc /root/.jwm/jwmrc-personal /root/.jwm/jwmrc-personal2 /root/.config/rox.sourceforge.net/ROX-Filer/Bookmarks.xml /root/.config/rox.sourceforge.net/ROX-Filer/Groups.xml /etc/xdg/templates/_root_.jwmrc /root/.gtk-bookmarks /root/Choices/ROX-Filer/PuppyPin3 /etc/X11/xorg.conf /root/.history /root/root9menu /root/root8menu /root/root7menu /root/root6menu /root/root5menu /root/root4menu /root/root2menu /root/root1menu /root/root0menu /root/.gexec_history /root/.pexec_history /root/my-documents/Text/vgtapps /root/scrap /root/notes /root/.jwmrc-tray /root/.config/geany/geany.conf /root/.config/geany/keybindings.conf /root/my-applications/bin/nwp.readme /root/my-documents/Text/nwp.2


^open a bunch of useful files in geany. this is the same group i used for the recent files list in the geany.config file i'm attaching. rename/replace yours to have spell check, tree browser, the virtual terminal, and the general layout seen in the pic in the first post. swap out the recents for your own to save yourself a potential inconvenience (look around line 150 or so for your document history).


to compile (from Barry K in another thread):


# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=i686-pc-linux-gnu
Or
# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=x86_64-pc-linux-gnu

But you should always run --help to find out all options:
# ./configure --help

A problem that often comes up with Quirky and many earlier pups is due to Xorg being in /usr/X11/R7. Here is a bunch of stuff that you can do prior to running configure:

export LIBS='-I/usr/X11R7/include'
export CPPFLAGS='-I/usr/X11R7/include'
export CFLAGS='-I/usr/X11R7/include'
export LDFLAGS='-L/usr/X11R7/lib'
export CPLUS_INCLUDE_PATH=/usr/X11R7/include
export C_INCLUDE_PATH=/usr/X11R7/include

...most often not needed, certainly not all of that.

(and then i guess:)
make
make install

___


[program_name] -h > /root/my-documents/Text/[program_help]; geany /root/my-documents/Text/[program_help]

or
[program_name] --help > /root/my-documents/Text/[program_help]; geany /root/my-documents/Text/[program_help]

^to make a help file of many if not most programs





my geany.conf:
Code:



[geany]
toolbar_visible=true
toolbar_icon_style=0
treeview_position=274
msgwindow_position=332
mru_length=50
long_line_column=79
long_line_color=#C2EBC2
beep_on_errors=true
treeview_symbol_visible=false
treeview_openfiles_visible=false
msgwindow_visible=false
use_folding=true
use_auto_indention=true
show_indent_guide=false
show_white_space=false
show_markers_margin=false
show_linenumber_margin=false
line_breaking=true
show_line_endings=false
fullscreen=false
tab_order_ltr=false
brace_match_ltgt=false
switch_msgwin_pages=true
auto_close_xml_tags=false
auto_complete_constructs=false
terminal_settings=
editor_font=Monospace 13
tagbar_font=DejaVu Sans Mono 16
msgwin_font=DejaVu Sans Ultra-Light 17
scribble_text=Type here what you want, use it as a notice/scratch board
geometry=4;4;1590;1154;0;
pref_editor_tab_width=4
pref_main_confirm_exit=false
pref_main_load_session=true
pref_main_save_winpos=true
pref_main_show_search=true
pref_main_show_goto=true
pref_editor_new_line=false
pref_editor_trail_space=false
pref_template_developer=root
pref_template_company=
pref_template_mail=root@LazY-Puppy-202-WS
pref_template_initial=r
pref_template_version=1.0
long_line_type=0
tab_pos_editor=1
tab_pos_msgwin=2
tab_pos_sidebar=2
sidebar_symbol_visible=false
sidebar_openfiles_visible=true
sidebar_visible=true
use_indicators=true
pref_toolbar_show=true
pref_toolbar_show_search=true
pref_toolbar_show_goto=true
pref_toolbar_show_zoom=false
pref_toolbar_show_undo=false
pref_toolbar_show_compile=true
pref_toolbar_show_colour=true
pref_toolbar_show_fileops=true
pref_toolbar_icon_style=0
pref_toolbar_icon_size=1
pref_editor_replace_tabs=false
pref_editor_default_encoding=ISO-8859-1
default_open_path=/root/my-documents/Text
cmdline_new_files=true
notebook_double_click_hides_widgets=false
sidebar_pos=0
highlighting_invert_all=false
pref_main_suppress_search_dialogs=false
pref_main_search_use_current_word=true
check_detect_indent=false
use_tab_to_indent=true
indent_mode=2
indent_type=1
virtualspace=1
autocomplete_doc_words=false
completion_drops_rest_of_word=false
autocompletion_max_entries=30
color_scheme=
disk_check_timeout=30
show_editor_scrollbars=true
use_gtk_word_boundaries=true
complete_snippets_whilst_editing=false
show_symbol_list_expanders=true
compiler_tab_autoscroll=true
allow_always_save=false
use_safe_file_saving=false
indent_hard_tab_width=8
documents_show_paths=true
sidebar_page=3
pref_main_project_session=true
pref_main_project_file_in_basedir=false
pref_main_suppress_status_messages=false
auto_focus=false
show_notebook_tabs=true
show_tab_cross=true
tab_order_beside=false
msgwin_status_visible=true
msgwin_compiler_visible=true
msgwin_messages_visible=true
msgwin_scribble_visible=true
use_native_windows_dialogs=false
long_line_enabled=true
symbolcompletion_max_height=10
symbolcompletion_min_chars=4
unfold_all_children=false
line_wrapping=true
complete_snippets=true
auto_complete_symbols=true
pref_editor_disable_dnd=false
pref_editor_smart_home_key=false
pref_editor_newline_strip=false
line_break_column=138
auto_continue_multiline=true
comment_toggle_mark=~
scroll_stop_at_last_line=true
autoclose_chars=0
pref_editor_default_new_encoding=ISO-8859-1
pref_editor_default_open_encoding=None
default_eol_character=2
pref_toolbar_append_to_menu=true
pref_toolbar_use_gtk_default_style=true
pref_toolbar_use_gtk_default_icon=false
pref_template_year=%Y
pref_template_date=%Y-%m-%d
pref_template_datetime=%d.%m.%Y %H:%M:%S %Z
context_action_cmd=
statusbar_visible=true
scribble_pos=57
custom_date_format=
pref_editor_default_new_encoding=UTF-8
editor_font=Nimbus Roman No9 L 15
show_linenumber_margin=true
gio_unsafe_save_backup=false
find_selection_type=0
statusbar_template=
new_document_after_close=false
pref_editor_ensure_convert_line_endings=false
tab_close_switch_to_mru=false
detect_indent_width=false
autocompletion_update_freq=250
use_atomic_file_saving=false
use_gio_unsafe_file_saving=true
extract_filetype_regex=-\\*-\\s*([^\\s]+)\\s*-\\*-
msgwin_orientation=1

[build]
build_make_cmd=/usr/bin/make
build_term_cmd=/usr/bin/xterm
build_browser_cmd=/usr/local/bin/defaultbrowser

[files]
recent_files=recent_files=/root/.bashrc;/root/custombkmk1sc.txt;/root/.jwmrc;/etc/xdg/templates/_root_.jwmrc;/root/.jwm/jwmrc-personal;/root/.jwm/jwmrc-personal2;/root/.config/rox.sourceforge.net/ROX-Filer/Bookmarks.xml;/root/.config/rox.sourceforge.net/ROX-Filer/Groups.xml;/etc/xdg/templates/_root_.jwmrc;/root/.gtk-bookmarks;/root/Choices/ROX-Filer/PuppyPin3;/etc/X11/xorg.conf;/root/.history;/root/root9menu;/root/root8menu;/root/root7menu;/root/root6menu;/root/root5menu;/root/root4menu;/root/root2menu;/root/root1menu;/root/root0menu;/root/.gexec_history;/root/.pexec_history;/root/my-documents/Text/vgtapps;/root/scrap;/root/notes;/root/.jwmrc-tray;/root/.config/geany/geany.conf;/root/.config/geany/keybindings.conf;/root/my-applications/bin/nwp.readme;/root/my-documents/Text/nwp.2;
recent_projects=
current_page=0
FILE_NAME_0=11;Sh;0;EUTF-8;1;1;1;%2Fmnt%2Fmmcblk0p2%2FDropbox%2FMMMMMMMMM%2FYoutube-dl_Gui.;0;4
FILE_NAME_1=13134;None;0;EUTF-8;1;1;1;%2Froot%2Fnwp;0;4
FILE_NAME_2=660;Sh;0;EUTF-8;1;1;1;%2Froot%2Fmy-applications%2Fbin%2F5copies;0;4
FILE_NAME_3=46;Sh;0;EUTF-8;1;1;1;%2Froot%2Fmy-applications%2Fbin%2F5copiesDir;0;4
FILE_NAME_4=662;Sh;0;EUTF-8;1;1;1;%2Froot%2Fmy-applications%2Fbin%2F5cop;0;4
FILE_NAME_5=0;None;0;EUTF-8;1;1;1;%2Froot%2F.config%2Fgeany%2Ftemplates%2Ftemplates.README;0;4
FILE_NAME_6=0;XML;0;EUTF-8;1;1;1;%2Froot%2F.config%2Fgeany%2Fui_toolbar.xml;0;4
FILE_NAME_7=0;Conf;0;EUTF-8;1;1;1;%2Froot%2F.config%2Fgeany%2Fkeybindings.conf;0;4
FILE_NAME_8=0;None;0;EUTF-8;1;1;1;%2Fmnt%2Fmmcblk0p2%2FDropbox%2FMMMMMMMMM%2Fsingmon2;0;4
FILE_NAME_9=7963;None;0;EUTF-8;1;1;1;%2Froot%2Fdubmon2;0;4
FILE_NAME_10=68;None;0;EUTF-8;1;1;1;%2Fmnt%2Fmmcblk0p2%2FDropbox%2FMMMMMMMMM%2FGeany%20Keyboard%20shortcuts;0;4
FILE_NAME_11=0;None;0;EUTF-8;1;1;1;%2Ftmp%2Fgis_3U6QWX.;0;4
FILE_NAME_12=0;None;0;EUTF-8;1;1;1;%2Fmnt%2Fmmcblk0p2%2FDropbox%2Ffeb%2Fcldsvc;0;4
FILE_NAME_13=79075;None;0;EUTF-8;1;1;1;%2Fmnt%2Fmmcblk0p2%2FDropbox%2FMMMMMMMMM%2Fsc3.;0;4
FILE_NAME_14=0;Conf;0;EUTF-8;1;1;1;%2Fmnt%2Fmmcblk0p2%2FDropbox%2FMMMMMMMMM%2Fkeybindings.conf;0;4
FILE_NAME_15=0;XML;0;EUTF-8;1;1;1;%2Fetc%2Fxdg%2Ftemplates%2F_root_.jwmrc;0;4
FILE_NAME_16=0;None;0;EUTF-8;1;1;1;%2Froot%2Fgeany%20tweaks2;0;4
FILE_NAME_17=68;None;0;EUTF-8;1;1;1;%2Froot%2Fgeany%20tweaks3;0;4
FILE_NAME_18=0;Conf;0;EUTF-8;1;1;1;%2Froot%2F.config%2Fgeany%2Fgeany.conf;0;4
FILE_NAME_19=787;None;0;EUTF-8;1;1;1;%2Froot%2Fmy-applications%2Fbin%2Fnwp.readme;0;4
FILE_NAME_20=12144;None;0;EUTF-8;1;1;1;%2Froot%2Fnwp4162;0;4
FILE_NAME_21=12944;None;0;EUTF-8;1;1;1;%2Froot%2Fnwp4161;0;4
FILE_NAME_22=9472;None;0;EUTF-8;1;1;1;%2Fmnt%2Fmmcblk0p2%2FDropbox%2Ffeb%2F%20apophenianDunning–Kruger%20effect;0;4
FILE_NAME_23=22835;XML;0;EUTF-8;1;1;1;%2Froot%2Froot0menu;0;4
FILE_NAME_24=288;XML;0;EUTF-8;1;1;1;%2Froot%2Froot1menu;0;4
FILE_NAME_25=28394;XML;0;EUTF-8;1;1;1;%2Froot%2Froot2menu;0;4
FILE_NAME_26=17393;XML;0;EUTF-8;1;1;1;%2Froot%2Froot4menu;0;4
FILE_NAME_27=23172;XML;0;EUTF-8;1;1;1;%2Froot%2Froot5menu;0;4
FILE_NAME_28=9707;XML;0;EUTF-8;1;1;1;%2Froot%2Froot6menu;0;4
FILE_NAME_29=12303;XML;0;EUTF-8;1;1;1;%2Froot%2Froot7menu;0;4
FILE_NAME_30=17732;XML;0;EUTF-8;1;1;1;%2Froot%2Froot8menu;0;4
FILE_NAME_31=11255;XML;0;EUTF-8;1;1;1;%2Froot%2Froot9menu;0;4
FILE_NAME_32=0;None;0;EUTF-8;1;1;1;%2Froot%2Fnwp415;0;4
FILE_NAME_33=0;None;0;EUTF-8;1;1;1;%2Fmnt%2Fmmcblk0p2%2FDropbox%2FMMMMMMMMM%2Findexing%20codes%20by%20musher0;0;4

[tools]
make_cmd=
term_cmd=/usr/bin/xterm -e bash -c
browser_cmd=/usr/local/bin/defaultbrowser
print_cmd=/usr/bin/lpr %f
grep_cmd=/bin/grep
terminal_cmd=/usr/bin/xterm -e bash -c -e "/bin/sh %c"

[search]
pref_search_current_file_dir=true
find_all_expanded=false
replace_all_expanded=false
position_find_x=566
position_find_y=505
position_replace_x=-1
position_replace_y=-1
position_fif_x=-1
position_fif_y=-1
fif_mode=0
fif_extra_options=
fif_case_sensitive=true
fif_match_whole_word=false
fif_invert_results=false
fif_recursive=false
fif_use_extra_options=false
fif_regexp=false
fif_files=
fif_use_files=false
pref_search_hide_find_dialog=false
pref_search_always_wrap=false
fif_files_mode=0
find_regexp=false
find_case_sensitive=false
find_escape_sequences=false
find_match_whole_word=false
find_match_word_start=false
find_close_dialog=true
replace_regexp=false
replace_case_sensitive=false
replace_escape_sequences=false
replace_match_whole_word=false
replace_match_word_start=false
replace_search_backwards=false
replace_close_dialog=true

[plugins]
load_plugins=true
custom_plugin_path=
active_plugins=/usr/lib/geany/addons.so;/usr/lib/geany/commander.so;/usr/lib/geany/export.so;/usr/lib/geany/filebrowser.so;/usr/lib/geany/htmlchars.so;/usr/lib/geany/geanyminiscript.so;/usr/lib/geany/geanynumberedbookmarks.so;/usr/lib/geany/saveactions.so;/usr/lib/geany/spellcheck.so;/usr/lib/geany/splitwindow.so;/usr/lib/geany/treebrowser.so;

[printing]
print_cmd=/usr/bin/lpr %f
use_gtk_printing=true
print_line_numbers=true
print_page_numbers=true
print_page_header=true
page_header_basename=false
page_header_datefmt=%c

[VTE]
load_vte=true
emulation=xterm
send_selection_unsafe=false
font=Monospace 10
scroll_on_key=true
scroll_on_out=true
enable_bash_keys=false
ignore_menu_bar_accel=false
follow_path=false
run_in_vte=false
skip_run_script=false
cursor_blinks=false
scrollback_lines=500
shell=/bin/sh
colour_fore=#FFFFFF
colour_back=#000000
last_dir=/root
send_cmd_prefix=
image=

[project]
session_file=
project_file_path=/root/projects

[build-menu]
number_ft_menu_items=0
number_non_ft_menu_items=0
number_exec_menu_items=0


i was trying out the macro and custom command functions and decided to instead put most of the features on the window manager--more versatile that way and you don't have to remember new sets of shortcuts. the menus/submenus plus the terminal shortcuts discussed here and here eat fewer keys and allow more control, i think.

tallboy, you're more than welcome to help me fork geany. think you can hack its menus? Very Happy


bonus: make the geany pileup code less useless by adding nine jwm root menus
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.2845s ][ Queries: 11 (0.0040s) ][ GZIP on ]