You are here:

The toolbar

 


Newcreate a new file
Openopen an existing file
Savesave the edited file
Save Asgive the edited file a name where to save it
Findfind words or regular expressions in the edited file
Runruns the main.7th file
Compilecompiles data structures in the dictionary
Evalevaluates the edited program and compiles colon definitions into the dictionary
[no. of characters]
Undoundo Your last input
Redoredo 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

 

  1. the find menu
  2. [☼]  search regular expression
  3. [A,a]  ignore upper- and lowercase
  4. word/pattern to find input field
  5. [˄]  go to the previous search term occurence
  6. [˅]  go to the next search term occurence
  7. [↔]  show replace menu
  8. replace with word input field
  9. [prev…]  replace the previous search term occurence
  10. [next…]  replace the next search term occurence
  11. replace all search term occurences
  12. no. of occurrence
  13. wrap around while finding/replacing


Replace


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

cd

java -Xms300m -Xmx300m -jar /home/pi/Desktop/Seventh.jar -f $1 &

 


7th and the 7th logo are trademarks of 7th Stone Software GmbH. All other product or service names are the property of their respective owners.