Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
ololx committed Oct 12, 2021
2 parents 37bdcfb + 701165c commit b86a1e8
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The Quick Symlink is a `Finder extension` which provides a `contextual menu item` for the symbolic links creation on macOS.

[![status](https://img.shields.io/badge/status-active-active?style=flat-square)](BADGES_GUIDE.md#status) [![version](https://img.shields.io/badge/version-0.10.4-informational?style=flat-square)](BADGES_GUIDE.md#version) [![oss lifecycle](https://img.shields.io/badge/oss_lifecycle-active-important?style=flat-square)](BADGES_GUIDE.md#oss-lifecycle) [![maintenance](https://img.shields.io/badge/maintenance-yes-informational?style=flat-square)](BADGES_GUIDE.md#maintenance) [![last release](https://img.shields.io/badge/last_release-October_10,_2021-informational?style=flat-square)](BADGES_GUIDE.md#release-date) [![last commit](https://img.shields.io/badge/last_commit-October_10,_2021-informational?style=flat-square)](BADGES_GUIDE.md#commit-date)
[![status](https://img.shields.io/badge/status-active-active?style=flat-square)](BADGES_GUIDE.md#status) [![version](https://img.shields.io/badge/version-0.10.4-informational?style=flat-square)](BADGES_GUIDE.md#version) [![oss lifecycle](https://img.shields.io/badge/oss_lifecycle-active-important?style=flat-square)](BADGES_GUIDE.md#oss-lifecycle) [![maintenance](https://img.shields.io/badge/maintenance-yes-informational?style=flat-square)](BADGES_GUIDE.md#maintenance) [![last release](https://img.shields.io/badge/last_release-October_10,_2021-informational?style=flat-square)](BADGES_GUIDE.md#release-date) [![last commit](https://img.shields.io/badge/last_commit-October_12,_2021-informational?style=flat-square)](BADGES_GUIDE.md#commit-date)

[![license](https://img.shields.io/badge/license-MIT-informational?style=flat-square)](LICENSE) [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg?style=flat-square)](CODE_OF_CONDUCT.md)

Expand Down
26 changes: 21 additions & 5 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,29 @@
- [x] Add the new menu item for creating symlink in a parent directory (parent for target objects).
- [x] Use relative path instead absolute path in symlink target URL.
- [x] Add setting - select the default path for links: relative or absolute
- [ ] Refactor code in `commons/*` part and add unit-tests.
- [x] Develop additional `Finder extension` which allows to create a `hard links` for selected folders and files via contextual menu.
- [ ] Develop the action panel for created symbolic links and hard lonks (in the app window):
- [ ] a) (if broken) process to browse finder for 'Find/fix missing target'.
- [ ] b) Modify existing paths and symbolic link features.
- [ ] Add icons for context menu items
- [ ] Add icons for `Finder Toolbar` items
- [ ] Make a new application icon
- [ ] Make icons (`Finder Toolbar`) more suitable for Big Sur and above
- [ ] Implement the ability to disable only the context menu extension (may need to be implemented as a separate extension)
- [ ] Implement the ability to disable only `Finder Toolbar` extension (may need to be implemented as a separate extension)
- [ ] Combine context menu for links (symlinks and hard links)
- [ ] Add the ability to customize the display of menu items
- [ ] Add the `Quick Symlink` implementation as an application that will complement the existing extensions (`Finder Toolbar` and `Contextual menu`). That should allows:
- [ ] a1) create new symlink for selected folders and files
- [ ] a2) create new hard link for selected folders and files
- [ ] a3) create new hard link alias for selected folders and files
- [ ] b1) Move selected folders and files and replace them with symlinks
- [ ] b2) Move selected folders and files and replace them with hard links
- [ ] b3) Move selected folders and files and replace them with aliases
- [ ] c1) Replace selected symlinks with a copy of the same content, hard links or aliases
- [ ] c2) Replace selected hard links with a copy of the same content, symlinks or aliases
- [ ] c3) Replace selected aliases with a copy of the same content, hard links or symlinks
- [ ] d1) Сheck the symlink for the existence of the source and fix the source path
- [ ] d2) Сheck the hard link for the existence of the source and fix the source path
- [ ] d3) Сheck the aliasfor the existence of the source and fix the source path
- [ ] Add localization for other languages.
- [ ] Implement the VIPER pattern.
- [ ] Refactor app.

---
Expand Down
13 changes: 13 additions & 0 deletions soft-link-actions-extension/FinderSync.swift
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,20 @@ class FinderSync: FIFinderSync {
}
}

@objc
func handleAuthorizationAppleIDButtonPress() {
let appleIDProvider = ASAuthorizationAppleIDProvider()
let request = appleIDProvider.createRequest()
request.requestedScopes = [.fullName, .email]

let authorizationController = ASAuthorizationController(authorizationRequests: [request])
authorizationController.delegate = self
authorizationController.presentationContextProvider = self
authorizationController.performRequests()
}

@IBAction func copyPathToClipboard(_ sender: AnyObject?) {

self.copyPathAction.execute();
}

Expand Down

0 comments on commit b86a1e8

Please sign in to comment.