Skip to content

Commit

Permalink
Fixed #648. Fixed #633. Added markdown support #563. Added link detec…
Browse files Browse the repository at this point in the history
…tion. Added support for local file links #360.
  • Loading branch information
ransome1 committed Feb 3, 2024
1 parent 9f5de73 commit 729c139
Show file tree
Hide file tree
Showing 28 changed files with 1,551 additions and 577 deletions.
24 changes: 13 additions & 11 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,25 @@ labels: 'bug'
### Important ###
Please follow this template strictly when reporting bugs.

**App Version:** [_Enter app version here_]
Reports that do not adhere to this template will not be addressed and will be closed.

**Platform:** [_Windows / macOS / Linux_]
**App Version:** Enter the version number, e.g., 1.2.3

**Installation Method:** [_App Store / Direct Download / Other_]
**Platform:** Windows / macOS / Linux

**Bug Description:**
[_Provide a clear and concise description of the bug you encountered._]

**Steps to Reproduce:**
1. [_List the steps to reproduce the bug. Be as specific as possible._]
**Installation Method:** App Store / Direct Download / Other

**Expected Behavior:**
[_Explain what you expected to happen._]
Explain what you expected to happen.

**Actual Behavior:**
[_Explain what actually happened._]
Explain what actually happened.

**Steps to Reproduce:**
1. Open the app.
2. Click on 'X' button.
3. Observe the unexpected behavior.
4. ...

**Screenshots:**
[_If applicable, include screenshots that demonstrate the bug._]
If applicable, include screenshots that demonstrate the bug.
8 changes: 1 addition & 7 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,4 @@ blank_issues_enabled: false
contact_links:
- name: Get help in GitHub Discussions
url: https://github.com/ransome1/sleek/discussions
about: Have a question? Not sure if your issue affects everyone reproducibly? The quickest way to get help is on GitHub Discussions!
- name: New issue on ransome1/sleek
url: https://github.com/ransome1/sleek/issues/new/choose
about: Having an issue with `sleek` that has not been reported yet? Report it to ransome1/sleek
- name: Ideas for a new feature
url: https://github.com/ransome1/sleek/wiki/Contributing-Guidelines
about: If you have an idea for a new feature, here's how to add it to sleek
about: Have a question? Not sure if your issue affects everyone reproducibly? The quickest way to get help is on GitHub Discussions!
10 changes: 7 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ labels: 'feature request'
## Feature Request

### Important ###
Please follow this template strictly when requesting features.

Reports that do not adhere to this template will not be addressed and will be closed.

If your feature request is more of a **loose idea** and you are **unsure about its implementation or potential impact**, please discuss it first in the [GitHub Discussions section](https://github.com/ransome1/sleek/discussions).

### What problem does it solve? ###
Offer a comprehensive and detailed explanation of the problem addressed by this feature and its target audience. Describe the intended functionality and how it contributes to improving the overall app experience.
Write a detailed explanation of the problem addressed by this feature. Describe the intended functionality and how it contributes to improving the overall app experience.

### Impact on the interface ###
How does this feature impact the interface in terms of interactive elements? Where should these elements be positioned, and do they require specific labels? Provide a detailed description of how you envision incorporating this feature into sleek.
### How does the user interface change to accommodate this request? ###
Get creative; Provide a detailed description of how you envision incorporating this feature into sleek.
2 changes: 1 addition & 1 deletion flatpak/com.github.ransome1.sleek.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<developer_name>Robin Ahle</developer_name>
<content_rating type="oars-1.1"/>
<releases>
<release version="2.0.8" date="2024-01-22"/>
<release version="2.0.9-rc.1" date="2024-02-03"/>
</releases>
<url type="homepage">https://github.com/ransome1/sleek</url>
<url type="contact">https://github.com/ransome1/sleek/issues</url>
Expand Down
59 changes: 32 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "sleek",
"version": "2.0.8",
"version": "2.0.9-rc.1",
"main": "./src/main/main.tsx",
"scripts": {
"build": "concurrently \"yarn run peggy\" \"yarn run build:main\" \"yarn run build:renderer\"",
"build:dll": "cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.dev.dll.ts",
"build:main": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.main.prod.ts",
"build:renderer": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.prod.ts",
"postinstall": "ts-node .erb/scripts/check-native-dep.js && electron-builder install-app-deps && yarn run build:dll",
"package": "ts-node ./.erb/scripts/clean.js dist && yarn run build && electron-builder build --publish never && yarn run build:dll",
"build:dll": "cross-env NODE_ENV=development webpack --config ./.erb/configs/webpack.config.renderer.dev.dll.ts",
"build:main": "cross-env NODE_ENV=production webpack --config ./.erb/configs/webpack.config.main.prod.ts",
"build:renderer": "cross-env NODE_ENV=production webpack --config ./.erb/configs/webpack.config.renderer.prod.ts",
"postinstall": "node -r esbuild-register .erb/scripts/check-native-dep.js && electron-builder install-app-deps && npm run build:dll",
"package": "node -r esbuild-register ./.erb/scripts/clean.js dist && npm run build && electron-builder build --publish never && npm run build:dll",
"rebuild": "electron-rebuild --parallel --types prod,dev,optional --module-dir release/app",
"start": "ts-node ./.erb/scripts/check-port-in-use.js && yarn run start:renderer",
"start:main": "cross-env NODE_ENV=development electronmon -r ts-node/register/transpile-only .",
"start:preload": "cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.preload.dev.ts",
"start:renderer": "cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack serve --config ./.erb/configs/webpack.config.renderer.dev.ts",
"start": "node -r esbuild-register ./.erb/scripts/check-port-in-use.js && npm run start:renderer",
"start:main": "cross-env NODE_ENV=development NODE_OPTIONS=\"--loader esbuild-register/loader -r esbuild-register\" electronmon .",
"start:preload": "cross-env NODE_ENV=development webpack --config ./.erb/configs/webpack.config.preload.dev.ts",
"start:renderer": "cross-env NODE_ENV=development webpack serve --config ./.erb/configs/webpack.config.renderer.dev.ts",
"test": "jest",
"mac": "cross-env NODE_ENV=production yarn run build && electron-builder build -m --publish never",
"mas": "cross-env NODE_ENV=production yarn run build && electron-builder build -m mas --universal --publish never",
Expand Down Expand Up @@ -72,19 +72,22 @@
"dependencies": {
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.14.9",
"@mui/material": "^5.15.4",
"@mui/system": "^5.14.15",
"@mui/x-date-pickers": "^6.10.0",
"@mui/icons-material": "^5.15.7",
"@mui/material": "^5.15.7",
"@mui/system": "^5.15.7",
"@mui/x-date-pickers": "^6.19.3",
"dayjs": "^1.11.9",
"electron-store": "^8.1.0",
"i18next": "^23.5.1",
"i18next": "^23.8.2",
"jstodotxt": "^1.0.0-alpha.0",
"react": "^18.2.0",
"react-autosuggest": "^10.1.0",
"react-beautiful-dnd": "^13.1.1",
"react-dom": "^18.2.0",
"react-i18next": "^14.0.0",
"react-markdown": "^9.0.1",
"react-string-replace": "^1.1.1",
"remark-gfm": "^4.0.0",
"sugar": "^2.0.6"
},
"devDependencies": {
Expand All @@ -93,40 +96,42 @@
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
"@svgr/webpack": "^8.0.1",
"@teamsupercell/typings-for-css-modules-loader": "^2.5.2",
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.2",
"@types/node": "20.10.6",
"@types/react": "^18.2.8",
"@testing-library/jest-dom": "^6.4.1",
"@testing-library/react": "^14.2.1",
"@types/jest": "^29.5.12",
"@types/node": "20.11.16",
"@types/react": "^18.2.52",
"@types/react-autosuggest": "^10.1.10",
"@types/react-beautiful-dnd": "^13.1.8",
"@types/react-dom": "^18.2.4",
"@types/react-test-renderer": "^18.0.0",
"@types/webpack-bundle-analyzer": "^4.6.0",
"chalk": "^4.0.0",
"chalk": "^4.1.2",
"concurrently": "^8.1.0",
"cross-env": "^7.0.3",
"css-loader": "^6.8.1",
"css-minimizer-webpack-plugin": "^5.0.0",
"css-loader": "^6.10.0",
"css-minimizer-webpack-plugin": "^6.0.0",
"depcheck": "^1.4.7",
"detect-port": "^1.5.1",
"electron": "27.2.0",
"electron": "^28.2.1",
"electron-builder": "^24.2.1",
"electron-devtools-installer": "^3.2.0",
"electronmon": "^2.0.2",
"esbuild": "^0.20.0",
"esbuild-register": "^3.5.0",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.5.1",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"material-ui-popup-state": "^5.0.9",
"mini-css-extract-plugin": "^2.7.6",
"mini-css-extract-plugin": "^2.8.0",
"peggy": "^3.0.2",
"prettier": "^3.1.1",
"react-refresh": "^0.14.0",
"react-test-renderer": "^18.2.0",
"rimraf": "^5.0.1",
"sass": "^1.69.4",
"sass-loader": "^13.3.2",
"sass-loader": "^14.1.0",
"style-loader": "^3.3.3",
"terser-webpack-plugin": "^5.3.9",
"ts-jest": "^29.1.0",
Expand All @@ -135,7 +140,7 @@
"tsconfig-paths-webpack-plugin": "^4.0.1",
"typescript": "^5.1.3",
"url-loader": "^4.1.1",
"webpack": "^5.89.0",
"webpack": "^5.90.1",
"webpack-bundle-analyzer": "^4.9.0",
"webpack-cli": "^5.1.1",
"webpack-dev-server": "^4.15.0",
Expand Down
2 changes: 1 addition & 1 deletion release/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sleek",
"version": "2.0.8",
"version": "2.0.9-rc.1",
"description": "todo.txt manager for Linux, Windows and MacOS, free and open-source (FOSS)",
"synopsis": "todo.txt manager for Linux, Windows and MacOS, free and open-source (FOSS)",
"keywords": [
Expand Down
30 changes: 15 additions & 15 deletions release/app/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@

anymatch@~3.1.2:
version "3.1.3"
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e"
resolved "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz"
integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==
dependencies:
normalize-path "^3.0.0"
picomatch "^2.0.4"

binary-extensions@^2.0.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d"
resolved "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz"
integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==

braces@~3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107"
resolved "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz"
integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==
dependencies:
fill-range "^7.0.1"

chokidar@^3.5.3:
version "3.5.3"
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd"
resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz"
integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==
dependencies:
anymatch "~3.1.2"
Expand All @@ -39,67 +39,67 @@ chokidar@^3.5.3:

fill-range@^7.0.1:
version "7.0.1"
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40"
resolved "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz"
integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==
dependencies:
to-regex-range "^5.0.1"

fsevents@~2.3.2:
version "2.3.3"
resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6"
resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz"
integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==

glob-parent@~5.1.2:
version "5.1.2"
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4"
resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz"
integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
dependencies:
is-glob "^4.0.1"

is-binary-path@~2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09"
resolved "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz"
integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==
dependencies:
binary-extensions "^2.0.0"

is-extglob@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
resolved "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz"
integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==

is-glob@^4.0.1, is-glob@~4.0.1:
version "4.0.3"
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084"
resolved "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz"
integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==
dependencies:
is-extglob "^2.1.1"

is-number@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b"
resolved "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz"
integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==

normalize-path@^3.0.0, normalize-path@~3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz"
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==

picomatch@^2.0.4, picomatch@^2.2.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz"
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==

readdirp@~3.6.0:
version "3.6.0"
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7"
resolved "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz"
integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==
dependencies:
picomatch "^2.2.1"

to-regex-range@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4"
resolved "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz"
integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==
dependencies:
is-number "^7.0.0"
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: sleek
base: core20
version: "2.0.8"
version: "2.0.9-rc.1"
summary: todo.txt manager for Linux, free and open-source (FOSS)
description: |
sleek is an open-source (FOSS) todo manager based on the todo.txt syntax. Stripped down to only the most necessary features, and with a clean and simple interface, sleek aims to help you focus on getting things done.
Expand Down
28 changes: 14 additions & 14 deletions src/__tests__/__mock__/recurrence.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@

2024-01-21 Line 1 rec:1d due:2024-01-22
2024-01-21 Line 1 rec:w due:2024-01-28
2024-01-21 Line 1 rec:2m due:2024-03-21
2024-01-21 Line 1 rec:+1d due:2024-01-23
2024-01-21 Line 1 rec:7w due:2024-03-10
2024-01-21 Line 1 due:2023-07-24 rec:+1b
2024-01-21 taxes are due in one year t:2022-03-30 due:2022-04-30 rec:+1y
2024-01-21 Water plants @home +quick due:2024-01-28 t:2024-01-18 rec:1w
2024-01-21 Line 1 rec:+1d t:2023-09-20
2024-01-21 Line 1 rec:1d pri:A due:2024-01-22
2024-01-21 (A) Do something rec:d t:2024-01-22 @SomeContext
2024-01-21 Do something rec:0d
2024-01-21 Do something rec:0d due:2024-01-21
2024-01-21 Do something rec:0d due:2024-01-21 t:2024-01-21
2024-02-03 Line 1 rec:1d due:2024-02-04
2024-02-03 Line 1 rec:w due:2024-02-10
2024-02-03 Line 1 rec:2m due:2024-04-03
2024-02-03 Line 1 rec:+1d due:2024-02-05
2024-02-03 Line 1 rec:7w due:2024-03-23
2024-02-03 Line 1 due:2023-07-24 rec:+1b
2024-02-03 taxes are due in one year t:2022-03-30 due:2022-04-30 rec:+1y
2024-02-03 Water plants @home +quick due:2024-02-10 t:2024-01-31 rec:1w
2024-02-03 Line 1 rec:+1d t:2023-09-20
2024-02-03 Line 1 rec:1d pri:A due:2024-02-04
2024-02-03 (A) Do something rec:d t:2024-02-04 @SomeContext
2024-02-03 Do something rec:0d
2024-02-03 Do something rec:0d due:2024-02-03
2024-02-03 Do something rec:0d due:2024-02-03 t:2024-02-03
8 changes: 6 additions & 2 deletions src/main/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const handleClosed = async () => {
eventListeners.watcher = undefined;
}

const handleResize = (event) => {
const handleResize = () => {
clearTimeout(resizeTimeout);
resizeTimeout = setTimeout(() => {
const rectangle = mainWindow?.getBounds() as WindowRectangle;
Expand Down Expand Up @@ -105,7 +105,11 @@ const createMainWindow = () => {
width: 1280,
height: 1000,
backgroundColor: (shouldUseDarkColors) ? '#212224' : '#fff',
icon: process.platform === 'win32' ? getAssetPath('icons/sleek.ico') : getAssetPath('icons/512x512.png'),
icon: process.platform === 'win32'
? getAssetPath('icons/sleek.ico')
: process.platform === 'darwin'
? getAssetPath('icons/sleek.icns')
: getAssetPath('icons/512x512.png'),
autoHideMenuBar: true,
webPreferences: {
spellcheck: false,
Expand Down
1 change: 1 addition & 0 deletions src/main/modules/ProcessDataRequest/CreateTodoObjects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function createTodoObject(index: number, string: string, attributeType?: string,
let content = string.replaceAll(/[\x10\r\n]/g, ' [LB] ');

let JsTodoTxtObject = new Item(content);

const extensions = JsTodoTxtObject.extensions();

if(attributeType) {
Expand Down
1 change: 1 addition & 0 deletions src/main/modules/ProcessDataRequest/ProcessDataRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ async function processDataRequest(search?: string): Promise<void> {

const fileContent = await readFileContent(activeFile.todoFilePath, activeFile.todoFileBookmark);
let todoObjects: TodoObject[] | [] = await createTodoObjects(fileContent);

todoObjects = handleTodoObjectsDates(todoObjects);
headers.availableObjects = countTodoObjects(todoObjects, false);
headers.completedTodoObjects = countTodoObjects(todoObjects, true);
Expand Down
Loading

0 comments on commit 729c139

Please sign in to comment.