Skip to content

Conversation

Programistich
Copy link
Contributor

No description provided.

.string
.split(separator: "/")
.map(String.init)
.filter { $0 != "ext" }
Copy link
Contributor

Choose a reason for hiding this comment

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

this will filter child ext folders

case file(File)
case directory(Directory)

public var id: String { name }
Copy link
Contributor

Choose a reason for hiding this comment

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

will conflict with elements from another location (in search view for instance)

@tonyfreeman tonyfreeman force-pushed the feature/file-manager branch 2 times, most recently from 050cdfe to c6aea69 Compare January 9, 2025 22:04
Comment on lines 23 to 27
@AppStorage(.fileManagerShowHiddenFiles)
private var isHiddenFilesShow: Bool = false

@AppStorage(.fileManagerDisplayType)
private var displayType: DisplayType = .list
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you extract this into single Settings structure?

Comment on lines 27 to 33
@State private var name = ""
@State private var isNewFile = false
@State private var isNewDirectory = false
@FocusState var isNameFocused: Bool
var namePlaceholder: String {
"\(isNewFile ? "file" : "directory") name"
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use separate model for this?

} catch {
self.error = String(describing: error)
self.error = String(describing: error)
Copy link
Contributor

Choose a reason for hiding this comment

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

please run linter to fix this kind of typos

@anony2020off
Copy link

Could you add an screenshot of how it looks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants