-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add plugin from wmjordan@163.com to hide the bookmark margin
closes #329
- Loading branch information
1 parent
67c3a21
commit c7dd566
Showing
4 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// returns the version of the plugin | ||
// this callback is not optional! If you fail to implement this, the plugin | ||
// config dialog won't work properly with your plugin | ||
function Version() { return 100; } | ||
|
||
// this is the main function that gets executed when the command is run, i.e. | ||
// the button is clicked | ||
function Execute() | ||
{ | ||
// execute whatever the plugin should do here, | ||
// return true if the command was successful or false if it didn't run | ||
// successfully | ||
if (BowPad.SciGetMarginWidthN(2) == 1) { | ||
BowPad.SciSetMarginWidthN(2, 16); | ||
} | ||
else { | ||
BowPad.SciSetMarginWidthN(2, 1); | ||
} | ||
return true; | ||
} | ||
|
||
// return true if the plugin command is enabled (used for the button) | ||
// note: not used yet by BowPad, but planned for the future | ||
function IsEnabled() { return true; } | ||
|
||
// return true if the plugin button should appear as checked | ||
// note: not used yet by BowPad, but planned for the future | ||
function IsChecked() { return false; } | ||
|
||
// called after a document was opened | ||
function AfterInit() { | ||
BowPad.SciSetMarginWidthN(2, 1); | ||
return; | ||
} | ||
|
This file contains 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
100 | ||
200 | ||
Hides Bookmark Margin by default, click to toggle | ||
wmjordan@163.com |
This file contains 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