Author |
Message |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15554 Location: Paradox Realm
|
Posted: Tue 19 Oct 2010, 09:15 Post subject:
textroom |
|
We have one full page text editor (I put it in Tmxxine twinkle)
Maybe this is better? Tried installing in 5.2 pre release as a deb but missing dependencies . . .
http://code.google.com/p/textroom/
http://code.google.com/p/textroom/downloads/list
_________________ Puppy on Raspberry Pi Release Candidate
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html 
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 935
|
Posted: Wed 20 Oct 2010, 10:11 Post subject:
|
|
To: The Maine Lobster
Subj: In House Use
No need to outsource. Now you can have a 1 room text editor in seconds! See below for the 1den production of... Proom.
Code: | #!/bin/sh
echo 'style "proom" {
font_name = "DejaVu Sans 12"
bg[NORMAL] = "black"
base[NORMAL] = "black"
text[NORMAL] = "green"
}
class "*t*" style "proom"' > /tmp/gtkrc
export GTK2_RC_FILES=/tmp/gtkrc:/root/.gtkrc-2.0
export Proom='
<window title="Proom" width-request="1250" height-request="750" decorated="false">
<edit wrap-mode="1" left-margin="300" right-margin="300"><variable>EDIT</variable></edit>
<action signal="key-press-event">echo "$EDIT" >/root/mystuff</action>
</window>'
gtkdialog3 -p Proom
|
Just hit Alt-F4 to save and quit.
Cheers,
s
(Be sure to air out Proom periodically)
|
Back to top
|
|
 |
dejan555

Joined: 30 Nov 2008 Posts: 2817 Location: Montenegro
|
Posted: Wed 20 Oct 2010, 10:25 Post subject:
|
|
This actually looks kinda cool
Not exactly my type of editor but fun to play with, thanks.
_________________ puppy.b0x.me stuff mirrored HERE or HERE
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15554 Location: Paradox Realm
|
Posted: Wed 20 Oct 2010, 11:19 Post subject:
|
|
Quote: | No need to outsource. |
Cool?
It makes Antartica look tropical (may soon happen)
This is why I love Puppy
Seaside has done what other distros require
massive resources to achieve.
My sister has started a writing course with the OU
this will be ideal
_________________ Puppy on Raspberry Pi Release Candidate
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html 
|
Back to top
|
|
 |
aragon
Joined: 15 Oct 2007 Posts: 1698 Location: Germany
|
Posted: Thu 21 Oct 2010, 13:56 Post subject:
|
|
Now if you do that one with a file open dialog and a save dialog that does not destoy the previous notes, it would be very nice...
Aragon
_________________ PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 935
|
Posted: Thu 21 Oct 2010, 16:40 Post subject:
|
|
aragon wrote: | Now if you do that one with a file open dialog and a save dialog that does not destoy the previous notes, it would be very nice...
Aragon |
Aragon,
Perhaps... yet out of the concept intended. By adding buttons and toolbars, it becomes just another editor when plenty of excellent and far better ones abound. Change the background, foreground, margins, run maximized and that's almost it.
The allure of this "black hole" background with a center of "soothing green text" is supposedly to draw out a writer's muse in allowing a gush of ideas and words to come forth in a continous stream, without any distractions. Then, after the burst has been fulfilled, that gem of information would be edited in a REAL editor.
Does that actually work better for writers?
I don't know.... you'll have to ask Lobster.
Regards,
s
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 935
|
Posted: Sun 24 Oct 2010, 20:11 Post subject:
|
|
Just to follow-on, here's a way to express and then impress.
- Get all those great thought streams out in a "Pomodoro" concentrated burst in a soft green environment.
- Hit Alt-F4 and your gems are now appearing in Geany - ready for a wordly messaging.
Code: |
#!/bin/sh
echo 'style "proom" {
font_name = "DejaVu Sans 12"
bg[NORMAL] = "black"
base[NORMAL] = "black"
text[NORMAL] = "green"
}
class "*t*" style "proom"' > /tmp/gtkrc
export GTK2_RC_FILES=/tmp/gtkrc:/root/.gtkrc-2.0
export Proom='
<window title="Proom" width-request="1250" height-request="750" decorated="false">
<edit wrap-mode="1" left-margin="300" right-margin="300"><variable>EDIT</variable></edit>
<action signal="delete-event">echo "$EDIT" >/root/mystuff</action>
<action signal="delete-event">geany /root/mystuff</action>
</window>'
gtkdialog3 -p Proom
|
This program gets 100WPM on a pound of thought....
Cheers,
s
|
Back to top
|
|
 |
scsijon
Joined: 23 May 2007 Posts: 1536 Location: the australian mallee
|
Posted: Sun 07 Nov 2010, 19:22 Post subject:
|
|
lobster, anyone?
has anyone repackaged this as a .pet yet, if not i'll have a go at a complete .pet (inc dependancies) while waiting for the programmers of another package i'm working with to sort out a problem I found for me in their next release beta.
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15554 Location: Paradox Realm
|
Posted: Sun 07 Nov 2010, 21:23 Post subject:
|
|
scsijon a pet would be great.
Such zero distraction systems do work.
_________________ Puppy on Raspberry Pi Release Candidate
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html 
|
Back to top
|
|
 |
scsijon
Joined: 23 May 2007 Posts: 1536 Location: the australian mallee
|
Posted: Tue 09 Nov 2010, 06:50 Post subject:
|
|
consider it under way
|
Back to top
|
|
 |
Taavi
Joined: 10 Mar 2006 Posts: 146 Location: Suomi, Finland
|
Posted: Sat 15 Oct 2011, 18:31 Post subject:
|
|
This is just the best writing app I have ever seen. As doing some kind of writings myself I share seaside's thoughts about the editors. When you write you just write and anything else is unnecessary. Usually there is so much on the screen to ruin your concentration. And it is so easy to start playing with your superdeluxewordprocessor and then you just notice that all those undying words you had in mind have disappeared for ever.
I modified it a little. This version has hotkey alt+m to save text and clear the screen. It saves your memorable lines to a directory named by weeknumber in the file named with time stamp ymdHMS. And now you just keep on going, empty your mind totally, move around from subject to an other, alt+m and no need to stop.
I have
Code: |
<Group>
<Class>teksturi</Class>
<Option>nolist</Option>
<Option>noborder</Option>
<Option>layer:12</Option>
</Group>
|
in /etc/xdg/templates/_root_.jwmrc to get real full screen.
Code: |
#!/bin/sh
echo 'style "proom" {
font_name = "DejaVu Sans 14"
bg[NORMAL] = "black"
base[NORMAL] = "black"
text[NORMAL] = "green"
}
class "*t*" style "proom"' > /tmp/gtkrc
export GTK2_RC_FILES=/tmp/gtkrc
mkdir -p /mnt/home/texts/$(date +%W)
export Proom='
<window title="Proom" width-request="1250" height-request="750" decorated="false">
<hbox>
<hbox visible="false">
<button use-underline="true">
<label>_Muistiin</label>
<action>echo "$EDIT" >/mnt/home/texts/$(date +%W)/$(date +%y%m%d%H%M%S)</action>
<action>clear:EDIT</action>
</button>
</hbox>
<edit wrap-mode="2" left-margin="250" right-margin="250" cursor-visible="false"><variable>EDIT</variable></edit>
</hbox>
</window>'
gtkdialog3 --class=teksturi -p Proom
|
And then you have numbered directories stuffed with files which names don't tell you nothing.
For this situation I tried to build a browser. It gets six first word of every file for the selector so you get a hint of what treasures are hiding there. It browses those numbered directories. And it doesn't look good.
Notice here that I'm not a professonal in scripting and with gtkdialog. I guess I've done things funny and wrong ways. But I throw it here, so someone more professonal maybe take a look at it and clears and fixes this. And I will learn again something new. But I like this idea, yes.
Code: |
#!/bin/bash
#Function to open texts in geany. It uses list formed: Six first words of the file {/path/to/file}
avaa () {
AUKI="$( grep -i "$TEKSTI" /tmp/txi/tlista | sed 's/.*{\(.*\)}.*/\1/')"
geany "$AUKI" &
}
export -f avaa
#Function to make lists for file selector.
selaa () {
cat /tmp/txi/"$NRO"lista > /tmp/txi/lista
}
export -f selaa
mkdir /tmp/txi
touch /tmp/txi/lista
#Collect data for selectors, hlista for directory listing, tlista for function avaa, and "${KANSIO}"lista for file selector. The last one is named with (week)number prefix to get own file list for each directory. So the selaa function in directory selector cats the proper list for the file selector.
for dir in /mnt/home/texts/*
do
KANSIO=$(basename $dir)
echo "${KANSIO}" >> /tmp/txi/hlista
for file in /mnt/home/texts/"${KANSIO}"/*
do
NIMI="$(awk 'NR==1 {print $1,$2,$3,$4,$5,$6}' ${file} | sed 's/[ \t]*$//')"
POLKU=$(readlink -f "$file")
echo "${NIMI} {${POLKU}}" >> /tmp/txi/tlista
echo "${NIMI}" >> /tmp/txi/"${KANSIO}"lista
done
done
export TEKSTIT='
<window title="Tekstit" width-request="350" height-request="540">
<hbox>
<hbox width-request="40" height-request="530">
<table>
<label>vko</label>
<variable>NRO</variable>
<input>cat /tmp/txi/hlista</input>
<action>selaa</action>
<action>refresh:TEKSTI</action>
</table>
</hbox>
<hbox width-request="300" height-request="530">
<tree>
<label>tekstit</label>
<variable>"TEKSTI"</variable>
<input>cat /tmp/txi/lista</input>
<action>avaa</action>
<action>refresh:TEKSTI</action>
</tree>
</hbox>
</hbox>
</window>'
#Place the box in upper right corner of the screen so geany have room to open.
gtkdialog3 -p TEKSTIT --geometry +1+1
#clearing
unset TEKSTIT
unset -f avaa
unset -f selaa
rm -r /tmp/txi
|
Oops, if you want to try these remember to change needed directories, I have all my files in /mnt/home/
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15554 Location: Paradox Realm
|
Posted: Sat 15 Oct 2011, 19:02 Post subject:
|
|
Quote: | consider it under way |
what happened? New version to pet
thanks for improvements
_________________ Puppy on Raspberry Pi Release Candidate
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html 
|
Back to top
|
|
 |
Taavi
Joined: 10 Mar 2006 Posts: 146 Location: Suomi, Finland
|
Posted: Sat 15 Oct 2011, 19:19 Post subject:
|
|
Back to the roots
|
Back to top
|
|
 |
scsijon
Joined: 23 May 2007 Posts: 1536 Location: the australian mallee
|
Posted: Sun 16 Oct 2011, 21:37 Post subject:
|
|
Lobster wrote: | Quote: | consider it under way |
what happened? New version to pet
thanks for improvements  |
Last was done and sent to someone for uploading/adding to ppm, sorry don't remember who ?lobster.
I will chase new version source this week (0.8.2) and find my building notes from last time to see what the problems were before building.
I can't promise immediate action as i'm at a problem fix stage for the first public alpha for qtpuppy, but it shouldn't be more than a week, i'll put them on my website when completed. If serious problems arrive it may be a further week
versions will be wanted for?: wary52, lucid528, qtpuppy, ????
regards
edited today:
Uh folks, sorry but I won't be building the latest version in a hurry, the number of basic puppy packages that will require updating for this thing to run is rediculous, to start with there is only one dependancy out of eleven that we have in our tree that it considers up to date, let alone a core package or three.
It will remain on my todo list, just not this month!
regards
scsijon
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 935
|
Posted: Sun 23 Oct 2011, 10:57 Post subject:
Proom-0.4 Subject description: Writing environment |
|
********************
To puppy writers....
I've created a Proom-0.4 pet here with ideas from Taavi -
http://murga-linux.com/puppy/viewtopic.php?p=575668#575668
It should run on any puppy.
Cheers,
s
|
Back to top
|
|
 |
|