-
-
Notifications
You must be signed in to change notification settings - Fork 455
Update Plugin documentation #2193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
be72c14
readme: document Ctrl+R hotkey
JohnTheGr8 9b5fbee
update documentation in Result
JohnTheGr8 6ebac4e
update documentation in Query
JohnTheGr8 bb5e1d3
more documentation in Plugin package
JohnTheGr8 da41f2c
update plugin readme, include in nupkg
JohnTheGr8 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,18 @@ | ||
| using System.Collections.Generic; | ||
| using System.Collections.Generic; | ||
|
|
||
| namespace Flow.Launcher.Plugin | ||
| { | ||
| /// <summary> | ||
| /// Adds support for presenting additional options for a given <see cref="Result"/> from a context menu. | ||
| /// </summary> | ||
| public interface IContextMenu : IFeatures | ||
| { | ||
| /// <summary> | ||
| /// Load context menu items for the given result. | ||
| /// </summary> | ||
| /// <param name="selectedResult"> | ||
| /// The <see cref="Result"/> for which the user has activated the context menu. | ||
| /// </param> | ||
| List<Result> LoadContextMenus(Result selectedResult); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,18 @@ | ||
| namespace Flow.Launcher.Plugin | ||
| namespace Flow.Launcher.Plugin | ||
| { | ||
| /// <summary> | ||
| /// Save addtional plugin data. Inherit this interface if additional data e.g. cache needs to be saved, | ||
| /// Otherwise if LoadSettingJsonStorage or SaveSettingJsonStorage has been callded, | ||
| /// plugin settings will be automatically saved (see Flow.Launcher/PublicAPIInstance.SavePluginSettings) by Flow | ||
| /// Inherit this interface if additional data e.g. cache needs to be saved. | ||
| /// </summary> | ||
| /// <remarks> | ||
| /// For storing plugin settings, prefer <see cref="IPublicAPI.LoadSettingJsonStorage{T}"/> | ||
| /// or <see cref="IPublicAPI.SaveSettingJsonStorage{T}"/>. | ||
| /// Once called, your settings will be automatically saved by Flow. | ||
| /// </remarks> | ||
| public interface ISavable : IFeatures | ||
| { | ||
| /// <summary> | ||
| /// Save additional plugin data, such as cache. | ||
| /// </summary> | ||
| void Save(); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| What does Flow.Launcher.Plugin do? | ||
| ==== | ||
| Reference this package to develop a plugin for [Flow Launcher](https://github.com/Flow-Launcher/Flow.Launcher). | ||
|
|
||
| * Defines base objects and interfaces for plugins | ||
| * Plugin authors making C# plugins should reference this DLL via nuget | ||
| * Contains commands and models that can be used by plugins | ||
| Useful links: | ||
|
|
||
| * [General plugin development guide](https://www.flowlauncher.com/docs/#/plugin-dev) | ||
| * [.Net plugin development guide](https://www.flowlauncher.com/docs/#/develop-dotnet-plugins) | ||
| * [Package API Reference](https://www.flowlauncher.com/docs/#/API-Reference/Flow.Launcher.Plugin) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do these change means? Does Readme.md work in Github?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's added so that the Readme file is rendered in nuget.org page of the package, see for example our dotnet-new template