Chouyu

[info]chouyu_31


The ravings of a sane person.

Sometimes filled with information.


About writing my own editor...
Chouyu
[info]chouyu_31
*laugh* Yeah, I did it, I wrote my own editor.
I can:
create new files
open old files
save the currently viewed file (multiple open files at once...)
save the currently viewed file as something else
save all currently opened files (returning you to where you were before, and checking for unnamed files)
close the currently viewed file (checking to see if it has been modified)
exit the program (first by closing all viewed files to check to see if there have been any modifications, a single cancel will stop closing)

Right now I'm using a notebook interface, but soon I will be adding in a couple controls on the left side. One will include a file explorer, which double clicking on will open a file in a new tab (if it is not already opened).
It will also have a list on the left of the 20 most recently opened files in alphabetical order.

hot-keys:
ctrl-n (new file)
ctrl-o (open file)
ctrl-s (save file)
ctrl-q (close file)

In about 20 minutes I could add search and replace.

Yes, [info]discoflamingo, if my powers were for good, big things could be done in this world. It has taken me just a couple hours to do this, and most of it was getting the colors for syntax highlighting the way I want it. Oh yeah, I forgot to mention, it does syntax highlighting for all the languages that wxStyledTextCtrl supports. Rock on with wxPython.
Tags:

In 24 hours...
Chouyu
[info]chouyu_31
I wrote an editor. Not just any editor, but MY editor.
Features:
new document in new tab     (ctrl-n)
open document in new tab    (ctrl-o)
save current document       (ctrl-s)
save as...(save document as something else)
save all  (save all open documents)
close the current tab   (ctrl-q)
exit

find    (ctrl-f) (doesn't do reverse searches, I didn't want
                 to have to reverse the text to search
                 in reverse order, ick)
find/replace    (ctrl-r)
Both support the standard 'enter text you want to find'
as well as using python-style string via "a string" or 'a string'
so that you can search '\r\n' for a windows CRLF pair.

cut     (ctrl-x)
copy    (ctrl-c)
paste   (ctrl-v)
undo    (ctrl-z)
redo    (ctrl-y)

Zooming in      (ctrl-+ or ctrl-b)
Zooming out     (ctrl-- or ctrl-alt-b)

switch to the tab at left       (ctrl-, (the same key as <))
switch to the tab at right      (ctrl-. (the same key as >))
move the current tab to the left one (ctrl-alt-, (the same key as <))
move the current tab to the right one(ctrl-alt-. (the same key as >))

indent the current line/selected lines 4 more spaces (ctrl-])
dedent the current line/selected lines 4 less spaces (ctrl-[)

scroll document down one line without changing cursor position (ctrl-)
scroll document up one line without changing cursor position (ctrl-)

Drag-and-Drop support for text (no files yet)

Style support for the following file types:
Python
XML
HTML
C/C++
text

If you want to change the formatting style of your document
(syntax highlighting), there is a style menu that will do
it on a currently open document.


It doesn't have the tab on the left side with open files and such, but it's got so many damn good keyboard shortcuts, I don't think I'll need it. I may add it later.

screenshot )

You'll notice the sparse menu...I'm going to add in a 'help', an 'edit' and change the 'style' to 'format'.

Yeah...I should probably add some sort of preferences so that people can change behavior when they want to...but that's later. I'll release a version this weekend without user-changable settings (woo, builtins *smile*)

I hope everyone has a good 4th of July weekend.
Tags: