Skip to content

Conversation

@jjw24
Copy link
Member

@jjw24 jjw24 commented Jan 26, 2021

  • Allow files to be saved to Explorer like folders via context menu
  • Allow files/folders to be removed from Explorer's Quick Access via context menu
  • Launch saved files from Explorer
  • Rename Quick Folder Links to Quick Access Links as now it will allow saving of file or folder

Save:
image

Access & launch
image

Closing #262

@jjw24 jjw24 added the enhancement New feature or request label Jan 26, 2021
@jjw24 jjw24 self-assigned this Jan 26, 2021
Copy link
Member

@taooceros taooceros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

SubTitle = $"Add the current {fileOrFolder} to Quick Access",
Action = (context) =>
{
try
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why using a try catch here?


// as at v1.7.0 this is to maintain backwards compatibility, need to be removed afterwards.
if (Settings.QuickFolderAccessLinks.Any())
Settings.QuickAccessLinks = Settings.QuickFolderAccessLinks;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also remove QuickFolderAccessLinks so that it won't be saved via json.

Copy link
Member Author

@jjw24 jjw24 Jan 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good pick up 👍
It needs to be loaded once, so I dont know how I can make it so it gets loaded but ignored when saving. Changed it so it's saved as empty list.

var queriedAccessLinks =
accessLinks.Where(x => x.Nickname.StartsWith(search, StringComparison.OrdinalIgnoreCase));

return queriedAccessLinks
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe using an OrderBy ResultType and ThenBy Title will be more clear? since ResultType is an enum and it should be comparable.

.ToList();
}

internal List<Result> AccessLinkListAll(Query query, List<AccessLink> accessLinks)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to last one.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use select with switch or if instead where twice and concat. I can do it for you if you want.

Copy link
Member

@taooceros taooceros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change a bit so that the code don't become redundant.

@taooceros
Copy link
Member

@jjw24 please see the last commit.

BTW, is it also possible to add remove quick access to context menu?

@jjw24
Copy link
Member Author

jjw24 commented Jan 27, 2021

@jjw24 please see the last commit.

BTW, is it also possible to add remove quick access to context menu?

will do

Please change a bit so that the code don't become redundant.

sorry what do you mean?

@jjw24
Copy link
Member Author

jjw24 commented Jan 27, 2021

done @taooceros

@taooceros
Copy link
Member

Please change a bit so that the code don't become redundant.

sorry what do you mean?

Don't worry. It's fine.

Copy link
Member

@taooceros taooceros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@jjw24
Copy link
Member Author

jjw24 commented Jan 27, 2021

Awesome, thank you for reviewing :)

@jjw24 jjw24 merged commit d509b11 into dev Jan 27, 2021
@jjw24 jjw24 deleted the add_file_quick_access branch January 27, 2021 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Explorer plugin saves file path in 'Quick Folder Access Paths' for quick access

3 participants