MacBookPro.lan 2026-4-13:21:8:15

This commit is contained in:
oskar
2026-04-13 21:08:16 +02:00
parent ae109198ac
commit 4663a35885
35 changed files with 8069 additions and 1882 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"theme": "system", "theme": "system",
"cssTheme": "Minimal", "cssTheme": "Minimal",
"baseFontSize": 25.5, "baseFontSize": 26,
"enabledCssSnippets": [ "enabledCssSnippets": [
"pdf_darkmode", "pdf_darkmode",
"query_header_title", "query_header_title",
+2 -1
View File
@@ -37,5 +37,6 @@
"note-aliases", "note-aliases",
"share-note", "share-note",
"templater-obsidian", "templater-obsidian",
"link-tree" "link-tree",
"file-tree-alternative"
] ]
+12 -10
View File
File diff suppressed because one or more lines are too long
+12 -1
View File
@@ -1 +1,12 @@
{"id":"breadcrumbs","name":"Breadcrumbs","version":"4.4.3","minAppVersion":"1.0.0","description":"Add structured hierarchies to your notes","author":"SkepticMystic","authorUrl":"https://github.com/SkepticMystic/breadcrumbs","fundingUrl":"https://github.com/SkepticMystic/breadcrumbs#donations","helpUrl":"https://publish.obsidian.md/breadcrumbs-docs","isDesktopOnly":false} {
"id": "breadcrumbs",
"name": "Breadcrumbs",
"version": "4.4.4",
"minAppVersion": "1.0.0",
"description": "Add structured hierarchies to your notes",
"author": "SkepticMystic",
"authorUrl": "https://github.com/SkepticMystic/breadcrumbs",
"fundingUrl": "https://github.com/SkepticMystic/breadcrumbs#donations",
"helpUrl": "https://publish.obsidian.md/breadcrumbs-docs",
"isDesktopOnly": false
}
+1 -1
View File
File diff suppressed because one or more lines are too long
+9 -9
View File
@@ -1,11 +1,11 @@
{ {
"id": "cmdr", "id": "cmdr",
"name": "Commander", "name": "Commander",
"version": "0.5.4", "version": "0.5.5",
"minAppVersion": "1.4.0", "minAppVersion": "1.4.0",
"description": "Customize your workspace by adding commands everywhere, create Macros and supercharge your mobile toolbar.", "description": "Customize your workspace by adding commands everywhere, create Macros and supercharge your mobile toolbar.",
"author": "jsmorabito & phibr0", "author": "jsmorabito & phibr0",
"authorUrl": "https://github.com/phibr0", "authorUrl": "https://github.com/phibr0",
"fundingUrl": "https://ko-fi.com/phibr0", "fundingUrl": "https://ko-fi.com/phibr0",
"isDesktopOnly": false "isDesktopOnly": false
} }
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"id": "editing-toolbar", "id": "editing-toolbar",
"name": "Editing Toolbar", "name": "Editing Toolbar",
"version": "3.2.7", "version": "4.0.5",
"minAppVersion": "0.14.0", "minAppVersion": "0.14.0",
"description": "The Obsidian Editing Toolbar is modified from cmenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.", "description": "The Obsidian Editing Toolbar is modified from cmenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.",
"author": "Cuman", "author": "Cuman",
File diff suppressed because it is too large Load Diff
+29
View File
@@ -0,0 +1,29 @@
{
"openViewOnStart": true,
"ribbonIcon": false,
"showRootFolder": true,
"showFilesFromSubFolders": true,
"searchFunction": true,
"allSearchOnlyInFocusedFolder": false,
"showFilesFromSubFoldersButton": true,
"revealActiveFileButton": false,
"excludedExtensions": "",
"hideAttachments": false,
"attachmentsFolderName": "attachments",
"folderIcon": "box-folder",
"folderCount": true,
"folderCountOption": "notes",
"evernoteView": "Vertical",
"filePreviewOnHover": false,
"iconBeforeFileName": true,
"sortFilesBy": "name",
"sortReverse": false,
"sortFoldersBy": "name",
"fixedHeaderInFileList": true,
"createdYaml": false,
"fileNameIsHeader": false,
"folderNote": false,
"deleteFileOption": "trash",
"showFileNameAsFullPath": false,
"bookmarksEvents": false
}
File diff suppressed because one or more lines are too long
+11
View File
@@ -0,0 +1,11 @@
{
"id": "file-tree-alternative",
"name": "File Tree Alternative",
"version": "2.6.0",
"minAppVersion": "0.15.0",
"description": "This plugin allows you to have an alternative file tree view.",
"author": "Ozan Tellioglu",
"authorUrl": "https://www.ozan.pl",
"fundingUrl": "https://ko-fi.com/ozante",
"isDesktopOnly": false
}
+535
View File
@@ -0,0 +1,535 @@
/* @settings
name: File Tree Alternative Plugin
id: file-tree-alternative-plugin
settings:
# Folder Pane Styles
-
id: oz-fta-folder-pane-heading
title: Folder Pane Styles
description: Style settings dedicated for only folder pane
type: heading
level: 1
collapsed: true
-
id: oz-fta-folder-font-size
title: Folder Pane | Folder Name Font Size
description: Set folder pane font size in px
type: variable-number
default: 14
format: px
-
id: oz-fta-folder-icon-color
title: Folder Pane | Collapse/Expand Icon Color
description: Set the color of folder icons
type: variable-color
format: hex
default: '#2d8ff7'
-
id: oz-fta-folder-indendation-guide-color
title: Folder Pane | Indendation Guide Color
description: Set the color of indendation guide lines
type: variable-color
format: hex
default: '#ededeb'
-
id: oz-fta-folder-pane-file-name-color
title: Folder Pane | Folder Name Color
description: Set the color of names
type: variable-color
format: hex
default: '#'
# File Pane Styles
-
id: oz-fta-file-pane-heading
title: File Pane Styles
description: Style settings dedicated for only file pane
type: heading
level: 1
collapsed: true
-
id: oz-fta-file-font-size
title: File Pane | File Name Font Size
description: Set file pane font size in px
type: variable-number
default: 13
format: px
-
id: oz-fta-file-pane-file-name-color
title: File Pane | File Name Color
description: Set the color of names
type: variable-color
format: hex
default: '#'
-
id: oz-fta-file-pane-foldername-color
title: File Pane | Header Folder Name Color
description: Set the color of folder name in the file pane
type: variable-color
format: hex
default: '#'
# All Panes Styles
-
id: oz-fta-all-panes-heading
title: All Panes
description: Common style settings for both folder and file panes
type: heading
level: 1
collapsed: true
-
id: oz-fta-header-background-color
title: All Panes | Header Background Color
description: Set the background color of headers in both file and folder panes
type: variable-color
format: hex
default: '#'
-
id: oz-fta-header-icon-colors
title: All Panes | Header Action Icons Color
description: Set the color of icons in file and folder panes
type: variable-color
format: hex
alt-format:
-
id: oz-fta-header-icon-colors-accent-rgb
format: rgb
default: '#'
-
id: oz-fta-all-panes-active-text-color
title: All Panes | Active File/Folder Name Color
description: Set the color of active file and folder name
type: variable-color
format: hex
default: '#'
-
id: oz-fta-file-pane-active-file-background-color
title: File Pane | Active File Background Color
description: Set the color of active file background color
type: variable-color
format: hex
default: '#'
*/
.theme-light,
.theme-dark {
--oz-fta-folder-font-size: 13px;
--oz-fta-file-font-size: 12px;
--oz-fta-folder-icon-color: var(--interactive-accent);
--oz-fta-folder-indendation-guide-color: var(--text-muted);
--oz-fta-header-background-color: var(--background-secondary-alt);
--oz-fta-header-icon-colors: var(--text-muted);
--oz-fta-file-pane-foldername-color: var(--text-normal);
--oz-fta-folder-pane-file-name-color: var(--text-normal);
--oz-fta-header-icon-colors-accent-rgb: var(--interactive-accent-hover);
--oz-fta-all-panes-active-text-color: var(--text-normal);
--oz-fta-file-pane-active-file-background-color: var(--background-secondary-alt);
--oz-fta-file-pane-file-name-color: var(--text-muted);
}
.oz-file-tree-header {
color: var(--oz-fta-file-pane-foldername-color);
background: var(--oz-fta-header-background-color);
margin-top: 3px;
font-size: 15px;
font-weight: bold;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
align-items: center;
width: fit-content;
min-width: -webkit-fill-available;
min-width: fill-available;
height: fit-content;
padding: 5px 0px 5px;
border-radius: 8px;
}
.oz-nav-action-button {
color: var(--oz-fta-header-icon-colors);
display: inline-block;
padding: 0px 0px 0px 2px;
margin-left: 5px;
opacity: 0.5;
border-radius: 8px;
opacity: 1;
}
.oz-nav-action-button:hover {
opacity: 0.6;
}
.oz-nav-action-button svg {
vertical-align: middle !important;
}
.oz-input-container {
margin-bottom: 3px !important;
margin-top: 3px !important;
height: 30px;
}
.oz-input-container input {
width: 100%;
}
.oz-nav-buttons-right-block {
text-align: right;
display: flex;
width: fit-content;
height: min-content;
}
.oz-nav-file-title {
color: var(--oz-fta-file-pane-file-name-color);
font-size: var(--oz-fta-file-font-size);
width: calc(100% - 30px);
display: flex;
white-space: nowrap;
min-width: 100%;
cursor: pointer;
line-height: 19px;
border-radius: 3px;
padding: 1px 2px 0px 2px;
min-width: 100%;
border: 1px solid transparent;
}
.oz-nav-file-title .oz-nav-file-title-content {
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
display: inline-block;
}
.oz-nav-file {
border-bottom: 1px solid var(--divider-color);
}
div.oz-nav-file.is-active,
div.oz-nav-file.is-active div.oz-nav-file-title,
div.oz-nav-file.is-active div.oz-nav-file-title-content {
background-color: var(--oz-fta-file-pane-active-file-background-color);
color: var(--oz-fta-all-panes-active-text-color);
font-weight: bold;
}
.is-folder-active {
color: var(--oz-fta-all-panes-active-text-color) !important;
font-weight: bold;
}
.oz-nav-file-tag {
/* @Consider */
color: var(--text-muted);
background-color: var(--background-secondary-alt);
border-radius: 3px;
font-size: 9px;
font-weight: 600;
letter-spacing: 0.05em;
margin: 0px 2px 0px 4px;
text-transform: uppercase;
align-self: center;
padding: 0px 4px 0px 4px;
vertical-align: middle !important;
line-height: 13px;
}
div.workspace-leaf-content[data-type='file-tree-view'] > div.view-content {
padding: 10px 5px 5px 5px;
}
.oz-flex-container {
display: flex;
flex-direction: row;
justify-content: space-between;
height: min-content;
padding: 2px 2px 2px 2px;
}
.oz-folders-action-items {
text-align: center;
padding: 3px 2px 0px 2px;
}
.oz-folders-action-items,
.oz-flex-container {
background: var(--oz-fta-header-background-color);
border: 1px solid var(--oz-fta-header-background-color);
margin-bottom: 3px;
border-radius: 8px;
stroke-width: 2px;
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
}
.oz-explorer-container {
padding-left: 3px !important;
padding-right: 3px !important;
}
.oz-file-tree-files {
padding-top: 3px !important;
}
.drag-entered,
.oz-folder-element:hover,
.oz-nav-file:hover {
background-color: var(--background-secondary-alt);
color: var(--text-normal);
}
.oz-nav-file {
margin-left: 3px;
padding-right: 3px;
}
.oz-folder-contents {
will-change: transform, opacity, height;
margin-left: 6;
padding-left: 14px;
border-left: 2px solid var(--oz-fta-folder-indendation-guide-color);
margin-left: 5px !important;
}
.oz-folder-toggle {
width: 1em;
height: 1em;
margin-right: 10px;
cursor: pointer;
vertical-align: middle;
}
.treeview {
position: relative;
padding: 0px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
vertical-align: middle;
}
.oz-folder-type {
text-transform: uppercase;
font-family: monospace;
font-size: 0.6em;
vertical-align: middle;
display: inline-block;
}
.oz-folder-name {
color: var(--oz-fta-folder-pane-file-name-color);
font-size: var(--oz-fta-folder-font-size);
vertical-align: middle;
display: inline-block;
}
div.oz-folder-name.is-root-folder {
font-size: calc(var(--oz-fta-folder-font-size) + 2px);
}
.oz-icon-div {
display: inline-block;
}
.oz-folder-line {
display: flex;
flex-flow: row;
white-space: nowrap;
min-width: 100%;
}
.oz-folder-block {
display: flex;
flex-grow: 1;
padding-top: 2px;
}
.oz-folder-count {
margin-left: auto;
height: 1.4em;
display: flex;
justify-content: center;
}
.oz-folder-element {
line-height: 1.4em;
padding: 0px 0px 0px 0px;
}
.oz-folders-tree-wrapper {
overflow: hidden;
overflow-y: auto;
padding-bottom: 5px;
padding-left: 8px;
height: 100%;
}
.oz-input-container > input {
padding-left: 8px;
padding-right: 4px;
}
.file-tree-container {
display: flex;
flex-direction: column;
height: 100%;
max-height: 100%;
}
.file-tree-plugin-view {
height: 100%;
}
.oz-folder-pane {
display: block;
width: 100%;
overflow-y: auto;
height: 50%;
resize: vertical;
}
.oz-file-list-pane {
display: block;
width: 100%;
overflow-y: auto;
flex: 1;
}
.oz-coffee-div {
text-align: center;
margin-top: 10px;
}
#file-tree-divider {
height: 3.8px;
opacity: 0.3;
cursor: row-resize;
margin-bottom: 5px;
border-bottom: 3px solid var(--text-muted);
}
div#file-tree-divider.active-divider {
background-color: var(--interactive-accent);
border-bottom: 0.5px solid var(--interactive-accent);
}
#file-tree-divider:hover {
background-color: var(--text-muted);
}
.file-tree-container-horizontal {
display: flex;
flex-direction: row;
height: 100%;
max-width: 100%;
}
.oz-folder-pane-horizontal {
display: block;
width: 50%;
overflow-y: auto;
height: 100%;
resize: horizontal;
}
.oz-file-list-pane-horizontal {
display: block;
height: 100%;
overflow-y: auto;
flex: 1;
}
#file-tree-divider-horizontal {
margin-left: 5px;
width: 3.8px;
opacity: 0.3;
cursor: col-resize;
margin-right: 3px;
border-right: 3px solid var(--text-muted);
}
div#file-tree-divider-horizontal.active-divider {
background-color: var(--interactive-accent);
border-bottom: 0.5px solid var(--interactive-accent);
}
#file-tree-divider-horizontal:hover {
background-color: var(--text-muted);
}
.file-tree-header-fixed {
position: sticky;
top: 0;
padding-left: 4px;
padding-right: 4px;
z-index: 100;
}
.file-tree-files-fixed {
display: flex;
flex-direction: column;
}
.file-tree-files-fixed-with-search {
display: flex;
flex-direction: column;
}
svg.oz-folder-toggle path {
fill: var(--oz-fta-folder-icon-color) !important;
}
/* Solution for React-Icon Center Issue */
.oz-folder-name svg {
vertical-align: middle !important;
}
.oz-nav-file-icon {
line-height: 1;
display: inline-block;
font-weight: normal;
font-style: normal;
font-variant: normal;
margin-right: 2px;
padding-bottom: 2.5px;
vertical-align: middle;
}
/* Mobile Adjustments */
.is-mobile .oz-nav-file-title {
line-height: 21px;
}
.is-mobile .oz-flex-container {
height: 31px;
}
.is-mobile .oz-folder-name.is-root-folder {
font-size: calc(var(--oz-fta-folder-font-size) + 2.5px);
}
.is-mobile .oz-folder-name {
font-size: var(--oz-fta-folder-font-size);
}
.is-mobile div.oz-nav-file-title .nav-file-title-content {
font-size: calc(var(--oz-fta-file-font-size) + 3px);
}
.is-mobile .oz-input-container > input {
height: 33px;
}
.is-mobile .oz-nav-action-button svg {
transform: scale(1.2);
}
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"id": "obsidian-asciimath", "id": "obsidian-asciimath",
"name": "asciimath", "name": "asciimath",
"version": "0.8.1", "version": "0.8.2",
"minAppVersion": "0.15.0", "minAppVersion": "0.15.0",
"description": "Add asciimath support for Obsidian.", "description": "Add asciimath support for Obsidian.",
"author": "widcardw", "author": "widcardw",
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -149,7 +149,7 @@
} }
} }
}, },
"previousRelease": "2.21.2", "previousRelease": "2.22.0",
"showReleaseNotes": true, "showReleaseNotes": true,
"compareManifestToPluginVersion": true, "compareManifestToPluginVersion": true,
"showNewVersionNotification": true, "showNewVersionNotification": true,
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"id": "obsidian-excalidraw-plugin", "id": "obsidian-excalidraw-plugin",
"name": "Excalidraw", "name": "Excalidraw",
"version": "2.21.2", "version": "2.22.0",
"minAppVersion": "1.5.7", "minAppVersion": "1.5.7",
"description": "Sketch Your Mind. An Obsidian plugin to edit and view Excalidraw drawings. Enter the world of 4D Visual PKM.", "description": "Sketch Your Mind. An Obsidian plugin to edit and view Excalidraw drawings. Enter the world of 4D Visual PKM.",
"author": "Zsolt Viczian", "author": "Zsolt Viczian",
File diff suppressed because one or more lines are too long
+254 -254
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -6,5 +6,5 @@
"description": "Integrate Git version control with automatic backup and other advanced features.", "description": "Integrate Git version control with automatic backup and other advanced features.",
"isDesktopOnly": false, "isDesktopOnly": false,
"fundingUrl": "https://ko-fi.com/vinzent", "fundingUrl": "https://ko-fi.com/vinzent",
"version": "2.38.0" "version": "2.38.1"
} }
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"id": "obsidian-latex-suite", "id": "obsidian-latex-suite",
"name": "Latex Suite", "name": "Latex Suite",
"version": "1.11.0", "version": "1.11.3",
"minAppVersion": "1.0.0", "minAppVersion": "1.0.0",
"description": "Make typesetting LaTeX math as fast as handwriting through snippets, text expansion, and editor enhancements", "description": "Make typesetting LaTeX math as fast as handwriting through snippets, text expansion, and editor enhancements",
"author": "artisticat", "author": "artisticat",
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"id": "obsidian-markmind", "id": "obsidian-markmind",
"name": "Markmind", "name": "Markmind",
"version": "3.4.6", "version": "3.4.7",
"minAppVersion": "0.9.12", "minAppVersion": "0.9.12",
"description": "This is a mindmap , outline tool for obsidian.", "description": "This is a mindmap , outline tool for obsidian.",
"author": "Mark", "author": "Mark",
+10 -1
View File
@@ -3794,7 +3794,7 @@ span.mm-sline .line {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
margin-right:4px; margin-right: 4px;
cursor: pointer; cursor: pointer;
border-radius: 5px; border-radius: 5px;
background-color: #333; background-color: #333;
@@ -3814,4 +3814,13 @@ span.mm-sline .line {
.theme-light .cm-mindmap-mobile div svg { .theme-light .cm-mindmap-mobile div svg {
fill: #333; fill: #333;
}
.mm-node-size .mm-node-edit {
max-width: none !important;
}
.mm-node-size .mm-node-icon {
display: flex;
} }
+1 -1
View File
@@ -8,7 +8,7 @@
"lineWidth": 40, "lineWidth": 40,
"lineWidthWide": 50, "lineWidthWide": 50,
"maxWidth": 98, "maxWidth": 98,
"textNormal": 25.5, "textNormal": 26,
"textSmall": 18, "textSmall": 18,
"imgGrid": false, "imgGrid": false,
"imgWidth": "img-default-width", "imgWidth": "img-default-width",
+1 -1
View File
@@ -5,7 +5,7 @@
{ {
"id": 1, "id": 1,
"name": "Ma bibliothèque", "name": "Ma bibliothèque",
"lastUpdate": 1775656727556 "lastUpdate": 1776103693814
} }
], ],
"renderCitations": true, "renderCitations": true,
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -1,9 +1,9 @@
{ {
"id": "templater-obsidian", "id": "templater-obsidian",
"name": "Templater", "name": "Templater",
"version": "2.18.1", "version": "2.19.0",
"description": "Create and use templates", "description": "Create and use templates",
"minAppVersion": "1.5.0", "minAppVersion": "1.12.2",
"author": "SilentVoid", "author": "SilentVoid",
"authorUrl": "https://github.com/SilentVoid13", "authorUrl": "https://github.com/SilentVoid13",
"helpUrl": "https://silentvoid13.github.io/Templater/", "helpUrl": "https://silentvoid13.github.io/Templater/",
+83 -14
View File
@@ -1059,6 +1059,29 @@ var AppHelper = class {
} }
return !!((_c = (_b = cm5or6 == null ? void 0 : cm5or6.display) == null ? void 0 : _b.input) == null ? void 0 : _c.composing); return !!((_c = (_b = cm5or6 == null ? void 0 : cm5or6.display) == null ? void 0 : _b.input) == null ? void 0 : _c.composing);
} }
/**
* Unsafe method
*/
getVisibleLineRange() {
var _a;
const markdownView = this.unsafeApp.workspace.getActiveViewOfType(import_obsidian.MarkdownView);
if (!markdownView) {
return null;
}
const cm = markdownView.editor.cm;
if (!(cm == null ? void 0 : cm.visibleRanges) || !((_a = cm == null ? void 0 : cm.state) == null ? void 0 : _a.doc)) {
return null;
}
const visibleRanges = cm.visibleRanges;
if (visibleRanges.length === 0) {
return null;
}
const first = visibleRanges[0];
const last = visibleRanges[visibleRanges.length - 1];
const fromLine = cm.state.doc.lineAt(first.from).number - 1;
const toLine = cm.state.doc.lineAt(last.to).number - 1;
return { from: fromLine, to: toLine };
}
isMobile() { isMobile() {
return this.unsafeApp.isMobile; return this.unsafeApp.isMobile;
} }
@@ -7245,6 +7268,7 @@ var AutoCompleteSuggest = class _AutoCompleteSuggest extends import_obsidian7.Ed
this.previousLinksCacheInActiveFile = /* @__PURE__ */ new Set(); this.previousLinksCacheInActiveFile = /* @__PURE__ */ new Set();
this.keymapEventHandler = []; this.keymapEventHandler = [];
this.spareEditorSuggestContext = null; this.spareEditorSuggestContext = null;
this.predictableCycleState = null;
this.appHelper = new AppHelper(app); this.appHelper = new AppHelper(app);
this.statusBar = statusBar; this.statusBar = statusBar;
} }
@@ -7310,6 +7334,7 @@ var AutoCompleteSuggest = class _AutoCompleteSuggest extends import_obsidian7.Ed
ins.activeLeafChangeRef = app.workspace.on( ins.activeLeafChangeRef = app.workspace.on(
"active-leaf-change", "active-leaf-change",
async (_) => { async (_) => {
ins.predictableCycleState = null;
await ins.refreshCurrentFileTokens(); await ins.refreshCurrentFileTokens();
ins.refreshInternalLinkTokens(); ins.refreshInternalLinkTokens();
ins.updateFrontMatterToken(); ins.updateFrontMatterToken();
@@ -7345,32 +7370,76 @@ var AutoCompleteSuggest = class _AutoCompleteSuggest extends import_obsidian7.Ed
return; return;
} }
const cursor = editor.getCursor(); const cursor = editor.getCursor();
if (this.predictableCycleState) {
const state = this.predictableCycleState;
const currentCandidate = state.candidates[state.currentIndex];
const expectedCh = state.replacementStartCh + currentCandidate.length;
if (cursor.line === state.line && cursor.ch === expectedCh) {
state.currentIndex = (state.currentIndex + 1) % state.candidates.length;
const nextCandidate = state.candidates[state.currentIndex];
editor.replaceRange(
nextCandidate,
{ line: state.line, ch: state.replacementStartCh },
cursor
);
this.close();
this.debounceClose();
return;
}
this.predictableCycleState = null;
}
const currentToken = this.tokenizer.tokenize(editor.getLine(cursor.line).slice(0, cursor.ch)).last(); const currentToken = this.tokenizer.tokenize(editor.getLine(cursor.line).slice(0, cursor.ch)).last();
if (!currentToken) { if (!currentToken) {
return; return;
} }
let suggestion = this.tokenizer.tokenize( const candidates = this.collectPredictableCandidates(
editor.getRange({ line: Math.max(cursor.line - 50, 0), ch: 0 }, cursor) editor,
).reverse().slice(1).find((x) => x.startsWith(currentToken)); cursor,
if (!suggestion) { currentToken
suggestion = this.tokenizer.tokenize( );
editor.getRange(cursor, { if (candidates.length <= 1) {
line: Math.min(cursor.line + 50, editor.lineCount() - 1),
ch: 0
})
).find((x) => x.startsWith(currentToken));
}
if (!suggestion) {
return; return;
} }
const replacementStartCh = cursor.ch - currentToken.length;
this.predictableCycleState = {
originalToken: currentToken,
replacementStartCh,
line: cursor.line,
candidates,
currentIndex: 0
};
const suggestion = candidates[0];
editor.replaceRange( editor.replaceRange(
suggestion, suggestion,
{ line: cursor.line, ch: cursor.ch - currentToken.length }, { line: cursor.line, ch: replacementStartCh },
{ line: cursor.line, ch: cursor.ch } cursor
); );
this.close(); this.close();
this.debounceClose(); this.debounceClose();
} }
collectPredictableCandidates(editor, cursor, originalToken) {
var _a, _b;
const seen = /* @__PURE__ */ new Set();
const candidates = [];
const addIfNew = (token) => {
if (token.startsWith(originalToken) && token !== originalToken && !seen.has(token)) {
seen.add(token);
candidates.push(token);
}
};
const visibleRange = this.appHelper.getVisibleLineRange();
const rangeStart = (_a = visibleRange == null ? void 0 : visibleRange.from) != null ? _a : Math.max(cursor.line - 50, 0);
const rangeEnd = (_b = visibleRange == null ? void 0 : visibleRange.to) != null ? _b : Math.min(cursor.line + 50, editor.lineCount() - 1);
const textAbove = editor.getRange({ line: rangeStart, ch: 0 }, cursor);
this.tokenizer.tokenize(textAbove).reverse().slice(1).forEach(addIfNew);
const textBelow = editor.getRange(cursor, {
line: rangeEnd,
ch: editor.getLine(rangeEnd).length
});
this.tokenizer.tokenize(textBelow).forEach(addIfNew);
candidates.push(originalToken);
return candidates;
}
unregister() { unregister() {
this.app.vault.offref(this.modifyEventRef); this.app.vault.offref(this.modifyEventRef);
this.app.workspace.offref(this.activeLeafChangeRef); this.app.workspace.offref(this.activeLeafChangeRef);
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"id": "various-complements", "id": "various-complements",
"name": "Various Complements", "name": "Various Complements",
"version": "11.0.0", "version": "11.1.0",
"minAppVersion": "1.11.4", "minAppVersion": "1.11.4",
"description": "This plugin enables you to complete words like the auto-completion of IDE", "description": "This plugin enables you to complete words like the auto-completion of IDE",
"author": "tadashi-aikawa", "author": "tadashi-aikawa",
@@ -0,0 +1,24 @@
---
up:
- "[[sources/0 - cours/LOGOS S2/le savoir en mathématiques/Spinoza lettre 12 à Lodewijk Meyer|Spinoza lettre 12 à Lodewijk Meyer]]"
tags:
- s/philosophie/spinoza
aliases:
pdf: "[[sources/0 - cours/LOGOS S2/le savoir en mathématiques/(Camerini) La Lettre 12 et ses cercles non-concentriques.pdf|(Camerini) La Lettre 12 et ses cercles non-concentriques]]"
---
> [!PDF|yellow] [[sources/0 - cours/LOGOS S2/le savoir en mathématiques/(Camerini) La Lettre 12 et ses cercles non-concentriques.pdf#page=4&selection=86,0,128,1&color=yellow|(Camerini) La Lettre 12 et ses cercles non-concentriques, p.4]]
> Pour autant, si lon suit fidèlement le texte, Spinoza ne semble pas vouloir opérer une sélection entre ce qui est infini et ce qui ne lest pas. Le philosophe néerlandais ne veut pas distinguer entre un vrai et un faux, un bon et un mauvais infini, comme si, dans les six cas exposés, seuls trois dentre eux en méritaient le nom. Son objectif, au contraire, semble être plutôt danalyser les situations d’équivocité, cest-à-dire les cas où deux choses différentes sont appelées par le même nom. Or, il sagit précisément de revendiquer la possibilité dutiliser le concept dinfini dans des cas différents, avec des significations différentes. Même dans le cas de limagination, en effet, Spinoza ne semble pas vouloir éliminer ou exclure, mais plutôt réguler cette faculté[^1].
> - so [[sources/0 - cours/LOGOS S2/le savoir en mathématiques/Éthique.pdf|Éthique (Rovère)]], note 403, p.470
[^1]:Comme souligne Rabouin, « si lon voulait trouver un trait commun à Descartes, Spinoza ou Leibniz sur cette question, ce serait plutôt de relier les mathématiques à limagination. […] ils [les auteurs classiques] ne cessent dinsister sur le fait que sa solution est à trouver dans un règlement de limagination (par lintellect), non dans un rejet pur et simple » (D. Rabouin, « Spinoza, quelle norme mathématique ? », Les Chemins du scepticisme en mathématiques. DAristote et de Sextus Empiricus aux arguments gödeliens et au fictionnalisme, éd. J.-P. Cléro, Paris, Hermann, 2021, p. 32.)].
> [!PDF|yellow] [[sources/0 - cours/LOGOS S2/le savoir en mathématiques/(Camerini) La Lettre 12 et ses cercles non-concentriques.pdf#page=5&selection=53,0,83,6&color=yellow|(Camerini) La Lettre 12 et ses cercles non-concentriques]]
> En dautres termes, Spinoza naffirme ni que linfini est divisible, ni quil ne lest pas, mais quil peut ou non être divisible sans aucune contradiction tout comme il peut ou non être comparé en ordre de grandeur à un autre infini à condition toutefois de bien comprendre de quel infini il sagit