Commit Graph

421 Commits

Author SHA1 Message Date
Piro / YUKI Hiroshi
0bfedf7480 Attach new tab to the current tab only if it seems actually opened with relatedToCurrent=true
There are two keys: tab.owner and gBrowser._lastRelatedTab.
tab.owner can appear even if the tab is opened without relatedToCurrent=true, for example, about:addons.
On the other hand, gBrowser._lastRelatedTab is updated only when relatedToCurrent=true.
So it seems more better trigger to attach a new tab to the parent automatically.
This should fix #1065 (https://github.com/5digits/dactyl/issues/140)
2016-02-16 09:46:34 +09:00
Piro / YUKI Hiroshi
1126c9f211 Output log more safely #1067 2016-02-15 23:45:58 +09:00
Piro / YUKI Hiroshi
b8333261b5 Don't open new tab as a child of the current if extensions.treestyletab.autoAttach=false #1062 2016-02-14 18:41:42 +09:00
Piro / YUKI Hiroshi
bbffed0d5d Highlight tabs more slowly 2016-02-13 04:59:52 +09:00
Piro / YUKI Hiroshi
2c6534a771 Apply animation more smoothly 2016-02-13 04:57:45 +09:00
Piro / YUKI Hiroshi
ea99c3cf71 Fix regression: open bookmarks as separate tabs for user preference #949 2016-02-13 04:40:16 +09:00
Piro / YUKI Hiroshi
6ca9f61115 Calculate style rules for narrow scroll bar more intelligently #240 2016-02-13 01:50:15 +09:00
Piro / YUKI Hiroshi
0a86767afb Update style rules for the narrow scroll bar when the tab bar becomes overflow 2016-02-13 01:11:44 +09:00
Piro / YUKI Hiroshi
573f1d179d Move some utilities from TSTBase to TSTUtils 2016-02-13 01:01:44 +09:00
Piro / YUKI Hiroshi
fc38c81839 Collapse/expand the tab bar by middle click on the splitter #242 2016-02-12 23:06:49 +09:00
Piro / YUKI Hiroshi
0ab8961894 Bump copyright year to 2016 2016-02-12 22:39:49 +09:00
YUKI Hiroshi
09bb874f34 Highlight tabs more slowly 2016-02-12 20:22:12 +09:00
YUKI Hiroshi
c35a01035d Show animation for highlighted tab more slowly 2016-02-12 20:19:25 +09:00
YUKI Hiroshi
9eb445ce99 Highlight modified tab 2016-02-12 20:15:29 +09:00
YUKI Hiroshi
3de447706c Move the tab correctly 2016-02-12 19:32:59 +09:00
YUKI Hiroshi
e2aff9e21f Keep tree's position when a root tab is closed 2016-02-12 19:30:50 +09:00
YUKI Hiroshi
7050d5994c Revert "Don't replace parent tab with group tab if it ls already replaced"
This reverts commit c3efa9bd13.
2016-02-12 19:29:15 +09:00
YUKI Hiroshi
c3efa9bd13 Don't replace parent tab with group tab if it ls already replaced 2016-02-12 19:27:51 +09:00
YUKI Hiroshi
7480757a0f Disable animation for temporary modification of tree 2016-02-12 19:26:26 +09:00
YUKI Hiroshi
b4f153d083 Add ability to replace closed parent tab with new dummy tab #133 2016-02-12 19:23:56 +09:00
YUKI Hiroshi
8898534f10 Fix indent 2016-02-12 16:48:31 +09:00
YUKI Hiroshi
25e7783899 Don't update order of tab contents infinitely 2016-02-12 16:48:08 +09:00
YUKI Hiroshi
75050af492 Put closebox in each tab rightside 2016-02-12 16:15:37 +09:00
YUKI Hiroshi
12757cf2c3 Update the order of tab contents, when they are dynamically changed. 2016-02-12 16:10:56 +09:00
YUKI Hiroshi
e531d8cd93 Output debug log to the browser console also 2016-02-10 19:10:46 +09:00
YUKI Hiroshi
fe7cf571f5 Move XPath related utilities from TSTBase to TSTUtils 2016-02-10 17:42:37 +09:00
YUKI Hiroshi
7fdc114ed6 Output more debug log 2016-01-25 17:28:59 +09:00
YUKI Hiroshi
84c0822592 Disallow to move a new tab by loadOneTab itself 2016-01-25 17:28:22 +09:00
YUKI Hiroshi
355b3f181b Simplify 2016-01-25 17:28:06 +09:00
YUKI Hiroshi
0dab3f30ec Store "internally moving" for individual tab for tab events about individual tab 2016-01-25 17:00:03 +09:00
Piro / YUKI Hiroshi
d5b05b6017 Reduce eval hack 2016-01-22 00:13:56 +09:00
YUKI Hiroshi
fdc472441b Move codes to override behaviors around bookmarks to a JS code module.
Moreover, it reduces use of eval.
2016-01-21 18:23:11 +09:00
YUKI Hiroshi
1b8f61f778 Place newly opened tab to the correct position 2016-01-19 20:27:43 +09:00
YUKI Hiroshi
e2c93cc59c Introduce new API to open orphan tab intentionally.
It is required to open a new tab with "relatedToCurrent" as orphaned.
This solves the problem https://github.com/piroor/treestyletab/issues/1013#issuecomment-172780573
2016-01-19 18:09:49 +09:00
YUKI Hiroshi
2ede365e18 Delete flags from the service object when they are expired 2016-01-19 18:04:29 +09:00
YUKI Hiroshi
f4fff387b1 Make new tabs opened with "relatedToCurrent:true" as a child of the current tab 2016-01-19 17:47:45 +09:00
YUKI Hiroshi
28ba3b54ad Fixup tree structure after tab move correctly.
Keyboard shortcuts Ctrl-Shift-PageUp/PageDown sometimes broke the tree.
This commit fixes following cases:

case 1:
  * [-] A
    * A-1 <= Ctrl-Shift-PageDown at here
  * [+] B

  then they should be:

  * A
  * [+] B
  * A-1

  but actually:

  * [-] A
  * [+] B
  *   A-1 <= still a child of A!

case 2:

  * A
  * [-] B
    * [+] B-1 <= Ctrl-Shift-PageUp at here

  then they should be:

  * A
  * [+] B-1
  * B

  but actually:

  * A
  *  [+] B-1 <= still a child of B!
  * [-] B
2016-01-18 18:43:36 +09:00
YUKI Hiroshi
1623bc43a9 Output more logs for debugging 2016-01-18 17:02:53 +09:00
YUKI Hiroshi
63e291b603 Don't change scroll position of the tab bar when it is expanded from shrunken 2015-12-25 17:21:50 +09:00
YUKI Hiroshi
44825b4e24 Add more debug logs around fullscreen toggling 2015-12-25 16:17:27 +09:00
Piro / YUKI Hiroshi
21715d2c3c Don't touch missing "detail" information of TabAttrModified event on Firefox 38 #1010 2015-12-14 23:26:00 +09:00
Piro / YUKI Hiroshi
34278450e1 Add a secret preference to disable the safeguard for infinity promoting of all children #988 2015-11-30 01:04:54 +09:00
Piro / YUKI Hiroshi
184555c3fa Update insertion position info for old previous/next sibling elements too #735 2015-11-30 00:43:59 +09:00
Piro / YUKI Hiroshi
6cf8e5ee25 Reattach a moved tab to its preferred parent, for moving by Ctrl-Sihft-PageUp.
See also: https://github.com/piroor/treestyletab/issues/998#issuecomment-160177595
2015-11-28 02:31:22 +09:00
Piro / YUKI Hiroshi
191bb0ce26 Output more debug messages 2015-11-28 02:23:03 +09:00
YUKI Hiroshi
92e03c52a9 Control "muted" status of descendant tabs if the tab has a subtree and they are collapsed 2015-11-19 20:20:15 +09:00
YUKI Hiroshi
38928625a9 Fix indent 2015-11-19 19:41:26 +09:00
YUKI Hiroshi
d0cfd42c02 Apply virtual muted status for the parent tab correctly 2015-11-19 19:40:43 +09:00
YUKI Hiroshi
01587b928d Observe changes of "muted" attribute of tabs 2015-11-19 19:29:09 +09:00
YUKI Hiroshi
1d30207dc0 Apply soundplaying attribute restored from session as the really-sound-playing state 2015-11-19 19:11:41 +09:00