Skip to content

Open selected files in an editor of choice based on BitBar plugin.

License

Notifications You must be signed in to change notification settings

raguay/OpenWithEditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenWithEditor

Plugin for fman.io to edit files using the editor specified in the BitBar plugin currentFiles.1h.rb.

Install with fman's built-in command for installing plugins.

To use with the BitBar plugin, you will need to have BitBar installed and the currentFiles.1h.rb plugin installed and configured. You can also use the Alfred BitBar Workflow to control the plugin.

Alternatively, you can use the TextBar program with the Current Files and Editor plugin installed. You can use the Alfred with the My Editor Workflow to control the editor and edit files.

After restarting fman, you will be able to select the editor you are currently using to edit file.

Since this plugin used files from the above two mentioned plugins for TextBar or BitBar, this plugin is intended for and usable mostly on a macOS system. It should be usable on other systems if you create the needed files in your home directory yourself.

These commands described in the Usage area can be used to create the editor list. Therefore, the other programs are not necessary to use this plugin anymore.

Usage

Pressing F4 with files selected or simply highlighted will open the file in the editor that you specify in the plugin. Changing the current editor in the BitBar plugin will change which editor is used instantly.

The following Commands are available as well:

Command Description
My open with editor This will open the currently selected or file under the cursor to edit in the editor already chosen.
Set editor to use This will list all the editors in the ~/.myeditors file allowing the user to pick one. That editor will be used to open files.
Add editor to use This will ask for an editor display name and path. This will be saved in the ~/.myeditors file and used to display in the Set editor to use command.
Add editor alias path This allows the user to set a command line path to a command to open the editor. This alias should be used for the path in Add editor to use command.
Remove editor This allows the user to remove an editor from the list of editors.
Remove Alias This allows the user to remove an editor path alias from the list of them.

Features

  • Opens selected files in the editor specified by the BitBar plugin, TextBar plugin, or Alfred workflow.
  • Add and remove editors to be used.
  • Add editor aliases to use for running command line programs for the editor.

Things to Add

  • Specify a different command then open -a to open programs so that the plugin can be used on other OSes.