Difference between revisions of "Gedit-Text-Editor/C2/Common-Edit-Functions/English"
(Created page with "'''Title of script''':<span style="color:#000000;">''' Common Edit Functions'''</span> <div style="color:#000000;">'''Author: Nirmala Venkat'''</div> '''Keywords:''' '''Cut,...") |
Nancyvarkey (Talk | contribs) |
||
(One intermediate revision by one other user not shown) | |||
Line 30: | Line 30: | ||
| style="border:1pt solid #000000;padding:0.097cm;" | To record this tutorial, I am using: | | style="border:1pt solid #000000;padding:0.097cm;" | To record this tutorial, I am using: | ||
* <div style="margin-left:0cm;margin-right:0cm;">'''Ubuntu Linux '''14.04 operating system</div> | * <div style="margin-left:0cm;margin-right:0cm;">'''Ubuntu Linux '''14.04 operating system</div> | ||
− | * <div style="margin-left:0cm;margin-right:0cm;">'''gedit''' 3. | + | * <div style="margin-left:0cm;margin-right:0cm;">'''gedit''' 3.10</div> |
|- | |- | ||
| style="border:1pt solid #000000;padding:0.097cm;" | Slide 4: | | style="border:1pt solid #000000;padding:0.097cm;" | Slide 4: | ||
Line 37: | Line 37: | ||
| style="border:1pt solid #000000;padding:0.097cm;" | To follow this tutorial, you should have working knowledge of any operating system. | | style="border:1pt solid #000000;padding:0.097cm;" | To follow this tutorial, you should have working knowledge of any operating system. | ||
|- | |- | ||
− | | style="border:1pt solid #000000;padding:0.097cm;" | | + | | style="border:1pt solid #000000;padding:0.097cm;" | Open the''' gedit''' |
| style="border:1pt solid #000000;padding:0.097cm;" | Let's open the''' gedit Text editor.''' | | style="border:1pt solid #000000;padding:0.097cm;" | Let's open the''' gedit Text editor.''' | ||
|- | |- | ||
− | | style="border:1pt solid #000000;padding:0.097cm;" | | + | | style="border:1pt solid #000000;padding:0.097cm;" | Open ''' Students.txt''' file |
| style="border:1pt solid #000000;padding:0.097cm;" | Now open the file''' Students.txt''' which we created earlier. | | style="border:1pt solid #000000;padding:0.097cm;" | Now open the file''' Students.txt''' which we created earlier. | ||
|- | |- | ||
− | | style="border:1pt solid #000000;padding:0.097cm;" | Click the shortcut OPEN icon | + | | style="border:1pt solid #000000;padding:0.097cm;" | Click the shortcut '''OPEN''' icon |
| style="border:1pt solid #000000;padding:0.097cm;" | Let’s do so by clicking the icon in the toolbar with the icon labelled open. | | style="border:1pt solid #000000;padding:0.097cm;" | Let’s do so by clicking the icon in the toolbar with the icon labelled open. | ||
This is the shortcut icon to open an existing file. | This is the shortcut icon to open an existing file. | ||
Line 86: | Line 86: | ||
|- | |- | ||
| style="border:1pt solid #000000;padding:0.097cm;" | | | style="border:1pt solid #000000;padding:0.097cm;" | | ||
− | | style="border:1pt solid #000000;padding:0.097cm;" | Please note however that this text is not deleted. | + | | style="border:1pt solid #000000;padding:0.097cm;" | Please note however, that this text is not deleted. |
It is stored in a part of the computer's memory known as the''' clipboard'''. | It is stored in a part of the computer's memory known as the''' clipboard'''. | ||
|- | |- | ||
Line 96: | Line 96: | ||
* <div style="margin-left:0cm;margin-right:0cm;">'''Clipboard''' content is deleted from memory once you exit '''gedit'''</div> | * <div style="margin-left:0cm;margin-right:0cm;">'''Clipboard''' content is deleted from memory once you exit '''gedit'''</div> | ||
|- | |- | ||
− | | style="border:1pt solid #000000;padding:0.097cm;" | | + | | style="border:1pt solid #000000;padding:0.097cm;" | Switch to gedit. |
| style="border:1pt solid #000000;padding:0.097cm;" | Switch back to gedit. | | style="border:1pt solid #000000;padding:0.097cm;" | Switch back to gedit. | ||
|- | |- | ||
Line 214: | Line 214: | ||
|- | |- | ||
| style="border:1pt solid #000000;padding:0.097cm;" | | | style="border:1pt solid #000000;padding:0.097cm;" | | ||
− | | style="border:1pt solid #000000;padding:0.097cm;" | And now, we can see only the student details from Students.txt | + | | style="border:1pt solid #000000;padding:0.097cm;" | And now, we can see only the student details from '''Students.txt''' file is copied in our '''gedit '''window. |
<<PAUSE>> | <<PAUSE>> | ||
|- | |- |
Latest revision as of 12:32, 16 October 2017
Title of script: Common Edit Functions
Keywords: Cut, Copy, Paste, Undo, Redo, Search, Replace, Print, Video tutorial
Visual Cue | Narration |
Slide 1: | Welcome to the Spoken Tutorial on Common Edit Functions in gedit Text editor. |
Slide 2:
Learning objectives |
In this tutorial, we will learn about editing functions that we use frequently in gedit.
We will learn to:
We will also learn to Print our document. |
Slide 3:
System Requirements |
To record this tutorial, I am using:
|
Slide 4: Pre-requisites | To follow this tutorial, you should have working knowledge of any operating system. |
Open the gedit | Let's open the gedit Text editor. |
Open Students.txt file | Now open the file Students.txt which we created earlier. |
Click the shortcut OPEN icon | Let’s do so by clicking the icon in the toolbar with the icon labelled open.
This is the shortcut icon to open an existing file. |
Open Files dialog box appears. | |
Select the Desktop folder | Select the Desktop folder on the right hand side. |
Select address.txt file from the Desktop folder. | Select the file Students.txt and click Open. |
Now, let's learn how to cut, copy and paste the text. | |
First, we need to select the text that we want to cut or copy. | |
I want to cut the first three students details from this file. | |
Drag the mouse to select the first three addresses. | To select the first three student details, click and drag the cursor across those three lines. |
Now, the text is selected. | |
Point to the Cut icon | We can use the Cut icon in the Toolbar. |
Click Edit >> Cut | Or From the Main menu, select Edit and Cut. |
Text on screen-
Keyboard shortcut is Ctrl + X |
Alternately, we can press Ctrl + X keys together to cut the text. |
Point to the vacant area | Notice that the selected text is no longer visible in the file. |
Please note however, that this text is not deleted.
It is stored in a part of the computer's memory known as the clipboard. | |
Slide:
Graphic image: |
|
Switch to gedit. | Switch back to gedit. |
Let us now paste this text in a new document. | |
Click File >> New | From the Main menu, click File and New.
A new document named Untitled Document 1 opens in the gedit window. |
Click Edit >> Paste | Now, from the Main menu, select Edit and Paste. |
Text on screen-
Keyboard shortcut is Ctrl + V |
Alternately, we can press Ctrl + V keys together to paste the text. |
Point to the Paste icon | Or use the Paste icon in the Toolbar. |
Highlight the pasted text | The text from the Students dot txt gets pasted into this document.
<<PAUSE>> |
Switch to Students.txt tab | Select the tab Students.txt. |
Select the remaining lines in the page. | Now, let's select the remaining students details and make a copy of this. |
Select Edit >> copy
Point to Ctrl + C in the menu |
From the Main menu, select Edit and Copy.
We can also use the keyboard shortcut Ctrl + C to copy the content. |
Notice that the copied text is still visible.
This text is also stored in the clipboard. | |
Select the tab Untitled Document 1
Place the cursor after the third line and click. |
Select the tab Untitled Document 1.
Place the cursor after the third line and press Enter. |
Show the context menu >> select Paste | Now, right-click for the context menu and select Paste. |
The content is pasted in the specified location.
This is a simple and effective way to cut, copy and paste content in gedit. <<PAUSE>> | |
Next we will see Undo and Redo options. | |
Slide 5 :
Undo |
|
Slide 6 :
Redo changes |
|
Switch to gedit
Right click the mouse and select Undo |
Switch to gedit Text editor.
Right-click and select Undo. |
The text that we copy and pasted, is no longer visible.
The copy-paste action has been undone. | |
Text on screen-
Keyboard shortcut is Ctrl + Z Press Ctrl + Z |
Let’s undo once again.
This time, press Ctrl + Z keys together. We can see the cursor jumps back to the end of the third line. The previous action has been undone now. |
Point to that space | Right-click and select Undo again.
The first three lines that we pasted earlier are also no longer visible. |
Point to the Undo icon | We can also use the Undo icon in the Toolbar. |
This is how we can undo all the actions we did so far. | |
Now, how can we get back the text again? | |
Right click the mouse and select Redo. | Simple! Right-click and select Redo. |
Text on screen-
Keyboard shortcut is Shift + Ctrl + Z Press Shift + Ctrl + Z |
Let’s redo our action one more time.
This time let’s press Shift + Ctrl + Z keys. |
Point to the Undo icon | We can also use the Undo icon in the Toolbar.
We got back the text again. |
And now, we can see only the student details from Students.txt file is copied in our gedit window.
<<PAUSE>> | |
Next, we will see the Search and Replace options. | |
Slide 7: Search Functions |
|
Open the document school.txt | Let me open a document school.txt which I have already created earlier.
The school.txt file is available in the Codefile link along with this tutorial. Download and use that text document. |
Click Search >> Find
Point to the Find box |
In this document, I want to search for a particular word.
To do so, from the Main menu, click on Search then Find. |
Text on screen-
Keyboard shortcut is Ctrl + F |
Alternately, we can press Ctrl + F keys together. |
Point to the Search icon | Or use the Search for text icon in the Toolbar. |
Find box opens at the top right corner of the window. | |
In the Find Box, type the word School | In the Find Box, type the word “School”.
Observe that all instances of the word 'school' are highlighted in yellow color in the document. The first occurrence of the word ‘school’ is highlighted in brown color. |
Now place the cursor on the Find box and right click the mouse. | Now place the cursor on the Find box and right click the mouse. |
Click on Match Case | From the list of options that appears, click on Match Case. |
Point to the word 'School' | Only one word matches the case option.
That is, capital 'S' in the word “School”. |
Place the cursor on the find box and right click the mouse. Uncheck the Match Case option. | Again, place the cursor on the Find box and right click the mouse.
Uncheck the Match Case option. |
In the main menu click Search and then on Replace.
Point to Replace dialog box. |
Now, from the Main menu, click Search and then on Replace. |
Text on screen-
Keyboard shortcut is Ctrl + H |
Alternately, we can press Ctrl + H keys together. |
Point to the Search & replace icon | Or use the Search for and replace text icon in the Toolbar. |
Replace dialog box appears. | |
In the 'Search box ', type 'schools'
In the 'Replace with' box, type 'colleges' Check the 'Match entire word only' box. |
In the 'Search for ' field, type 'schools' and press Enter.
In the 'Replace with' box, type 'colleges'. Check the 'Match entire word only' check box. |
We can see, all the 'schools' words are highlighted in yellow color. | |
Click on 'Replace' button
Point to the changes |
Click on Replace button.
This will replace the first occurrence of “schools” with “colleges”. |
Click on 'Replace All' button | Click on Replace All button to replace all the occurrences of “schools” with “colleges”. |
Click on 'Close' button | Click on Close button to close the window. |
Switch to gedit. | gedit Text editor also allows us to search as we type. |
Point to the Find box at the top-right corner | Press Ctrl and F keys together to open the Find box. |
Type Students in the find box | Now, in the Find box, start typing “Students”.
Notice that as we type the first letter 'S', the cursor highlights all the ‘S’ letters in the document. Finally, the entire word 'Students' is highlighted when we finish typing. |
Next we will see how to print the school.txt file. | |
Select 'File' from the Menu bar and then Print. | Select 'File' from the Menu bar and then Print. |
We can also click on the Print icon in the Toolbar. | |
Point to the Print dialog box
In the General tab, under Printer select the printer. |
Print dialog box appears.
If a printer is connected to your machine, it will be listed under the Printer details here. The tabs and selections in this window will be as per the default configuration settings. |
Click on Print button. | To print your document, click on the Print button at the bottom right.
If the printer configurations are correct, then your document will get printed. |
This brings us to the end of this tutorial. Let us summarise. | |
Slide 8:
Summary |
In this tutorial, we learnt about:* Cut, Copy and Paste
|
Slide 9:
Assignment |
Here is an assignment for you-
|
Slide 11: About Spoken Tutorial project | The video at the following link summarises the Spoken Tutorial project.
Please download and watch it. |
Slide 12:
Spoken Tutorial workshops |
The Spoken Tutorial Project team:
For more details, please write to us. |
Slide 13:
Forum for specific questions |
|
Slide 13: Acknowledgement | Spoken Tutorial project is funded by NMEICT, MHRD, Government of India.
More information on this mission is available at this link. |
This is Nirmala Venkat from IIT Bombay, signing off. Thanks for watching. |