Git Product home page Git Product logo

tree-view's People

Contributors

50wliu avatar acontreras89 avatar alhadis avatar anderoonies avatar benogle avatar binarymuse avatar damieng avatar darangi avatar forivall avatar heyvito avatar izuzak avatar jasonrudolph avatar jonrohan avatar kevinnathan avatar kevinsawicki avatar kuychaco avatar lee-dohm avatar liuderchi avatar maxbrunsfeld avatar mcampagonzalez avatar mcolyer avatar mnquintana avatar mscottford avatar sadick254 avatar saschagehlich avatar simurai avatar thomasjo avatar tyriar avatar uzitech avatar zcbenz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tree-view's Issues

The ability to select many files at once is lacking

It is absolutely necessary to be able to select many files, to be able to do things like staging changes for many files with Git, deleting many files at once, copying or cutting many files at once, sending many files in a single gist at once with a package and many other things. Selecting many files should be supported with the Ctrl or the Command keys, depending on the operating system, and using Shift to select many adjacent files at once should be supported. The API should of course make it possible for packages to get a list of the files selected, since this is particularly useful for commands added by packages.

Spec occasionally fails on ci

@zcbenz If we see this Duplicate Key error from pathwatcher, what does it actually mean happened? It definitely doesn't happen every time, only occasionally on CI.

>> TreeView
>>   file modification
>>     tree-view:move
>>       when a file is selected
>>         when the path is changed and confirmed
>>           when all the directories along the new path exist
>>             it moves the file, updates the tree view, and closes the dialog
>>               Error: Duplicate key
>>                 at HandleWatcher.start
>> (/private/tmp/atom-build/Atom.app/Contents/Resources/app/node_modules/pathwat
>> cher/lib/main.js:65:29)
>>                 at new HandleWatcher
>> (/private/tmp/atom-build/Atom.app/Contents/Resources/app/node_modules/pathwat
>> cher/lib/main.js:29:12)
>>                 at new PathWatcher
>> (/private/tmp/atom-build/Atom.app/Contents/Resources/app/node_modules/pathwat
>> cher/lib/main.js:115:30)
>>                 at Object.exports.watch
>> (/private/tmp/atom-build/Atom.app/Contents/Resources/app/node_modules/pathwat
>> cher/lib/main.js:172:12)
>>                 at
>> Directory.module.exports.Directory.subscribeToNativeChangeEvents
>> (/private/private/var/lib/jenkins/workspace/atom-615ee4b3dc03/src/directory.c
>> offee:107:6)
>>                 at
>> /private/tmp/atom-build/Atom.app/Contents/Resources/app/src/directory.js:26:2
>> 2
>>                 at
>> /private/tmp/atom-build/Atom.app/Contents/Resources/app/node_modules/emissary
>> /lib/emitter.js:113:30
>>                 at Array.forEach (native)
>>                 at Directory.module.exports.Emitter.emit
>> (/private/tmp/atom-build/Atom.app/Contents/Resources/app/node_modules/emissar
>> y/lib/emitter.js:112:47)
>>                 at Directory.module.exports.Emitter.on
>> (/private/tmp/atom-build/Atom.app/Contents/Resources/app/node_modules/emissar
>> y/lib/emitter.js:32:16)
>> 
>> 
>> Finished in 9.056 seconds
>> 88 tests, 350 assertions, 1 failure, 0 skipped
>> 
>> Tests failed

Rename creates a duplicate file

When renaming a file, if it is opened as a tab on the right pane, the operation will result in creating a new file instead of renaming it.

Here are some screenshots.

Before renaming:
before

And here is the result:
result

This bug is quite annoying ๐Ÿ˜ฟ

I am using

Atom 0.67.0
Tree View 0.74.0

More Control over "ignored" status

Currently it seems, that there's no way to actually turn off the "ignored" behavior which
results in some problems with composer projects for example, where the directory containing most of the code is added to gitignore, because it's managed by the package manager:

Add option to configure multiple root folders in tree-view

Use case:
I have a project. In that project I have a few folders that are used often.
I'd like to access these quickly (and optionally be able to hide the others). I solved this in other editors by having the frequently used folders as root folders in the filetree.

Here is an example (of an typical Ruby on Rails project) how I'd do this:

_ app/
|_ assets/
|_ controllers/
|_ models/
|_ views/

_ javascripts/
|_ templates/
|_ models/
|_ application.js

_ stylesheets/
|_ application.css

_ my_project/
|_ app/
|_ config/
|_ db/
|_ README

This is much easier to browse and also takes up less horizontal space then:

_my_project/
|_ app/
  |_ assets/
    |_ javascripts/
      |_ templates/
      |_ models/
      |_ application.js
    |_ stylesheets/
      |_ application.css
  |_ controllers/
  |_ models/
  |_ views
|_ config/
|_ db/
|_ README

Show Open Files in Sidebar

Not sure if i should put this here or in the Tabs package, but i'd love to have
the Open Files visible in the Sidebar instead of Tabs above the Editore:

Error deleting files from the tree-view with `delete` key

Uncaught Error: Buttons need to be array
TypeError: Buttons need to be array
    at Object.module.exports.showMessageBox (/Applications/Atom.app/Contents/Resources/browser/api/lib/dialog.js:99:15)
    at callFunction (/Applications/Atom.app/Contents/Resources/browser/atom/rpc-server.js:108:19)
    at Ipc.<anonymous> (/Applications/Atom.app/Contents/Resources/browser/atom/rpc-server.js:202:14)
    at Ipc.EventEmitter.emit (events.js:106:17)
    at process.<anonymous> (/Applications/Atom.app/Contents/Resources/browser/api/lib/ipc.js:50:27)
    at process.EventEmitter.emit (events.js:106:17) /Applications/Atom.app/Contents/Resources/renderer/api/lib/remote.js:80

Drag and Drop

Would be awesome to be able to drag and drop files between folders in the file tree right in Atom. I like the text-based rename feature that lets you move files between folders, but drag and drop feels more natural to me having gotten used to it in TextMate.

.gitignored directories don't show up when they're created

Working on a Jekyll project at the moment. It places generated files into __site/_.

I added site/ to my .gitignore, then ran jekyll build to generate it. The folder generates, but it doesn't show up in Atom's treeview. Presumably this has something to do either with file watching or how Atom representes .gitignored files.

Ignore names require a direct match

The Ignored Names setting requires a direct match and does not support wildcards, making it a bit useless. I would like the functionality to add *.foo to this area, and then hide all files with the extension .foo

Moving new file doesnt reinstate the git status

  • Create a new file in the root of your project; note the blue color in the tree view, and that it is selected/highlighted
  • move it to a new name with m
  • Note that it is no longer blue and no longer selected.

Losing highlight focus on deletion of files/folders

When you delete a file in a directory using the hotkeys, it'd be nice if the highlight focus moved to the next file or at least to the top of the directory that you were in so that you don't have to click back to where you were or scroll all the way down using the arrows. Right now the highlight focus disappears so if you press the down arrow, the highlight starts back at the top of the directory

Files specified in .gitignore outside of root appear as new

In Ruby apps I always install gems to vendor/bundle. I have that path ignored in my global .gitignore (~/.gitignore). However, tree-view always shows that path in green as a new folder. If I add it to the root's .gitignore it no longer shows up in tree-view. Could the plugin search up and down from the root to find additional .gitignore files to read in?

tree-view not showing git status / looses status

The tree-view does not update the git status status-changed, status-added, etc. when files in repo are edited. Also it looses the change if a file is added. It shows it only initially but if you selected it in tree-view the status disappears.

The screenshot shows changes in the file but nothing appears in the tree-view. File in questions mailchimp.js:

screenshot 2014-03-05 12 38 12

If you inspect the element the CSS classes is missing, so it is not a styling issue (IMO).

Atom version: 0.64.0
Tree View version: 0.72.0

Only hide tree view on โŒ˜+\ instead of โŒ˜+W and ESC

Currently the tree view hides on โŒ˜+W and ESC if it was the most recent item in the interface that was interacted with. This seems odd to me and is unlike any editor that I've used. I would recommend sticking to โŒ˜+\ to toggle the tree view and keep โŒ˜+W for closing the active tab, regardless of what panel was most recently active.

Allign to right

For now there is no setting item for tree-view's postion. I prefer right of the editor where treeview is.

Allow Tree-View when no file/folder

Because I usually drag a project folder inside the Tree-View... but for now that open a new window Editor. That's mean I have an editor with my project folder and the tree-view and a editor with nothing...

Smart Tabs

One of the features I miss in Atom is the 'smart tabs' concept. In sublime when you click on an item in the file tree, unless you start modifying it, or double click on the file, it previews the file without opening the tab completely. Therefore if you click on another file without officially opening it it doesn't stay open.

You'll see I browse through a few files, make a change and the tab opens and shows changes have been made in the tab color. Later in the gif I double click on the file and it opens it officially in a tab.

Would love to see how we can add this into Atom

folder indentation

it seems to me that the indentation of sub-folder in the tree view is too big.
I thinks it could be reduce of the half without make it difficult to follow the tree

Expose Rename as a command

There is a Rename option in the context menu. However it is not an exposed command. There is no exposed shortcut to rename the current file.


However I don't think this should be added to this package. The MoveDialog class and the Rename/Move command should be extracted to a new package. The tree-view package should be just that - a Tree View. It should just present a sidebar with files and connect the UI with the underlying commands for file system manipulation.

That being said other commands like Delete should be extracted as well.
I suggest creating a package enclosing all commands related to the file system.

Preview file contents on click

I've found that single clicking files in the tree view will open the file in a tab. This has been causing a lot of tab clutter as I am browsing through the files.
I'd like to see a single click not open a new tab but rather just preview the file contents.
A double click would open the file as a tab.
This functionality can be found in the Sublime Text tree view.

Files/directories sorted in the tree view

Hi,

I don't understand why some people can even like having directories grouped/sorted together, then files grouped/sorted together, but I respect that.

However, coming from a Mac only background, I'm very used to having all items in the tree view sorted alphabetically, regardless of their type, to have for example the config directory just near my config.ru file.

Is there a setting to do that ?
If not, it should be :)

Thanks a lot for making Atom and letting us play with it while in beta.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.