Skip to content

Commit

Permalink
0.9.1008
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-cen committed Oct 21, 2024
1 parent f97dfd5 commit 49ce2aa
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 19 deletions.
14 changes: 7 additions & 7 deletions main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "make-md",
"name": "MAKE.md",
"version": "0.9.1007",
"version": "0.9.1008",
"minAppVersion": "0.16.0",
"description": "Make.md brings powerful and modern note-taking features to Obsidian. Capture, organize and connect information with more flexibility without any code.",
"author": "MAKE.md",
Expand Down
10 changes: 5 additions & 5 deletions src/adapters/obsidian/utils/patches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ export const patchWorkspace = (plugin: MakeMDPlugin) => {
getActiveViewOfType(old) {

return function getActiveViewOfType(type) {
if (type.prototype?.getViewType && type.prototype.getViewType() == 'markdown')
{
if (this.activeEditor)
return this.activeEditor
}
// if (type.prototype?.getViewType && type.prototype.getViewType() == 'markdown')
// {
// if (this.activeEditor)
// return this.activeEditor
// }
return old.call(this, type);
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/core/react/components/Blink/BlinkComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export const BlinkComponent = (props: {
}
}

setIndex(suggestions.findIndex((f) => f.cache.path == item.cache?.path));
setIndex(suggestions.findIndex((f) => f.cache?.path == item.cache?.path));
};

const sections: SelectOption[] = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ export const SpaceTreeComponent = (props: SpaceTreeComponentProps) => {
: [
index == 0
? "//" + c
: space.path +
: p.slice(1).join() +
"/" +
folders.slice(0, index + 1).join("/"),
]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const FormulaCell = (

return parsedValue.type == "boolean" ? (
<BooleanCell {...props} editMode={CellEditMode.EditModeReadOnly} />
) : props.initialValue.length == 0 ? (
) : props.initialValue?.length == 0 ? (
<></>
) : parsedValue.type == "image" ? (
<ImageCell
Expand Down
1 change: 1 addition & 0 deletions src/core/superstate/superstate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ public api: API;


public async contextReloaded(path: string, cache: ContextState, changed: boolean, force?: boolean) {
if (!cache) return false;
if (this.settings.enhancedLogs)
{console.log('Context Reloaded')}
if (!changed && !force) { return false }
Expand Down
3 changes: 3 additions & 0 deletions src/core/superstate/utils/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ export const convertPathToSpace = async (
const newPath = pathState.parent+'/'+pathState.name
await superstate.spaceManager.createSpace(pathState.name, pathState.parent, {});
await superstate.spaceManager.renamePath(path, newPath+'/'+pathState.metadata?.file?.name+'.md');
superstate.ui.viewsByPath(path).forEach(view => {
view.openPath(newPath);
});
if (open) {
superstate.ui.openPath(newPath, false);
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/utils/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const allMetadata = (superstate: Superstate) : Record<string, {
},
context: {
name: i18n.metadataTypes.contexts,
properties: [...superstate.contextsIndex.values()].flatMap(f => f.contextTable?.cols.filter(f => f.primary != "true").map(g => ({
properties: [...superstate.contextsIndex.values()].flatMap(f => f?.contextTable?.cols.filter(f => f.primary != "true").map(g => ({
id: 'contexts.' + f.path + '.' + g.name,
label: g.name,
field: f.path+ '.' + g.name,
Expand Down
2 changes: 1 addition & 1 deletion src/css/Editor/Flow/FlowEditor.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
border: 0 !important;
}

.mk-flow-minimal .mk-flowspace-editor > .mk-floweditor > .workspace-leaf > .workspace-leaf-content > .view-content > .mod-cm6 {
.mk-flow-minimal .mk-flowspace-editor:not(.mk-flow-node) > .mk-floweditor > .workspace-leaf > .workspace-leaf-content > .view-content > .mod-cm6 {
padding: 8px 8px 8px 18px;
border: thin solid var(--mk-ui-active-hover);
margin: 8px 0px;
Expand Down
2 changes: 1 addition & 1 deletion styles.css

Large diffs are not rendered by default.

0 comments on commit 49ce2aa

Please sign in to comment.