mirror of
https://github.com/jesse-r-s-hines/obsidian-open-tab-settings.git
synced 2026-07-22 05:43:41 +00:00
Support mobile
This commit is contained in:
parent
85b9a1c636
commit
91fd99d9c8
2 changed files with 3 additions and 4 deletions
|
|
@ -6,5 +6,5 @@
|
|||
"description": "Add settings to open in new tab by default and prevent duplicate tabs.",
|
||||
"author": "jesse-r-s-hines",
|
||||
"authorUrl": "https://github.com/jesse-r-s-hines",
|
||||
"isDesktopOnly": true
|
||||
"isDesktopOnly": false
|
||||
}
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
import {
|
||||
App, Plugin, PluginSettingTab, Setting, Workspace, WorkspaceLeaf, WorkspaceRoot, WorkspaceFloating,
|
||||
View, TFile, PaneType, WorkspaceTabs,
|
||||
WorkspaceItem,
|
||||
View, TFile, PaneType, WorkspaceTabs, WorkspaceItem, Platform,
|
||||
} from 'obsidian';
|
||||
import { PaneTypePatch, TabGroup } from './types';
|
||||
import * as monkeyAround from 'monkey-around';
|
||||
|
|
@ -203,7 +202,7 @@ export default class OpenTabSettingsPlugin extends Plugin {
|
|||
|
||||
let dest: TabGroup|undefined;
|
||||
let index = 0;
|
||||
if (this.settings.openNewTabsInOtherTabGroup) {
|
||||
if (this.settings.openNewTabsInOtherTabGroup && !Platform.isPhone) {
|
||||
// check if there is a split in the same window
|
||||
const otherTabGroup = this.getAllTabGroups(activeLeaf.getRoot()).filter(g => g !== activeTabGroup).at(-1);
|
||||
if (otherTabGroup) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue