Skip to content

Commit

Permalink
Update open-folders extension
Browse files Browse the repository at this point in the history
- refactoring typo correction
- Amended preferences to use raycast-env.d.ts
- New extension Open Folders: quick open your common folders and files
- Update CODEOWNERs
- Update jira extension (raycast#11965)
- Update CODEOWNERs
- Add capacities extension (raycast#11935)
- Docs: Update the utils docs
- Update CODEOWNERs
- Add nuget-package-explorer extension (raycast#11993)
- [Groq] minor fixes and updates (raycast#11990)
- Fix typo in README of jira-search-self-hosted (raycast#12096)
- Update outline-page extension (raycast#11955)
- Removed the double style
- Update CODEOWNERs
- Update terraform-doc extension (raycast#11947)
- Update CODEOWNERs
- Update json-format extension (raycast#11938)
- Update contribute-to-an-extension.md
- Update CODEOWNERs
- Update supernotes extension (raycast#11598)
- Update power-management extension (raycast#11917)
- Update CODEOWNERs
- Update wayback-machine extension (raycast#12072)
- Update CODEOWNERs
- Update openai-translator extension (raycast#11579)
- Update CODEOWNERs
- Add mac-app-store-search extension (raycast#11903)
- Update CODEOWNERs
- Add search-private-npm-packages extension (raycast#11916)
- Update CODEOWNERs
- Fixed Change Case overlapping shortcuts (raycast#11997)
- [Year In Progress] (Show|Hide) in Command Subtitle (raycast#11912)
- Add yafw extension (raycast#11894)
- [Copilot Workspace] Allow all valid github repo characters (raycast#12079)
- Update CODEOWNERs
- transfer to org (raycast#12077)
- Update copilot-workspace extension (raycast#12074)
- Apple Reminders: Improve regex
- Update CODEOWNERs
- Add copilot-workspace extension (raycast#11961)
- Update CODEOWNERs
- Update toothpick extension (raycast#11939)
- Update snap-jot extension (raycast#12041)
- Update hyrule-compendium-search extension (raycast#12047)
- CI: add batch processing of images due to ImageOptim CLI issue JamieMason/ImageOptim-CLI#205
- Linear: Add pagination to issues search (raycast#11843)
- [BetterTouchTool] Error: Command was killed with null... (raycast#12066)
- Update Linear and Slack icons (raycast#12022)
- Update bintools extension (raycast#12069)
- add icons for virtual and ebike workouts (raycast#12023)
- Update CODEOWNERs
- Add Workouts extension (raycast#12008)
- Apple Notes: Add text to note (raycast#12017)
- Docs: Update the utils docs
- Update CODEOWNERs
- Add google-advanced-search extension (raycast#11921)
- Changed vscodeAppCLI to refer to the code CLI location (raycast#11924)
- Update keyboard-brightness extension (raycast#12011)
- Update CODEOWNERs
- docs: revert contributor deletion (raycast#12009)
- Update CODEOWNERs
- GIF Search: Better results and codebase revamp (raycast#11887)
- [Dashlane Vault] Master password preferences and improved error handling (raycast#11950)
- Update CODEOWNERs
- Text Replacements: Add extension (raycast#11996)
- Add substack extension (raycast#11913)
- Update CODEOWNERs
- Update zoom-meeting-control extension (raycast#11977)
- CI: switch to npm on macos14 to avoid issues with wrong architecture being downloaded
- Update svgl extension (raycast#12002)
- Add new issue actions for contributors
- zoom-control: Support latest Zoom Workplace update (raycast#12007)
- Update associated-press extension (raycast#11942)
- Update raycast-explorer extension (raycast#11988)
- Apple Notes: Use applenotes:// scheme (raycast#11985)
- Update CODEOWNERs
- Add corcel extension (raycast#11911)
- Docs: update for the new API release
- hotfix(grafana extension): typo in URL (raycast#11987)
- Update CODEOWNERs
- Update CODEOWNERs
- Create Issue Command : Fix Entity not found in validateAccess : projectId error when adding milestone (raycast#11960)
- Update work-time-countdown extension (raycast#11945)
- Update CODEOWNERs
- Add stashpad-docs extension (raycast#11901)
- feat(grafana): add 2 new commands to Grafana extension (create & list saved queries) (raycast#11952)
- Update arguments.md
- Update CODEOWNERs
- fix: user selection limit (raycast#11940)
- Update CODEOWNERs
- Add govee extension (raycast#11902)
- Add migration for 1.72.0
- Update CODEOWNERs
- Update raycast-explorer extension (raycast#11970)
- Docs: update for the new API release
- Fix reference link (raycast#11959)
- Update transmission extension (raycast#11962)
- Update quick-notes extension (raycast#11967)
- [Sonos] handle a stale group choice better (raycast#11969)
- Option to auto paste shortened URL && will grab the currently selected URL to shorten (raycast#11788)
- Update CODEOWNERs
- Add calist extension (raycast#11705)
- Update CODEOWNERs
- Update obsidian-bookmarks extension (raycast#11941)
- Update CODEOWNERs
- Add color-studio-picker extension (raycast#11889)
- docs: typo (raycast#11946)
- feat(grafana): add explore command to Grafana extension (raycast#11893)
- fix(visual-studio-code-project-manager): Fix optional Projects Location setting (raycast#11522)
- Update CODEOWNERs
- Update safari extension (raycast#11879)
- Update CODEOWNERs
- Add background-sounds extension (raycast#11872)
- Update CODEOWNERs
- Add jsr extension (raycast#11860)
- Update CODEOWNERs
- Add otp-inbox extension (raycast#11854)
- Update iterm extension (raycast#11858)
- [Perplexity-API] Added Llama3 and Mixtral 8x22B (raycast#11932)
- [ai-git-assistant] Add support for generating PR descriptions  (raycast#11886)
- Update Anybox extension (raycast#11880)
- Update CODEOWNERs
- Add owledge-raycast extension (raycast#11816)
- Update CODEOWNERs
- GitHub: Set Open in Browser as a primary action (raycast#11798)
- GitHub: Fixes notification icons (raycast#11653)
- Notion - configurable option to close Raycast after Create Database Page  (raycast#11429)
- Update CODEOWNERs
- Jira: Improved handling of invalid URLs and changed to using hostname in jiraCredentials (raycast#11931)
- Update CODEOWNERs
- clickup(feat): Show folderless tasks in explore (raycast#11861)
- Add nif-fresquinho extension (raycast#11542)
- Update CODEOWNERs
- Update transmission extension (raycast#11838)
- Show Spotify current track using HUD (raycast#11891)
- GitHub: Update metadata images
- Update CODEOWNERs
- [GitHub] Polish menu bar icon (raycast#11904)
- [Mastodon] Enhance menu bar notification (raycast#11928)
- New extension Open Folders: quick open your common folders and files
  • Loading branch information
timothyBoye committed May 1, 2024
1 parent be9c2e1 commit ee85fc3
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 74 deletions.
5 changes: 1 addition & 4 deletions extensions/open-folders/src/desktop.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { open, getPreferenceValues } from "@raycast/api";

interface Preferences {
desktopdir: string;
}
const dir = getPreferenceValues<Preferences.Desktop>().desktopdir;

export default function Command() {
const dir = getPreferenceValues<Preferences>().desktopdir;
return open(`${dir}`);
}
5 changes: 1 addition & 4 deletions extensions/open-folders/src/documents.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { open, getPreferenceValues } from "@raycast/api";

interface Preferences {
documentsdir: string;
}
const dir = getPreferenceValues<Preferences.Documents>().documentsdir;

export default function Command() {
const dir = getPreferenceValues<Preferences>().documentsdir;
return open(`${dir}`);
}
5 changes: 1 addition & 4 deletions extensions/open-folders/src/downloads.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { open, getPreferenceValues } from "@raycast/api";

interface Preferences {
downloadsdir: string;
}
const dir = getPreferenceValues<Preferences.Downloads>().downloadsdir;

export default function Command() {
const dir = getPreferenceValues<Preferences>().downloadsdir;
return open(`${dir}`);
}
31 changes: 11 additions & 20 deletions extensions/open-folders/src/fileSpeedDial.tsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,22 @@
import { open, getPreferenceValues, Grid, ActionPanel, Action } from "@raycast/api";

interface Preferences {
fileOne: string;
fileTwo: string;
fileThree: string;
fileFour: string;
fileFive: string;
fileSix: string;
fileSeven: string;
fileEight: string;
}
const preferences = getPreferenceValues<Preferences.FileSpeedDial>();

const preferences = [
getPreferenceValues<Preferences>().fileOne,
getPreferenceValues<Preferences>().fileTwo,
getPreferenceValues<Preferences>().fileThree,
getPreferenceValues<Preferences>().fileFour,
getPreferenceValues<Preferences>().fileFive,
getPreferenceValues<Preferences>().fileSix,
getPreferenceValues<Preferences>().fileSeven,
getPreferenceValues<Preferences>().fileEight,
const fileLocations = [
preferences.fileOne,
preferences.fileTwo,
preferences.fileThree,
preferences.fileFour,
preferences.fileFive,
preferences.fileSix,
preferences.fileSeven,
preferences.fileEight,
];

export default function Command() {
const files: Map<number, string> = new Map<number, string>();

preferences.forEach((element) => {
fileLocations.forEach((element) => {
if (element != null && element != "") {
files.set(files.size, element);
}
Expand Down
31 changes: 11 additions & 20 deletions extensions/open-folders/src/folderSpeedDial.tsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,22 @@
import { open, getPreferenceValues, Grid, ActionPanel, Action } from "@raycast/api";

interface Preferences {
dirOne: string;
dirTwo: string;
dirThree: string;
dirFour: string;
dirFive: string;
dirSix: string;
dirSeven: string;
dirEight: string;
}
const preferences = getPreferenceValues<Preferences.FolderSpeedDial>();

const preferences = [
getPreferenceValues<Preferences>().dirOne,
getPreferenceValues<Preferences>().dirTwo,
getPreferenceValues<Preferences>().dirThree,
getPreferenceValues<Preferences>().dirFour,
getPreferenceValues<Preferences>().dirFive,
getPreferenceValues<Preferences>().dirSix,
getPreferenceValues<Preferences>().dirSeven,
getPreferenceValues<Preferences>().dirEight,
const folders = [
preferences.dirOne,
preferences.dirTwo,
preferences.dirThree,
preferences.dirFour,
preferences.dirFive,
preferences.dirSix,
preferences.dirSeven,
preferences.dirEight,
];

export default function Command() {
const directories: Map<number, string> = new Map<number, string>();

preferences.forEach((element) => {
folders.forEach((element) => {
if (element != null && element != "") {
directories.set(directories.size, element);
}
Expand Down
10 changes: 3 additions & 7 deletions extensions/open-folders/src/listDownloads.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import { ActionPanel, Action, List, Grid, getPreferenceValues } from "@raycast/api";
import { readdirSync, Dirent, statSync } from "fs";

interface Preferences {
downloadedFilesdir: string;
layout: string;
}

const dir = getPreferenceValues<Preferences>().downloadedFilesdir;
const layout = getPreferenceValues<Preferences>().layout;
const preferences = getPreferenceValues<Preferences.ListDownloads>();
const dir = preferences.downloadedFilesdir;
const layout = preferences.layout;

export default function Command() {
const dirContents = readdirSync(dir, { withFileTypes: true }).sort((a, b) => {
Expand Down
9 changes: 3 additions & 6 deletions extensions/open-folders/src/listFolders.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import { ActionPanel, Action, List, Grid, getPreferenceValues } from "@raycast/api";
import { readdirSync } from "fs";

interface Preferences {
homedir: string;
layout: string;
}
const preferences = getPreferenceValues<Preferences.ListFolders>();

const dir = getPreferenceValues<Preferences>().homedir;
const layout = getPreferenceValues<Preferences>().layout;
const dir = preferences.homedir;
const layout = preferences.layout;

export default function Command() {
if (layout == "List") {
Expand Down
6 changes: 1 addition & 5 deletions extensions/open-folders/src/mostRecent.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import { open, getPreferenceValues } from "@raycast/api";
import { readdirSync, statSync } from "fs";

interface Preferences {
downloadsdir: string;
}

const downloadsdir = getPreferenceValues<Preferences>().downloadsdir;
const downloadsdir = getPreferenceValues<Preferences.MostRecent>().downloadsdir;

export default function Command() {
const dirContents = readdirSync(downloadsdir, { withFileTypes: true }).sort((a, b) => {
Expand Down
5 changes: 1 addition & 4 deletions extensions/open-folders/src/projects.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { open, getPreferenceValues } from "@raycast/api";

interface Preferences {
projectsdir: string;
}
const dir = getPreferenceValues<Preferences.Projects>().projectsdir;

export default function Command() {
const dir = getPreferenceValues<Preferences>().projectsdir;
return open(`${dir}`);
}

0 comments on commit ee85fc3

Please sign in to comment.