{"action":"created","comment":{"url":"https://api.github.com/repos/Flipboard/FLEX/pulls/comments/24794141","id":24794141,"diff_hunk":"@@ -265,4 +300,82 @@ - (void)openFileController:(NSString *)fullPath\n     self.documentController = controller;\n }\n \n+- (void)fileBrowserRename:(UITableViewCell *)sender\n+{\n+    NSString *fullPath = nil;\n+\n+    NSIndexPath *indexPath = [self.tableView indexPathForCell:sender];\n+    if (indexPath) {\n+        NSString *subpath = [self.childPaths objectAtIndex:indexPath.row];\n+        fullPath = [self.path stringByAppendingPathComponent:subpath];\n+    } else {\n+        indexPath = [self.searchDisplayController.searchResultsTableView indexPathForCell:sender];\n+        fullPath = [self.searchPaths objectAtIndex:indexPath.row];\n+    }\n+\n+    self.fileOperationController = [[FLEXFileBrowserFileRenameOperationController alloc] initWithPath:fullPath];\n+    self.fileOperationController.delegate = self;\n+    [self.fileOperationController show];\n+}\n+\n+- (void)fileBrowserDelete:(UITableViewCell *)sender\n+{\n+    NSString *fullPath = nil;\n+\n+    NSIndexPath *indexPath = [self.tableView indexPathForCell:sender];\n+    if (indexPath) {\n+        NSString *subpath = [self.childPaths objectAtIndex:indexPath.row];\n+        fullPath = [self.path stringByAppendingPathComponent:subpath];\n+    } else {\n+        indexPath = [self.searchDisplayController.searchResultsTableView indexPathForCell:sender];\n+        fullPath = [self.searchPaths objectAtIndex:indexPath.row];\n+    }\n+\n+    self.fileOperationController = [[FLEXFileBrowserFileDeleteOperationController alloc] initWithPath:fullPath];\n+    self.fileOperationController.delegate = self;\n+    [self.fileOperationController show];\n+}\n+\n+- (void)reloadDisplayedPaths {\n+    if (self.searchDisplayController.isActive) {\n+        [self reloadSearchPaths];\n+        [self.searchDisplayController.searchResultsTableView reloadData];\n+    } else {\n+        [self reloadChildPaths];\n+        [self.tableView reloadData];\n+    }\n+}\n+\n+- (void)reloadChildPaths {\n+    self.childPaths = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:self.path error:NULL];\n+}\n+\n+- (void)reloadSearchPaths {\n+    self.searchPaths = nil;\n+    self.searchPathsSize = nil;\n+\n+    //clear pre search request and start a new one\n+    [self.operationQueue cancelAllOperations];\n+    FLEXFileBrowserSearchOperation *newOperation = [[FLEXFileBrowserSearchOperation alloc] initWithPath:self.path searchString:self.searchString];\n+    newOperation.delegate = self;\n+    [self.operationQueue addOperation:newOperation];\n+}\n+\n+@end\n+\n+\n+@implementation FLEXFileBrowserTableViewCell","path":"Classes/Global State Explorers/FLEXFileBrowserTableViewController.m","position":189,"original_position":189,"commit_id":"398cb5ae8e070ccad236f926b2f69ca83d784d34","original_commit_id":"398cb5ae8e070ccad236f926b2f69ca83d784d34","user":{"login":"ryanolsonk","id":1422245,"avatar_url":"https://avatars.githubusercontent.com/u/1422245?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanolsonk","html_url":"https://github.com/ryanolsonk","followers_url":"https://api.github.com/users/ryanolsonk/followers","following_url":"https://api.github.com/users/ryanolsonk/following{/other_user}","gists_url":"https://api.github.com/users/ryanolsonk/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanolsonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanolsonk/subscriptions","organizations_url":"https://api.github.com/users/ryanolsonk/orgs","repos_url":"https://api.github.com/users/ryanolsonk/repos","events_url":"https://api.github.com/users/ryanolsonk/events{/privacy}","received_events_url":"https://api.github.com/users/ryanolsonk/received_events","type":"User","site_admin":false},"body":"What do you think about implementing the actions in `-tableView:performAction:forRowAtIndexPath:` rather than adding the custom cell subclass and responder chain forwarding? It would also cut out the `indexPath` lookup since that is provided directly to the `UITableViewDelegate` method.","created_at":"2015-02-17T05:24:41Z","updated_at":"2015-02-17T05:24:41Z","html_url":"https://github.com/Flipboard/FLEX/pull/44#discussion_r24794141","pull_request_url":"https://api.github.com/repos/Flipboard/FLEX/pulls/44","_links":{"self":{"href":"https://api.github.com/repos/Flipboard/FLEX/pulls/comments/24794141"},"html":{"href":"https://github.com/Flipboard/FLEX/pull/44#discussion_r24794141"},"pull_request":{"href":"https://api.github.com/repos/Flipboard/FLEX/pulls/44"}}},"pull_request":{"url":"https://api.github.com/repos/Flipboard/FLEX/pulls/44","id":29316297,"html_url":"https://github.com/Flipboard/FLEX/pull/44","diff_url":"https://github.com/Flipboard/FLEX/pull/44.diff","patch_url":"https://github.com/Flipboard/FLEX/pull/44.patch","issue_url":"https://api.github.com/repos/Flipboard/FLEX/issues/44","number":44,"state":"open","locked":false,"title":"Add rename and delete operations to file browser.","user":{"login":"drodriguez","id":6338,"avatar_url":"https://avatars.githubusercontent.com/u/6338?v=3","gravatar_id":"","url":"https://api.github.com/users/drodriguez","html_url":"https://github.com/drodriguez","followers_url":"https://api.github.com/users/drodriguez/followers","following_url":"https://api.github.com/users/drodriguez/following{/other_user}","gists_url":"https://api.github.com/users/drodriguez/gists{/gist_id}","starred_url":"https://api.github.com/users/drodriguez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drodriguez/subscriptions","organizations_url":"https://api.github.com/users/drodriguez/orgs","repos_url":"https://api.github.com/users/drodriguez/repos","events_url":"https://api.github.com/users/drodriguez/events{/privacy}","received_events_url":"https://api.github.com/users/drodriguez/received_events","type":"User","site_admin":false},"body":"A long press in any file or directory in the file browser will show a menu with options to rename or delete the selected file or directory.\r\n\r\nRenames show an alert view with a text field to write the new name for the file or directory.\r\n\r\nDeletes show an alert to confirm the deletion of the file.\r\n\r\nSome modifications to the main file browser VC have been done to reload the table view sources after the changes.","created_at":"2015-02-14T05:46:23Z","updated_at":"2015-02-17T05:24:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e42fb111e42a50c1b3bc8784803d6bf3c28a4ed","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Flipboard/FLEX/pulls/44/commits","review_comments_url":"https://api.github.com/repos/Flipboard/FLEX/pulls/44/comments","review_comment_url":"https://api.github.com/repos/Flipboard/FLEX/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Flipboard/FLEX/issues/44/comments","statuses_url":"https://api.github.com/repos/Flipboard/FLEX/statuses/398cb5ae8e070ccad236f926b2f69ca83d784d34","head":{"label":"drodriguez:filesystem-actions","ref":"filesystem-actions","sha":"398cb5ae8e070ccad236f926b2f69ca83d784d34","user":{"login":"drodriguez","id":6338,"avatar_url":"https://avatars.githubusercontent.com/u/6338?v=3","gravatar_id":"","url":"https://api.github.com/users/drodriguez","html_url":"https://github.com/drodriguez","followers_url":"https://api.github.com/users/drodriguez/followers","following_url":"https://api.github.com/users/drodriguez/following{/other_user}","gists_url":"https://api.github.com/users/drodriguez/gists{/gist_id}","starred_url":"https://api.github.com/users/drodriguez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drodriguez/subscriptions","organizations_url":"https://api.github.com/users/drodriguez/orgs","repos_url":"https://api.github.com/users/drodriguez/repos","events_url":"https://api.github.com/users/drodriguez/events{/privacy}","received_events_url":"https://api.github.com/users/drodriguez/received_events","type":"User","site_admin":false},"repo":{"id":25608455,"name":"FLEX","full_name":"drodriguez/FLEX","owner":{"login":"drodriguez","id":6338,"avatar_url":"https://avatars.githubusercontent.com/u/6338?v=3","gravatar_id":"","url":"https://api.github.com/users/drodriguez","html_url":"https://github.com/drodriguez","followers_url":"https://api.github.com/users/drodriguez/followers","following_url":"https://api.github.com/users/drodriguez/following{/other_user}","gists_url":"https://api.github.com/users/drodriguez/gists{/gist_id}","starred_url":"https://api.github.com/users/drodriguez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drodriguez/subscriptions","organizations_url":"https://api.github.com/users/drodriguez/orgs","repos_url":"https://api.github.com/users/drodriguez/repos","events_url":"https://api.github.com/users/drodriguez/events{/privacy}","received_events_url":"https://api.github.com/users/drodriguez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/drodriguez/FLEX","description":"An in-app debugging and exploration tool for iOS","fork":true,"url":"https://api.github.com/repos/drodriguez/FLEX","forks_url":"https://api.github.com/repos/drodriguez/FLEX/forks","keys_url":"https://api.github.com/repos/drodriguez/FLEX/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drodriguez/FLEX/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drodriguez/FLEX/teams","hooks_url":"https://api.github.com/repos/drodriguez/FLEX/hooks","issue_events_url":"https://api.github.com/repos/drodriguez/FLEX/issues/events{/number}","events_url":"https://api.github.com/repos/drodriguez/FLEX/events","assignees_url":"https://api.github.com/repos/drodriguez/FLEX/assignees{/user}","branches_url":"https://api.github.com/repos/drodriguez/FLEX/branches{/branch}","tags_url":"https://api.github.com/repos/drodriguez/FLEX/tags","blobs_url":"https://api.github.com/repos/drodriguez/FLEX/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drodriguez/FLEX/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drodriguez/FLEX/git/refs{/sha}","trees_url":"https://api.github.com/repos/drodriguez/FLEX/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drodriguez/FLEX/statuses/{sha}","languages_url":"https://api.github.com/repos/drodriguez/FLEX/languages","stargazers_url":"https://api.github.com/repos/drodriguez/FLEX/stargazers","contributors_url":"https://api.github.com/repos/drodriguez/FLEX/contributors","subscribers_url":"https://api.github.com/repos/drodriguez/FLEX/subscribers","subscription_url":"https://api.github.com/repos/drodriguez/FLEX/subscription","commits_url":"https://api.github.com/repos/drodriguez/FLEX/commits{/sha}","git_commits_url":"https://api.github.com/repos/drodriguez/FLEX/git/commits{/sha}","comments_url":"https://api.github.com/repos/drodriguez/FLEX/comments{/number}","issue_comment_url":"https://api.github.com/repos/drodriguez/FLEX/issues/comments/{number}","contents_url":"https://api.github.com/repos/drodriguez/FLEX/contents/{+path}","compare_url":"https://api.github.com/repos/drodriguez/FLEX/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drodriguez/FLEX/merges","archive_url":"https://api.github.com/repos/drodriguez/FLEX/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drodriguez/FLEX/downloads","issues_url":"https://api.github.com/repos/drodriguez/FLEX/issues{/number}","pulls_url":"https://api.github.com/repos/drodriguez/FLEX/pulls{/number}","milestones_url":"https://api.github.com/repos/drodriguez/FLEX/milestones{/number}","notifications_url":"https://api.github.com/repos/drodriguez/FLEX/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drodriguez/FLEX/labels{/name}","releases_url":"https://api.github.com/repos/drodriguez/FLEX/releases{/id}","created_at":"2014-10-22T22:57:19Z","updated_at":"2015-02-14T03:38:47Z","pushed_at":"2015-02-14T23:55:23Z","git_url":"git://github.com/drodriguez/FLEX.git","ssh_url":"git@github.com:drodriguez/FLEX.git","clone_url":"https://github.com/drodriguez/FLEX.git","svn_url":"https://github.com/drodriguez/FLEX","homepage":"","size":7241,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Flipboard:master","ref":"master","sha":"05399839a3a2bade05a4c11181d75760239e47d2","user":{"login":"Flipboard","id":457049,"avatar_url":"https://avatars.githubusercontent.com/u/457049?v=3","gravatar_id":"","url":"https://api.github.com/users/Flipboard","html_url":"https://github.com/Flipboard","followers_url":"https://api.github.com/users/Flipboard/followers","following_url":"https://api.github.com/users/Flipboard/following{/other_user}","gists_url":"https://api.github.com/users/Flipboard/gists{/gist_id}","starred_url":"https://api.github.com/users/Flipboard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flipboard/subscriptions","organizations_url":"https://api.github.com/users/Flipboard/orgs","repos_url":"https://api.github.com/users/Flipboard/repos","events_url":"https://api.github.com/users/Flipboard/events{/privacy}","received_events_url":"https://api.github.com/users/Flipboard/received_events","type":"Organization","site_admin":false},"repo":{"id":20277829,"name":"FLEX","full_name":"Flipboard/FLEX","owner":{"login":"Flipboard","id":457049,"avatar_url":"https://avatars.githubusercontent.com/u/457049?v=3","gravatar_id":"","url":"https://api.github.com/users/Flipboard","html_url":"https://github.com/Flipboard","followers_url":"https://api.github.com/users/Flipboard/followers","following_url":"https://api.github.com/users/Flipboard/following{/other_user}","gists_url":"https://api.github.com/users/Flipboard/gists{/gist_id}","starred_url":"https://api.github.com/users/Flipboard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flipboard/subscriptions","organizations_url":"https://api.github.com/users/Flipboard/orgs","repos_url":"https://api.github.com/users/Flipboard/repos","events_url":"https://api.github.com/users/Flipboard/events{/privacy}","received_events_url":"https://api.github.com/users/Flipboard/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Flipboard/FLEX","description":"An in-app debugging and exploration tool for iOS","fork":false,"url":"https://api.github.com/repos/Flipboard/FLEX","forks_url":"https://api.github.com/repos/Flipboard/FLEX/forks","keys_url":"https://api.github.com/repos/Flipboard/FLEX/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Flipboard/FLEX/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Flipboard/FLEX/teams","hooks_url":"https://api.github.com/repos/Flipboard/FLEX/hooks","issue_events_url":"https://api.github.com/repos/Flipboard/FLEX/issues/events{/number}","events_url":"https://api.github.com/repos/Flipboard/FLEX/events","assignees_url":"https://api.github.com/repos/Flipboard/FLEX/assignees{/user}","branches_url":"https://api.github.com/repos/Flipboard/FLEX/branches{/branch}","tags_url":"https://api.github.com/repos/Flipboard/FLEX/tags","blobs_url":"https://api.github.com/repos/Flipboard/FLEX/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Flipboard/FLEX/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Flipboard/FLEX/git/refs{/sha}","trees_url":"https://api.github.com/repos/Flipboard/FLEX/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Flipboard/FLEX/statuses/{sha}","languages_url":"https://api.github.com/repos/Flipboard/FLEX/languages","stargazers_url":"https://api.github.com/repos/Flipboard/FLEX/stargazers","contributors_url":"https://api.github.com/repos/Flipboard/FLEX/contributors","subscribers_url":"https://api.github.com/repos/Flipboard/FLEX/subscribers","subscription_url":"https://api.github.com/repos/Flipboard/FLEX/subscription","commits_url":"https://api.github.com/repos/Flipboard/FLEX/commits{/sha}","git_commits_url":"https://api.github.com/repos/Flipboard/FLEX/git/commits{/sha}","comments_url":"https://api.github.com/repos/Flipboard/FLEX/comments{/number}","issue_comment_url":"https://api.github.com/repos/Flipboard/FLEX/issues/comments/{number}","contents_url":"https://api.github.com/repos/Flipboard/FLEX/contents/{+path}","compare_url":"https://api.github.com/repos/Flipboard/FLEX/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Flipboard/FLEX/merges","archive_url":"https://api.github.com/repos/Flipboard/FLEX/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Flipboard/FLEX/downloads","issues_url":"https://api.github.com/repos/Flipboard/FLEX/issues{/number}","pulls_url":"https://api.github.com/repos/Flipboard/FLEX/pulls{/number}","milestones_url":"https://api.github.com/repos/Flipboard/FLEX/milestones{/number}","notifications_url":"https://api.github.com/repos/Flipboard/FLEX/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Flipboard/FLEX/labels{/name}","releases_url":"https://api.github.com/repos/Flipboard/FLEX/releases{/id}","created_at":"2014-05-29T00:58:29Z","updated_at":"2015-02-17T00:14:38Z","pushed_at":"2015-02-09T02:37:40Z","git_url":"git://github.com/Flipboard/FLEX.git","ssh_url":"git@github.com:Flipboard/FLEX.git","clone_url":"https://github.com/Flipboard/FLEX.git","svn_url":"https://github.com/Flipboard/FLEX","homepage":"","size":7996,"stargazers_count":3808,"watchers_count":3808,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":288,"mirror_url":null,"open_issues_count":6,"forks":288,"open_issues":6,"watchers":3808,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Flipboard/FLEX/pulls/44"},"html":{"href":"https://github.com/Flipboard/FLEX/pull/44"},"issue":{"href":"https://api.github.com/repos/Flipboard/FLEX/issues/44"},"comments":{"href":"https://api.github.com/repos/Flipboard/FLEX/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/Flipboard/FLEX/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/Flipboard/FLEX/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Flipboard/FLEX/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/Flipboard/FLEX/statuses/398cb5ae8e070ccad236f926b2f69ca83d784d34"}}}}