Opening Files: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 26: | Line 26: | ||
{{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.}} | |||
This can even be done while Bluefish is running and the resulting files will then show up in their own tabs. | |||
Revision as of 11:49, 31 December 2009
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.
![](/images/7/7b/Man2_open_file.png)
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”.
![](/images/f/f8/Man2_file_browser_filtering.png)
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.
|
|
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.
![](/images/2/2c/Man2_open_file_info.png)
|