Difference between revisions of "Gedit-Text-Editor/C2/Handling-Tabs/English-timed"

From Script | Spoken-Tutorial
Jump to: navigation, search
 
Line 10: Line 10:
 
|  00:04
 
|  00:04
 
|In this tutorial, we will learn to:
 
|In this tutorial, we will learn to:
* Add, move, re-order and close tabs  
+
Add, move, re-order and close tabs  
  
 
|-
 
|-
 
|  00:13
 
|  00:13
|* Use the '''Side Panel''' to browse and open files
+
|Use the '''Side Panel''' to browse and open files
  
 
|-
 
|-
 
|  00:19
 
|  00:19
|* Insert line numbers and
+
|Insert line numbers and
* '''Wrap''' text.
+
'''Wrap''' text.
  
 
|-
 
|-
 
|  00:22
 
|  00:22
 
|To record this tutorial, I am using:
 
|To record this tutorial, I am using:
'''Ubuntu Linux''' 14.04 operating system  
+
'''Ubuntu Linux''' 14.04 operating system  
* '''gedit''' 3.10  
+
'''gedit''' 3.10  
  
 
|-
 
|-

Latest revision as of 16:03, 26 April 2019

Time Narration
00:01 Welcome to the Spoken Tutorial on Handling tabs in gedit Text editor.
00:04 In this tutorial, we will learn to:

Add, move, re-order and close tabs

00:13 Use the Side Panel to browse and open files
00:19 Insert line numbers and

Wrap text.

00:22 To record this tutorial, I am using:

Ubuntu Linux 14.04 operating system gedit 3.10

00:32 To follow this tutorial, you should have working knowledge of any operating system.
00:38 Let's open the gedit Text editor.
00:42 By default, the gedit Text editor has one tab named as Untitled Document 1.
00:49 Now, pause the tutorial and type the following code as displayed on the screen.
00:56 This is a program in C language.
00:58 Let us save the program.
01:01 Press Ctrl + S keys simultaneously on the keyboard.
01:06 In the Save dialog-box, enter the name as sample dot c.
01:11 The extension ‘c’ indicates that it is a C language program.
01:16 Select the folder where you want to save the file.
01:20 I will select Desktop and then click on Save button.
01:25 The tab name has changed to sample dot c.
01:29 Did you notice the various colors in the program after you saved the file?
01:35 This is because gedit Text editor recognizes the typed code as a C program.
01:42 We will learn more about syntax highlighting in later tutorials.
01:47 Also, notice the status bar which has changed to 'C'.
01:52 We can see that the window name has also changed to sample dot c.
01:57 To add a new tab, from the Main menu, click File and New.
02:04 A new tab named Untitled Document 1 is created to the right of the document sample.c.
02:12 Again, the title at the top of the window has changed to Untitled Document 1.
02:18 So, the name of the active tab is displayed as the title of the window.
02:23 Now, let’s learn another way to open a new tab.
02:27 Click on the New icon in the toolbar.
02:31 Another tab Untitled Document 2 has been created.
02:35 The numbering of tabs begins at 1 and increments by 1 for each new tab that is opened.
02:43 That’s why this tab is numbered 2.
02:47 In a similar way, let's create two more new documents.
02:52 Now, we have a total of 5 tabs including sample.c.
02:58 How do we navigate through these tabs?
03:01 Notice, there is a triangular button on both ends of the tab bar.
03:07 You can use these buttons to navigate through the tabs.
03:12 Let's click on the left triangular button till the document sample.c is visible.
03:19 How do we close the tabs? This is very simple.
03:22 From the Main menu, click File and Close.
03:27 Alternately, you can simply click on the 'X' button on the tab.
03:32 Let's close the Untitled Document 2 and 3 in this manner.
03:39 So, we are left with sample dot c, Untitled Document 1 and Untitled Document 4.
03:47 Now, let's add two more new documents.
03:52 These two new tabs are named as Untitled Document 2 and 3.
03:57 The documents are numbered or ordered as shown here.
04:03 The ordering may be different in lower versions of gedit.
04:08 Such differences in versions will happen and the learner should be prepared to handle these.
04:15 Let's rearrange the tabs now.
04:18 First, select Untitled Document1.
04:21 Press the left mouse button and drop it to the left of the file sample.c.
04:27 Release the left mouse-button.
04:30 The tab is rearranged.
04:33 In the same manner, let us rearrange the tab 2 and 4.
04:38 Next, let's learn to move a tab to another window.
04:42 First, select the tab sample.c which we want to move.
04:47 Then, right-click on the tab and select 'Move to New Window'.
04:52 sample.c opens in a new window.
04:56 Let's switch from sample.c to the other window with the Untitled Documents.
05:02 Go to the Main menu and click View and Side Panel.
05:07 The Side Panel opens up on the left side of the window.
05:12 You can view the names of all the documents in the side panel.
05:17 It is in the same order in which they appear on the window panel.
05:22 In the side panel, click on the Untitled Document 2.
05:27 That document becomes active now.
05:31 Let us rearrange the document in the gedit Text editor window as we did before.
05:37 Let’s click on the tab Untitled Document 4.
05:40 Click, drag and drop the file after the last tab.
05:46 Notice that the document order has now changed in the side panel, too.
05:52 To close the side panel, simply click the 'X' button on the top right.
05:58 Let's learn how to go to a specific line number in the gedit Text editor file.
06:04 Switch to sample.c file.
06:07 From the Main menu, click Search and Go to Line.
06:12 The Go to Line dialog-box appears on the top right corner of the gedit Text editor window.
06:20 In the dialog-box, enter the number 8 and press the Enter key.
06:26 The cursor jumps to line 8. We can also see the line number as 8 in the status bar.
06:33 But, it will be easy to locate the cursor if the line number is displayed along with the text.
06:40 To display the line numbers of the code, from the Main menu, select Edit and Preferences.
06:47 gedit Preferences dialog-box appears.
06:50 Click the View tab.
06:52 Put a checkmark on Display line numbers option.
06:56 Put a checkmark on Highlight current line option. Click on the Close button.
07:04 Notice that the line numbers are displayed to the right of the code.
07:09 Also, the line on which your cursor is displayed is in bold.
07:14 Next we will learn about text wrapping.
07:18 A line of code in a program may exceed the length of the gedit Text editor window.
07:24 So, it becomes difficult to read the entire line of the text.
07:29 Text wrapping helps to wrap the text within the size of the window.
07:34 Switch back to the sample.c program.
07:37 From the Main menu, click Edit and then Preferences.
07:43 Notice that the option Enable text wrapping is checked by default.
07:50 Uncheck this box. Click on the Close button.
07:55 Let me add a line of code at the end of the program.
08:00 Notice that the length of the text has exceeded the size of the window.
08:05 Now, let's check the option Enable text wrapping.
08:10 The text has been neatly wrapped to fit the window.
08:15 This brings us to the end of this tutorial. Let us summarise.
08:20 In this tutorial, we learnt to:
  • Add, move, re-order and close tabs
08:26 * Use the side panel to browse and open files
08:30 * Insert line numbers and
  • Wrap text.
08:34 Here is an assignment for you.
08:37 Create 5 new tabs in the gedit Text Editor.
08:41 Save them as One, Two, Three, Four and Five.
08:47 Now re-order the tabs as Three, Two, One, Five and Four.
08:54 Open the Side Panel
08:56 Click the file Five in the Side Panel and enter some text.
09:01 The video at the following link summarizes the Spoken Tutorial project.

Please download and watch it.

09:08 The Spoken Tutorial Project Team:
  • conducts workshops using spoken tutorials and
  • gives certificates on passing online tests.
09:17 For more details, please write to us.
09:21 Do you have questions in THIS Spoken Tutorial? Please visit this site.
09:26 Choose the minute and second where you have the question. Explain your question briefly.
09:32 Someone from our team will answer them.
09:36 Spoken Tutorial project is funded by NMEICT, MHRD, Government of India.
09:43 More information on this mission is available at this link.
09:48 This is Nirmala Venkat from IIT Bombay, signing off. Thanks for watching.

Contributors and Content Editors

Jyotisolanki, Pratik kamble, Sandhya.np14