1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-17 17:55:46 +01:00

10 Commits

Author SHA1 Message Date
MadAnd
864482cd7b Release 1.2pre-pm-3 2017-01-23 04:13:03 +02:00
Zheng Chaoping
0a46c4be52 Cherry pick 5digits/dactyl#178
Fix `TypeError: options is undefined`

When open a new window and close it, then press `gg` in the original window
will throw `TypeError: options is undefined`.
2017-01-23 04:10:23 +02:00
MadAnd
1910720de8 Release 1.2pre-pm-2 2017-01-21 19:21:27 +02:00
MadAnd
44563c4a85 Change application GUID to Pale Moon's one 2017-01-21 19:09:25 +02:00
MadAnd
7f44847ee3 Add readme 2017-01-21 06:51:19 +02:00
ROTTLER Tamas
1d68b97ae6 Makes Firefox site-specific zoome feature work again. 2017-01-21 04:12:28 +02:00
MadAnd
16a449a161 pm-compat: Revert "Minor compat changes."
Fix too small font size in buffers.

Reverts: c8bacf3c71
2017-01-21 03:45:35 +02:00
MadAnd
c8bacf3c71 pm-compat: Revert "Fix toolbar commands for the Navbar."
Reverts: 6ca1cc3d08
2017-01-21 03:36:07 +02:00
MadAnd
6fb969918d pm-compat: Revert "Hide statusbar in FF25+."
Reverts: 604f84b939
2017-01-21 03:36:07 +02:00
MadAnd
da9f0f8f8a Update minVersion and extension metadata 2017-01-21 03:36:07 +02:00
8 changed files with 66 additions and 29 deletions

50
README.md Normal file
View File

@@ -0,0 +1,50 @@
Pentadactyl for Pale Moon
=========================
This is a port of one of the best XUL-based Firefox extensions, targeting [Pale Moon](https://www.palemoon.org/) 27. The goal of this project is to make Pentadactyl compatible with Pale Moon, while staying as close to the upstream as possible.
Install
-------
You can find the latest XPI file for download [here](https://github.com/madand/pentadactyl-pm/releases/latest). For older versions see the [Releases](https://github.com/madand/pentadactyl-pm/releases) page.
Development
-----------
### Build XPI from sources ###
``` shell
git clone --depth 1000 https://github.com/madand/pentadactyl-pm.git
cd pentadactyl-pm/
make -C pentadactyl xpi
```
This resulting XPI will be placed in the `downloads/` folder.
#### Build dependencies ####
* zip
* gmake
* Standard POSIX commands: awk, echo, sed, sh
While most developers use a Unix-like operating system, you can also build Pentadactyl on Windows with the help of MinGW's MSYS, Cygwin, or SFU.
### Install without XPI ###
As creating and installing a new XPI file after each update is cumbersome, most developers run Pentadactyl directly from their working copies. This is achieved with [Firefox extension proxy file][1], which is a plain text file named after the extension ID and its contents is just a path to the extension source directory.
Assuming you use the `default` profile, the following command will create the proxy file:
``` shell
cd /path/to/cloned/pentadactyl-pm/
# On clean profile, ensure that 'extensions' directory exists inside of the profile directory.
echo "$(pwd)/pentadactyl" >~/'.moonchild productions/pale moon'/*.default/extensions/pentadactyl@addons.palemoon.org
```
Once you installed Pentadactyl via the proxy file, restart the browser. Afterwards, you can use `:rehash` command to reload the extension without further browser restarts. Moreover, you can bind it to a key chord in your `~/.pentadactylrc`:
``` viml
nmap -ex <C-r> :rehash
```
[1]: https://developer.mozilla.org/en-US/Add-ons/Setting_up_extension_development_environment#Firefox_extension_proxy_file

View File

@@ -17,18 +17,12 @@ var Browser = Module("browser", XPCOM(Ci.nsISupportsWeakReference, ModuleBase),
this.progressListener);
util.addObserver(this);
this._unoverlay = overlay.overlayObject(FullZoom, {
get siteSpecific() { return false; },
set siteSpecific(val) {}
});
config.tabbrowser.addTabsProgressListener(this.tabsProgressListener);
},
destroy: function () {
this.cleanupProgressListener();
this.observe.unregister();
this._unoverlay();
config.tabbrowser.removeTabsProgressListener(this.tabsProgressListener);
},

View File

@@ -2069,13 +2069,6 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
statusline.update();
dactyl.log(_("dactyl.initialized", config.appName), 0);
dactyl.initialized = true;
util.delay(() => {
if (services.focus.activeWindow === window)
overlay.activeWindow = window;
util.flushLateMethods(dactyl);
});
}
});

View File

@@ -618,9 +618,6 @@ var Events = Module("events", {
util.trapErrors("addEditActionListener",
DOM(elem).editor, editor);
if (elem == window)
overlay.activeWindow = window;
overlay.setData(elem, "had-focus", true);
if (event.target instanceof Ci.nsIDOMXULTextBoxElement)
if (Events.isHidden(elem, true))
@@ -873,6 +870,12 @@ var Events = Module("events", {
autocommands.trigger("Fullscreen", { url: this._fullscreen ? "on" : "off", state: this._fullscreen });
}
statusline.updateZoomLevel();
},
activate: function onActivate(event) {
if (event.target === window) {
overlay.activeWindow = window;
}
}
},

View File

@@ -49,10 +49,10 @@ var MOW = Module("mow", {
events.listen(window, this, "windowEvents");
modules.mow = this;
//let fontSize = DOM(document.documentElement).style.fontSize;
let fontSize = DOM(document.documentElement).style.fontSize;
styles.system.add("font-size", "dactyl://content/buffer.xhtml",
// "body { font-size: " + fontSize + "; } \
"html|html > xul|scrollbar { visibility: collapse !important; }",
"body { font-size: " + fontSize + "; } \
html|html > xul|scrollbar { visibility: collapse !important; }",
true);
overlay.overlayWindow(window, {

View File

@@ -36,8 +36,6 @@ var StatusLine = Module("statusline", {
]
});
config.tabbrowser.getStatusPanel().hidden = true;
if (this.statusBar.localName == "toolbar") {
styles.system.add("addon-bar", config.styleableChrome, String.raw`
#status-bar, #dactyl-status-bar { margin-top: 0 !important; }

View File

@@ -64,8 +64,7 @@ var Config = Module("config", ConfigBase, {
},
get toolbars() {
let navbar = window.document.getElementById("nav-bar");
return window.getTogglableToolbars().concat(navbar);
return Array.from(DOM.XPath("//*[@toolbarname]", window.document));
},
removeTab: function removeTab(tab) {

View File

@@ -2,20 +2,20 @@
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:em="http://www.mozilla.org/2004/em-rdf#">
<Description about="urn:mozilla:install-manifest"
em:id="pentadactyl@dactyl.googlecode.com"
em:id="pentadactyl@addons.palemoon.org"
em:type="2"
em:name="Pentadactyl"
em:version="1.2pre"
em:description="Firefox for Vim and Links addicts"
em:version="1.2pre-pm-3"
em:description="Pale Moon for Vim and Links addicts"
em:homepageURL="http://5digits.org/pentadactyl"
em:bootstrap="true"
em:multiprocessCompatible="false"
em:strictCompatibility="true">
<em:creator>Kris Maglione, Doug Kearns</em:creator>
<em:developer>Kris Maglione</em:developer>
<em:developer>Doug Kearns</em:developer>
<em:contributor>Andriy Kmit' (Андрій Кміть)</em:contributor>
<em:contributor>anekos</em:contributor>
<em:contributor>teramako</em:contributor>
<em:contributor>Viktor Kojouharov (Виктор Кожухаров)</em:contributor>
@@ -31,8 +31,8 @@
<em:targetApplication>
<Description
em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
em:minVersion="38.0"
em:id="{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4}"
em:minVersion="27.0"
em:maxVersion="50.*"/>
</em:targetApplication>
</Description>