Opening Files: Difference between revisions

From Bluefish Wiki
Jump to navigation Jump to search
mNo edit summary
m (moved Man 2 ch05s03 to Opening Files: Title updates (BV))
 
(3 intermediate revisions by one other 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=3. Opening files
|Title=3. Opening files
|prev=Man 2 ch05s02
|prev=Man 2 ch05s02
Line 9: Line 9:
|next=Man 2 ch05s04
|next=Man 2 ch05s04
}}
}}
== 3. Opening files ==
 
Through the <tt>File → Open...</tt> ('''Ctrl+O''') menu item or the Open... icon in the main tool bar, one or more files can be opened. If you want to open them in a new window, use <tt>File → New Window</tt> to first open the new window and then open the desired files as usual.  
Through the <tt>File → Open...</tt> ('''Ctrl+O''') menu item or the Open... icon in the main tool bar, one or more files can be opened. If you want to open them in a new window, use <tt>File → New Window</tt> to first open the new window and then open the desired files as usual.  


[[File:Man2_open_file.png|none|frame|Bluefish Open File Dialog]]
[[File:Man2_open_file.png|none|frame|Bluefish Open File Dialog]]


[[File:Man2_note.png]] The most recently opened directories appear in the upper part of the side panel, while the lower part contains user-defined locations. To add a new directory to the list, click on Add. You can also filter the file list by file type using the pop menu located on the right side. The list of file types in the filter menu is provided through the Filetypes tab found in Bluefish's Edit → Preferences menu option.
{{note|text=The most recently opened directories appear in the upper part of the side panel, while the lower part contains user-defined locations. To add a new directory to the list, click on Add. You can also filter the file list by file type using the pop menu located on the right side. The list of file types in the filter menu is provided through the Filetypes tab found in Bluefish's <tt>Edit → Preferences</tt> menu option.<br />
Recently opened files can be opened by selecting them from the list within File → Open recent. The number of files in this menu can be set in the preferences under Files.
Recently opened files can be opened by selecting them from the list within <tt>File → Open recent</tt>. The number of files in this menu can be set in the preferences under Files.}}


The contextual menus of both parts of the file browser in the side panel can also be used to open files. The file part supports opening a given file by right clicking it, and filtering files via the Filter submenu of its contextual menu. The directory part supports filtering files via the Filter submenu of its contextual menu, and advanced opening explained in the [[Man 2 ch05s12#12.3, “Open advanced”|12.3, “Open advanced”]].  
The contextual menus of both parts of the file browser in the side panel can also be used to open files. The file part supports opening a given file by right clicking it, and filtering files via the Filter submenu of its contextual menu. The directory part supports filtering files via the Filter submenu of its contextual menu, and advanced opening explained in the [[Man 2 ch05s12#12.3, “Open advanced”|12.3, “Open advanced”]].  
Line 26: Line 26:




[[File:Man2_important.png]] The selected text should match the full path of an existing file.
{{important|text=The selected text should match the full path of an existing file.
Files can also be opened via the command line by feeding filenames to Bluefish as arguments. For example:
Files can also be opened via the command line by feeding filenames to Bluefish as arguments. For example:<br /><tt>'''$'''bluefish ~/foo1.txt ~/foo2.txt</tt><br />
 
This can even be done while Bluefish is running and the resulting files will then show up in their own tabs.}}
'''$'''bluefish ~/foo1.txt ~/foo2.txt
 
This can even be done while Bluefish is running and the resulting files will then show up in their own tabs.




[[File:Man2_tip.png]] <del>If you have installed gnome-vfs or gnome-vfs2 before installing Bluefish,</del> you will be able to open files on remote desktop via the <tt>File → Open URL...</tt> menu item. See more on this in the [[Man 2 ch05s12#12.1, “Remote files”|12.1, “Remote files”]].
{{tip|text=<del>If you have installed gnome-vfs or gnome-vfs2 before installing Bluefish,</del> you will be able to open files on remote desktop via the <tt>File → Open URL...</tt> menu item. See more on this in the [[Man 2 ch05s12#12.1, “Remote files”|12.1, “Remote files”]].}}


Finally, if the gnome2 environment is installed on your system, you may open files by drag and drop from the desktop or the Nautilus file manager onto any part of the Bluefish interface, but the document's editor.
Finally, if the gnome2 environment is installed on your system, you may open files by drag and drop from the desktop or the Nautilus file manager onto any part of the Bluefish interface, but the document's editor.
Line 43: Line 40:
[[File:Man2_open_file_info.png|none|frame|Info on open File]]
[[File:Man2_open_file_info.png|none|frame|Info on open File]]


[[File:Man2_note.png]] Note that the document's tab is hightlighted in red, because the document has been modified since the last save. Info in the tool tip match the state of the file as it was saved on disk.
{{note|text=Note that the document's tab is hightlighted in red, because the document has been modified since the last save. Info in the tool tip match the state of the file as it was saved on disk.}}


{{Man2bottom
{{Man2bottom

Latest revision as of 15:52, 26 June 2010


Through the File → Open... (Ctrl+O) menu item or the Open... icon in the main tool bar, one or more files can be opened. If you want to open them in a new window, use File → New Window to first open the new window and then open the desired files as usual.

Bluefish Open File Dialog
Man2 note.gif The most recently opened directories appear in the upper part of the side panel, while the lower part contains user-defined locations. To add a new directory to the list, click on Add. You can also filter the file list by file type using the pop menu located on the right side. The list of file types in the filter menu is provided through the Filetypes tab found in Bluefish's Edit → Preferences menu option.

Recently opened files can be opened by selecting them from the list within File → Open recent. The number of files in this menu can be set in the preferences under Files.

The contextual menus of both parts of the file browser in the side panel can also be used to open files. The file part supports opening a given file by right clicking it, and filtering files via the Filter submenu of its contextual menu. The directory part supports filtering files via the Filter submenu of its contextual menu, and advanced opening explained in the 12.3, “Open advanced”.

Filtering Files with the Bluefish File Browser

The available filters may be modified in Preferences. For more information, see Section 11, “Modifying the files filters”.

An interesting feature of Bluefish is the ability to open files by selecting the text of a currently opened file in another application. For example, if a filename is shown in say a terminal application, you can select the filename, and use File → Open from Selection to open that file. The file, if it exists, will be opened in another tab within Bluefish.


Man2 important.png The selected text should match the full path of an existing file.

Files can also be opened via the command line by feeding filenames to Bluefish as arguments. For example:
$bluefish ~/foo1.txt ~/foo2.txt
This can even be done while Bluefish is running and the resulting files will then show up in their own tabs.


Man2 tip.gif If you have installed gnome-vfs or gnome-vfs2 before installing Bluefish, you will be able to open files on remote desktop via the File → Open URL... menu item. See more on this in the 12.1, “Remote files”.

Finally, if the gnome2 environment is installed on your system, you may open files by drag and drop from the desktop or the Nautilus file manager onto any part of the Bluefish interface, but the document's editor. Be aware that if the file is huge it may take a very long time to get the rendering if syntax highlighting is enabled in the Editor option of Preferences, in particular if the PCRE UTF-8 support is enabled. The GTK editing widget used in Bluefish, furthermore, is not very good at handling files with very long lines, and that could also slow down Bluefish considerably.

Information about currently opened files can be seen if you move the mouse over the document tab (by default on the bottom of the screen). A so called tool tip will be shown with information about the full path, size, permissions, file type and encoding of the file.

Info on open File
Man2 note.gif Note that the document's tab is hightlighted in red, because the document has been modified since the last save. Info in the tool tip match the state of the file as it was saved on disk.