|New||create a new file|
|Open||open an existing file|
|Save||save the edited file|
|Save As||give the edited file a name where to save it|
|Find||find words or regular expressions in the edited file|
|Run||runs the main.7th file|
|Compile||compiles data structures in the dictionary|
|Eval||evaluates the edited program and compiles colon definitions into the dictionary|
|[no. of characters]|
|Undo||undo Your last input|
|Redo||redo Your last input|
|[changed indicator]||red: file was changed|
On startup of the 7th IDE at least two windows will open. The one with the toolbar is the editor.
If You are working with files that have the extension .7th a code beautifier handles the correct identation of the program lines and control words are highlited in magenta.
Of course You can edit any kind of text files. Unlike other editiors You are not forced to give an entered program or entered text a fliename at once, before closing the 7th editor. You get the last file You had created on re-entering the editor.
Editor keyboard shortcuts
|Ctrl + D||delete the current line – that is the line with the cursor in it|
|Ctrl + I||corrct the indentation of the current line or of the selected lines|
|[Find]||show the find menu|
|[A,a]||ignore upper- and lowercase|
|Ctrl + K or [˅]||go to the next search term occurence|
|Ctrl + Shift + K or [˄]||go to the previous search term occurence|
|[↔]||show replace menu|
|Ctrl + K or [next…]||replace the next search term occurence|
|Ctrl + Shift + K or [prev…]||replace the previous search term occurence|
|[☼]||a regular expression can be entered as search term|
The find menu
- the find menu
- [☼] search regular expression
- [A,a] ignore upper- and lowercase
- word/pattern to find input field
- [˄] go to the previous search term occurence
- [˅] go to the next search term occurence
- [↔] show replace menu
- replace with word input field
- [prev…] replace the previous search term occurence
- [next…] replace the next search term occurence
- replace all search term occurences
- no. of occurrence
- wrap around while finding/replacing
With the 7th editor a lot more than the usual simple text replacement is possible.
In the present example we will surround each text with quotes.
To achieve this You can enter a regular expression to match the text eg. with ([a-z\-T]+(\x20[a-z]+)?) (button [☼] must be down)
In short the regular expression does the following:
[a-z\-T]+ find all words with at least one letter containing a-z, the hyphen and T (for the T-shirt). The hyphen is a functional symbol in regular expressions and must be escaped therefore.
(\x20[a-z]+) for the remaining text consisting only of small letters a-z following a blank (like suntan cream)
? matches only if there is a text
coding the blank as \x20 is easier readable than a blank character
To get the matched text into quotes use: "$1" where $1 ist substituted with the matching text of the 1. brace level.
7th on a Raspberry Pi
The use of the 7th editor is much more comfortably than those of the command-line editors. And CTRL-C / CTRL-V (cut and paste) works between computers while accessing remotely.
To call the editor with sev ˂optionally a filename here˃
copy Seventh.jar to Desktop and create the file /usr/bin/sev containing
java -Xms300m -Xmx300m -jar /home/pi/Desktop/Seventh.jar -f $1 &