Creating Files: Difference between revisions

From Bluefish Wiki
Jump to navigation Jump to search
(Created page with '__NOTOC__ __NOEDITSECTION__ {{Man2top |lang=en |rev=2.0.0 |Title=Chapter V. Working with files and folders |prev=Man 2 ch04s05 |Subtitle=Part 2. Using Bluefis…')
 
m (moved Man 2 ch05 to Creating Files: Title updates)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
__NOEDITSECTION__
{{Man2top
{{Man2top
|lang=en
|lang=en
|rev=2.0.0
|rev=2.0.0
|st=d
|Title=Chapter V. Working with files and folders
|Title=Chapter V. Working with files and folders
|prev=Man 2 ch04s05
|prev=Preferences
|Subtitle=Part 2. Using Bluefish
|Subtitle=Part 2. Using Bluefish
|next=Man 2 ch05s02
|next=Man 2 ch05s02
}}
}}


== Chapter V. Working with files and folders ==
<div style="float:right; background-color:#E5ECF9;border:1px solid #3061C2;">
<div style="float:right; background-color:#E5ECF9;border:1px solid #3061C2;">
*[[#1. Creating files|1. Creating files]]  
*[[#1. Creating files|1. Creating files]]  
Line 47: Line 46:
You may also insert a file into another one, and revert a modified file to its previously saved state.  
You may also insert a file into another one, and revert a modified file to its previously saved state.  


[[File:Man2_file_menu.png]]
[[File:Man2_file_menu.png|none|frame|Bluefish File Menu]]


'''Figure&nbsp;V.1.&nbsp;Bluefish File Menu'''
{{note|text=<del>In case you compiled bluefish from source, the <tt>File → Open</tt> URL... menu item is shown only if you installed gnome-vfs2 beforehand.<br />
 
For Mac OS X users installing via Fink, choose bluefish-gnomevfs2 or bluefish-gnome2 variant.</del>}}
 
[[File:Man2_note.png]] In case you compiled bluefish from source, the File → Open URL... menu item is shown only if you installed gnome-vfs2 beforehand.
 
For Mac OS X users installing via Fink, choose bluefish-gnomevfs2 or bluefish-gnome2 variant.


You may also add directories, delete files, and refresh the file browser in the side panel using its contextual menu.  
You may also add directories, delete files, and refresh the file browser in the side panel using its contextual menu.  


[[File:Man2_file_browser_cm.png]]
[[File:Man2_file_browser_cm.png|none|frame|The File Browser Contextual Menu]]
 
'''Figure&nbsp;V.2.&nbsp;The File Browser Contextual Menu'''


You may also open a file using drag and drop from the desktop or from Nautilus to any part of the Bluefish window but the editor part when you are under Gnome2 environment.
You may also open a file using drag and drop from the desktop or from Nautilus to any part of the Bluefish window but the editor part when you are under Gnome2 environment.




[[File:Man2_note.png]] If you drag and drop the file to the editor window, the full path of the file is inserted.
{{note|text=If you drag and drop the file to the editor window, the full path of the file is inserted.}}


== 1. Creating files ==
== 1. Creating files ==
Apart from using File → New ('''Ctrl+N''') or the New icon to create a new file, you may also use File → New Window ('''Shift+Ctrl+N''').
Apart from using File → New ('''Ctrl+N''') or the New icon to create a new file, you may also use <tt>File → New Window</tt> ('''Shift+Ctrl+N''').


Those methods create an untitled file of type <tt>text</tt> (except when you are working on a project with defined template file, see [[Man 2 ch06s03#Creating a New Project|Creating a New Project]] for more info) with default permissions and the default character encoding defined in the Files tab in the Edit → Preferences menu option. You will further have to [[Man 2 ch05s04|save]] it under the desired name.  
Those methods create an untitled file of type <tt>text</tt> (except when you are working on a project with defined template file, see [[Man 2 ch06s03#Creating a New Project|Creating a New Project]] for more info) with default permissions and the default character encoding defined in the Files tab in the Edit → Preferences menu option. You will further have to [[Man 2 ch05s04|save]] it under the desired name.  


[[File:Man2_untitled_document.png]]
[[File:Man2_untitled_document.png|none|frame|Untitled Document Window]]
 
'''Figure&nbsp;V.3.&nbsp;Untitled Document Window'''
 


[[File:Man2_important.png]] Note that the document window is titled “Untitled n - Bluefish versionnumber”, which indicates precisely that the file is not saved on the disk. The same applies to the document's tab which shows “Untitled n”. Moreover, if you move the cursor onto the document's tab, you will not see any size or modification date.
{{important|text=Note that the document window is titled “Untitled n - Bluefish versionnumber”, which indicates precisely that the file is not saved on the disk. The same applies to the document's tab which shows “Untitled n”. Moreover, if you move the cursor onto the document's tab, you will not see any size or modification date.}}


[[File:Man2_tip.png]] When creating new files, you may want to create them in a new window. In this case, use File → New Window to first open the new window and then create the desired files as usual.
{{tip|text=When creating new files, you may want to create them in a new window. In this case, use <tt>File → New Window</tt> to first open the new window and then create the desired files as usual.}}




To spare yourself the bother of saving, right click on the desired directory in the directory list of the file browser in the side panel and select New File. You will be presented with a File name dialog, where you will enter the desired name:  
To spare yourself the bother of saving, right click on the desired directory in the directory list of the file browser in the side panel and select New File. You will be presented with a File name dialog, where you will enter the desired name:  


[[File:Man2_file_name_dialog.png]]
[[File:Man2_file_name_dialog.png|none|frame|The File Name Dialog]]
 
'''Figure&nbsp;V.4.&nbsp;The File Name Dialog'''


[[File:Man2_tip.png]] You may type a path relative to the clicked directory, provided that the target directory be under the clicked directory and that it exists.
{{tip|text=You may type a path relative to the clicked directory, provided that the target directory be under the clicked directory and that it exists.}}




{{Man2bottom
{{Man2bottom
|prev=Man 2 ch04s05
|prev=Preferences
|up=Man 2 pt02
|up=Man 2 pt02
|next=Man 2 ch05s02
|next=Man 2 ch05s02
|prevname= 5.&nbsp;Help Menu
|prevname= IVa. Preferences
|nextname=2.&nbsp;Managing directories
|nextname=2.&nbsp;Managing directories
}}
}}
[[Category: Manual 2]]

Latest revision as of 15:01, 21 July 2010


Most of the file operations are accessible from the File menu. Using this menu, a new file can be created, existing files opened, and opened files saved or renamed.

You may also insert a file into another one, and revert a modified file to its previously saved state.

Bluefish File Menu
Man2 note.gif In case you compiled bluefish from source, the File → Open URL... menu item is shown only if you installed gnome-vfs2 beforehand.

For Mac OS X users installing via Fink, choose bluefish-gnomevfs2 or bluefish-gnome2 variant.

You may also add directories, delete files, and refresh the file browser in the side panel using its contextual menu.

The File Browser Contextual Menu

You may also open a file using drag and drop from the desktop or from Nautilus to any part of the Bluefish window but the editor part when you are under Gnome2 environment.


Man2 note.gif If you drag and drop the file to the editor window, the full path of the file is inserted.

1. Creating files[edit]

Apart from using File → New (Ctrl+N) or the New icon to create a new file, you may also use File → New Window (Shift+Ctrl+N).

Those methods create an untitled file of type text (except when you are working on a project with defined template file, see Creating a New Project for more info) with default permissions and the default character encoding defined in the Files tab in the Edit → Preferences menu option. You will further have to save it under the desired name.

Untitled Document Window
Man2 important.png Note that the document window is titled “Untitled n - Bluefish versionnumber”, which indicates precisely that the file is not saved on the disk. The same applies to the document's tab which shows “Untitled n”. Moreover, if you move the cursor onto the document's tab, you will not see any size or modification date.
Man2 tip.gif When creating new files, you may want to create them in a new window. In this case, use File → New Window to first open the new window and then create the desired files as usual.


To spare yourself the bother of saving, right click on the desired directory in the directory list of the file browser in the side panel and select New File. You will be presented with a File name dialog, where you will enter the desired name:

The File Name Dialog
Man2 tip.gif You may type a path relative to the clicked directory, provided that the target directory be under the clicked directory and that it exists.