@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add hotkey for hiding file tree

Summary:
In Differential, viewer can hit 'f' key to hide/show file tree on the left
side. Useful on narrow monitors.

Test Plan: Open any diff in Differential tool, hit 'f', watch file tree disappears

Reviewers: vrana, mattchoi, epriestley

Reviewed By: vrana

CC: aran, epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D3844

+24
+12
webroot/rsrc/css/aphront/phabricator-nav-view.css
··· 95 95 margin-left: 216px; 96 96 } 97 97 98 + .device-desktop .local-nav-collapsed .phabricator-nav-local { 99 + width: 0px !important; 100 + } 101 + 102 + .device-desktop .local-nav-collapsed .phabricator-nav-drag { 103 + display: none; 104 + } 105 + 106 + .device-desktop .local-nav-collapsed .phabricator-nav-content { 107 + margin-left: 2.5em !important; 108 + } 109 + 98 110 .phabricator-nav-col span { 99 111 display: block; 100 112 font-weight: bold;
+7
webroot/rsrc/js/application/core/behavior-phabricator-nav.js
··· 16 16 var app = JX.$(config.appID); 17 17 var content = JX.$(config.contentID); 18 18 var local = config.localID ? JX.$(config.localID) : null; 19 + var main = JX.$(config.mainID); 19 20 20 21 21 22 // - Sliding Menu Animations --------------------------------------------------- ··· 165 166 } 166 167 JX.DOM.alterClass(document.body, 'jx-drag-col', false); 167 168 dragging = false; 169 + }); 170 + 171 + var collapsed = false; 172 + JX.Stratcom.listen('differential-filetree-toggle', null, function(e) { 173 + collapsed = !collapsed; 174 + JX.DOM.alterClass(main, 'local-nav-collapsed', collapsed); 168 175 }); 169 176 } 170 177
+5
webroot/rsrc/js/application/differential/behavior-keyboard-nav.js
··· 224 224 }) 225 225 .register(); 226 226 227 + new JX.KeyboardShortcut('f', 'Toggle file tree.') 228 + .setHandler(function(manager) { 229 + JX.Stratcom.invoke('differential-filetree-toggle'); 230 + }) 231 + .register(); 227 232 228 233 new JX.KeyboardShortcut('h', 'Collapse or expand the file display.') 229 234 .setHandler(function(manager) {