Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite internal API #269

Merged
merged 5 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

> Note: the style changes in this release mean that you may need to tweak any custom CSS or themes. The changes are based on the default theme.

### ✨ Features

- Added the option to wrap page links in parenthesis when creating tasks with the command. You may find this useful if you primarily use Todoist on mobile where links are less obvious. Thanks to [@ThDag](https://github.com/ThDag) for the contribution!
- You can now use the `{{filename}}` placeholder in the filter property. This will be replaced with the name of the file where the query is defined.
- For example, if the full file path is `My Vault/Notes/How to Take Smart Notes.md` then the replaced file name will be `How to Take Smart Notes`.
- Create "Add item" button - open same modal window of task creation.
- Create "Add item" button to rendered queries. This will open the task creatio modal.

### 🔁 Changes

- You can now toggle whether or not task descriptions are rendered for each task.
- Change the style of the sync button to match the new Obsidian style of the "edit" button.
- Fix intent level to match std markdown levels - to have consistent style.
- Change the style of the sync button to match the Obsidian style of the "edit" codeblock button.
- Fix intent level to match standard markdown levels in order to have consistent style.
- Aligned the grouping behaviour with Todoist's when grouping by project. This will be expanded on in a future release.

## [1.11.1] - 2023-04-09

Expand Down Expand Up @@ -105,7 +108,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### 🐛 Bug Fixes

- Right-click context menu now works with the latest Obsidian version.
- Right-click context menu now works with the latest Obsidian version.

## [1.7.0] - 2021-01-24

Expand Down
38 changes: 18 additions & 20 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,27 @@
};

nixConfig = {
extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
extra-trusted-public-keys =
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
extra-substituters = "https://devenv.cachix.org";
};

outputs = { self, nixpkgs, devenv, systems, ... } @ inputs:
let
forEachSystem = nixpkgs.lib.genAttrs (import systems);
in
{
devShells = forEachSystem
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
default = devenv.lib.mkShell {
inherit inputs pkgs;
modules = [
{
packages = [ pkgs.nodejs pkgs.nodePackages.typescript-language-server];
}
outputs = { self, nixpkgs, devenv, systems, ... }@inputs:
let forEachSystem = nixpkgs.lib.genAttrs (import systems);
in {
devShells = forEachSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
default = devenv.lib.mkShell {
inherit inputs pkgs;
modules = [{
packages = [
pkgs.nodejs
pkgs.nodePackages.typescript-language-server
pkgs.nodePackages.svelte-language-server
];
};
});
}];
};
});
};
}
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
{
"name": "todoist-plugin",
"name": "obsidian-todoist-plugin",
"version": "1.11.1",
"description": "A Todoist plugin for Obsidian",
"main": "src/index.js",
"scripts": {
"dev": "npm run build && cp -R dist/* test-vault/.obsidian/plugins/todoist-sync-plugin/",
"dev": "npm run build && cp -R dist/* ../../test-vault/.obsidian/plugins/todoist-sync-plugin/",
"build": "svelte-check && rollup -c",
"test": "mocha -r ts-node/register src/**/*.test.ts",
"test": "npx mocha -r ts-node/register 'src/**/*.test.ts'",
"format": "prettier --write src/**/*",
"lint": "prettier --check src/**/*"
},
"author": "Jamie Brynes",
"license": "ISC",
"dependencies": {
"@types/node": "^18.11.17",
"camelize": "^1.0.1",
"moment": "^2.29.4",
"obsidian": "0.15",
"snakeize": "^0.1.0",
"svelte": "^3.55.0",
"svelte-select": "^5.0.1",
"todoist-api": "^1.0.0",
"tslib": "^2.4.1",
"yaml": "^2.1.3"
},
Expand All @@ -28,6 +30,7 @@
"@tsconfig/svelte": "^3.0.0",
"@types/chai": "^4.3.4",
"@types/mocha": "^10.0.1",
"@types/node": "^18.11.17",
"chai": "^4.3.7",
"mocha": "^10.2.0",
"prettier": "^2.8.1",
Expand All @@ -41,4 +44,4 @@
"ts-node": "^10.9.1",
"typescript": "^4.9.4"
}
}
}
257 changes: 0 additions & 257 deletions src/api/api.ts

This file was deleted.

Loading