Code Monkey home page Code Monkey logo

textmate-missingdrawer's Introduction

MissingDrawer.tmplugin

This plugin provides Xcode-like project window interface without drawer and adds "Open Terminal Here" button to the file list's button panel.

Screenshot

Installation

Simply run the following command to download the latest version from GitHub.

bash <(curl -s -L http://goo.gl/4RUoP)

You may also download the latest version from the project download page and double click the MissingDrawer.plugin file contained.

Uninstallation

Delete the Missing Drawer plugin from the TextMate PlugIns directory in your Library (~/Library/Application Support/TextMate/PlugIns).

rm -r "$HOME/Library/Application Support/TextMate/PlugIns/MissingDrawer.tmplugin"

Configuring

To configure Missing Drawer, simply open TextMate's preferences, click the double arrow icon in the top right of the window, and choose Missing Drawer from the menu. The following preferences are supported:

  • Changing the sidebar's color
  • Enabling/Disabling the open terminal button
  • Choosing the terminal application. Terminal and iTerm are supported

Authors

The source code is released under the MIT license. Please see LICENSE for more information.

textmate-missingdrawer's People

Contributors

belkadan avatar christophmeissner avatar derekprior avatar dhowden avatar jakerr avatar jezdez avatar mads-hartmann avatar shell avatar soffes 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

textmate-missingdrawer's Issues

Replace Bottom Bar

I've always hated TextMate's bottom bar. It drives me nuts now short it is. I'd love to have something that looks more like a button, like Mail's bottom bar. New icons would be nice too. This would be quite challenging in the editor side.

White disclosure

When you highlight an item in the sidebar, the row is highlighted in blue, but the disclosure stays gray. It would be great if this turned white instead. It would also be really nice if instead of blue it was a nice gradient like Coda.

Images

Currently images open as ridiculous code whenever click. How about pulling the image in a window and show the w and h of it...so you could move on and not get attach by all those letters and numbers like it does currently.

prevent 'scroll to top' on filesystem modification

Each time a file in a project is modified, the project drawer scrolls to the top when textmate loses and then receives focus.

I am hopeful that this plugin can hook the redraw function and prevent this behaviour. I would like the scrollbar to stay where it is, irrespective of whether or not textmate has or is receiving focus, and irrespective of any filesystem changes that occur within the project path.

To replicate:

  1. ensure your project drawer has enough items in it such that the scrollbar is visible
  2. scroll to the bottom of the drawer
  3. switch focus to a non-textmate application and create a new file in your project, e.g.:
  4. touch project_is_modified.txt
  5. switch focus back to textmate
  6. observe the drawer as it scrolls to the top

This is annoying default behaviour in textmate, but your plugin shows great promise... and I am hopeful that you can alter the default scrolling behaviour. Thanks!

Launch gitk if GitX is not installed

I started writing this when I was merging in @shell's commits. gitk doesn't have a command line option to specify the repository path so it's pretty annoying to launch it with NSTask or AppleScript.

I'm sure someone with some NSTask experience could make this work pretty easily.

Pretty up empty selection screen

Currently you just see the big TextMate icon. It might be cool to design something prettier to go here. Recent files or something would be neat.

Black on black

Hi!

After installing your new version my sidebars background and font color is black. Setting the background color like yo described doesn't work. If it helps I'm using the IR_black theme.

Best,
Stefan

0.4.0 build from "Downloads" not running on 64bit Core i5

I am trying to install MissingDrawer 0.4.0 from Downloads: https://github.com/downloads/jezdez/textmate-missingdrawer/MissingDrawer-0.4.0.tmplugin.zip

But it doesn't work. I get the following text:

Version ??? of “MissingDrawer-0.4.0” is already installed. Do you want to replace it with version ????

This is probably similar to the build issue in the EGOTextMateFullScreen TextMate plugin which was fixed in this commit:

enormego/EGOTextMateFullScreen@ff82f4a

(Look at diff for EGOTextMateFullScreen.xcodeproj/project.pbxproj)

Please fix!

After "Save as" to different folder, drawer displays as if "rename"

If you are editing a file within a subfolder of a project and you "save as" to another subfolder, then MissingDrawer behaves as if the file has been renamed... (the original file is hidden and the new file is displayed in the original folder (as well as the real folder).

The only way to remedy this is by closing and reopening this project.

Open new tab in Terminal

Can you add a feature to open a new tab in Terminal (instead of a new window) ? With a Command + Click, for instance.

SVN badges

You probably saw ProjectPlus? Since it's bit on hold, could we have those badges in MissingDrawer instead?

Automatic sizing

It would be great if the drawer would automatically adjust its width as the project tree is expanded in order to show the full file names.

Collapse All

It would also be great to have a collapse all context option or button. If you open a bunch of folders it's a pain to manually close them all. I need to learn more about TextMate plugin development, I'd love to be able to help out.

Add documentation of MDSideViewLeft to README

it seems odd that there's documentation for how to change the background colour of the drawer, but nothing on how to align it to the right of the window. Perhaps the following should be added to the README?

To attach the drawer to the right of the window, run the following from Terminal:

defaults write com.macromates.TextMate MDSideViewLeft false

Add preference for terminal application

A preference in the new preferences window for Terminal or iTerm would be nice. It would be really neat if it was disabled if you didn't have iTerm installed.

Lion Scoll Bar

Could you integrate the new scroll bar feature of Lion ? It could save some space !
Thank you very much for your very useful plugin !

1px Project Draw

Very nice plugin but the hide project draw does not hide the project draw. Rather it shrinks it down to 1px. Perhaps this is unnoticeable for people with a gutter but I have none at all, not even line numbering and it's very noticeable. I know it's non-urgent minor issue but it would be great to have it fixed someday.

Sort Folders First

Is it possible to sort folders first?

Is there a better place to post questions like this?

Silly install one-liner

The instructions to install in the readme aren't ideal. A more efficient way would be preferred. Clever shell scripting tricks aren't my strength.

Reveal in Project (⌃⌘R) with drawer closed

...opens the normal (old) drawer, albeit with nothing in it.

The workaround is to open the project drawer first (⌃⌥⌘D), then do ⌃⌘R. Note however, that you'll have to press ⌃⌥⌘D twice.

TM launch via dropped folder causes MissingDrawer to have white background and original drawer appear behind it

When I drag a folder from the Finder to the TM icon in the Dock, TM will launch with the original drawer showing behind the window, and the MissingDrawer pane will have white background regardless of my preference setting.

This does not happen when I launch TM from the terminal opening a folder with the mate tool.

This only happens on launch. Once TM is running, opening folder by drag works fine.

Display drawer on right side

I got used to having my project drawer on the right side of the window. It would be great to be able to optionally place it there.

Display Preferences

It would be great if there was another tab in preferences to control the sidebar colors and fonts, as well as other MissingDrawer preferences.

Missing "Focus Main View" menu and key equivalent

Perhaps I didn't lookd in the right place, but I can't find a way to get the focus back on the source code after hitting cmd+alt+ctrl+[.

I used to use cmd+alt+` to go back and forth previously... isn't better to stick with the default keyequivalent?

Horizontal Scrolling

Deeply nested file structures or long file names are obscured and the only way to see all of the text is to extend the draw. Horizontal scrolling would be really nice in this instance.

Add Sparkle updating

It would be great if Missing Drawer could update itself. This should probably be off by default though.

Old Project Drawer appears when trying open project via drag-and-drop

Hello guys!

First of all I would say thank you for this amazing plugin.

Opening project via File -> Open works perfect, but old drawer is not hidden when you opening project via dragging-and-dropping folder to the application icon.

Could you please fix this problem?

Old Drawer was configured to display at the right side of application window (before installation).

MissingDrawer does not work in 10.5.8?

Hi,

I use MissingDrawer perfectly with my 10.6.4 setup, but on the desktop, still running 10.5.8, it fails to load:

9/9/10 11:12:03 AM TextMate[5577] Error loading /Users/melo/Documents/work/textmate/user_config/PlugIns/MissingDrawer.tmplugin/Contents/MacOS/MissingDrawer:  dlopen(/Users/melo/Documents/work/textmate/user_config/PlugIns/MissingDrawer.tmplugin/Contents/MacOS/MissingDrawer, 265): no suitable image found.  Did find: /Users/melo/Documents/work/textmate/user_config/PlugIns/MissingDrawer.tmplugin/Contents/MacOS/MissingDrawer: unknown required load command 0x80000022 
9/9/10 11:12:03 AM TextMate[5577] instance MissingDrawer plug-in has no principal class 

Any ideas?

Thanks!

Preference for blue

It would be great if there was some way to switch the background to blue instead of white. A defaults write would be an acceptable, easy interface in my opinion.

Automatic expansion of folders when child opened

For me, the feature that would make this replace the Project+ plugin would be to automagically expand the parent folders of a file that is opened in the displayed tree of files. And to save this state for when Textmate's closed/re-opened.

How do I uninstall this plugin?

It's not working on my system and now I can't even launch a project in Textmate. It totally screwed Textmate.

It is not inside ~/Library/Application Support/TextMate/Plugins.

Please help!

TM 1.5.10 no drawer

On my Textmate 1.5.10, there's no drawer or pane and the menu option to Show/hide is greyed out. Uninstalling the plugin to revert back to ProjectPlus.. it now also doesn't work anymore..

Any ideas?

Crashing textmate.

When both ProjectPlus and missing Drawer are installed textmate crashes on launch. Deleting Project plus remedies this.

india:src mennis$ /Applications/TextMate.app/Contents/MacOS/TextMate
2010-09-08 12:09:40.780 TextMate[762:903] -[CWTMSplitView sideView]: unrecognized selector sent to instance 0x67f530
2010-09-08 12:09:40.781 TextMate[762:903] Exception raised during posting of notification. Ignored. exception: '-[CWTMSplitView sideView]: unrecognized selector sent to instance 0x67f530' invoked observer method: '* -[OakProjectController MD_windowDidBecomeMain:]' observer: 0x64afa0 notification name: 'NSWindowDidBecomeMainNotification'
2010-09-08 12:09:40.789 TextMate[762:903] HIToolbox: ignoring exception '
* -[NSCFArray objectAtIndex:]: index (1) beyond bounds (1)' that raised inside Carbon event dispatch
(
0 CoreFoundation 0x9875dbba __raiseError + 410
1 libobjc.A.dylib 0x97bc3509 objc_exception_throw + 56
2 CoreFoundation 0x9875d8e8 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x9875d85a +[NSException raise:format:] + 58
4 Foundation 0x942b74dc _NSArrayRaiseBoundException + 121
5 Foundation 0x9420ac46 -[NSCFArray objectAtIndex:] + 63
6 ProjectPlus 0x0178bfd7 -[CWTMSplitView documentView] + 183
7 ProjectPlus 0x017901c5 -[NSWindowController(OakProjectController_SideBarSwitching) splitView:resizeSubviewsWithOldSize:] + 605
8 ProjectPlus 0x0178c3af -[KFSplitView resizeSubviewsWithOldSize:] + 140
9 AppKit 0x95ae5ca7 -[NSSplitView _adjustSubviewsIfNecessary] + 170
10 AppKit 0x95ae5bd1 -[NSSplitView viewWillDraw] + 48
11 AppKit 0x95ae5862 -[NSView viewWillDraw] + 621
12 AppKit 0x95ae4e35 -[NSView _sendViewWillDrawInRect:clipRootView:suppressRecursion:] + 1290
13 AppKit 0x95a47d02 -[NSView displayIfNeeded] + 757
14 AppKit 0x95a11050 -[NSWindow displayIfNeeded] + 204
15 AppKit 0x95a0faeb -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 1085
16 AppKit 0x95a0f64d -[NSWindow orderWindow:relativeTo:] + 105
17 AppKit 0x95a0ce03 -[NSWindow makeKeyAndOrderFront:] + 73
18 AppKit 0x95c6136c -[NSWindowController showWindow:] + 664
19 TextMate 0x00044309 -[AppDelegate openFiles:] + 1869
20 TextMate 0x00044e49 -[AppDelegate application:openFiles:] + 49
21 AppKit 0x95d7f5ac -[NSDocumentController(NSPrivate) _openRecentDocument:] + 220
22 AppKit 0x95a56f1e -[NSApplication sendAction:to:from:] + 112
23 AppKit 0x95a56dd1 -[NSMenuItem _corePerformAction] + 435
24 AppKit 0x95a56ac2 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 174
25 AppKit 0x95a569ae -[NSMenu performActionForItemAtIndex:] + 65
26 AppKit 0x95a56961 -[NSMenu _internalPerformActionForItemAtIndex:] + 50
27 AppKit 0x95a568c7 -[NSMenuItem _internalPerformActionThroughMenuIfPossible] + 97
28 AppKit 0x95a5680b -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 336
29 AppKit 0x95a4af49 NSSLMMenuEventHandler + 404
30 HIToolbox 0x98c3ff2f _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1567
31 HIToolbox 0x98c3f1f6 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 411
32 HIToolbox 0x98c619bb SendEventToEventTarget + 52
33 HIToolbox 0x98c8dfa7 _ZL18SendHICommandEventmPK9HICommandmmhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 448
34 HIToolbox 0x98cb2d1c SendMenuCommandWithContextAndModifiers + 66
35 HIToolbox 0x98cb2cd1 SendMenuItemSelectedEvent + 121
36 HIToolbox 0x98cb2bda ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2 + 152
37 HIToolbox 0x98c822e4 _ZL14MenuSelectCoreP8MenuData5PointdmPP13OpaqueMenuRefPt + 454
38 HIToolbox 0x98c81a56 _HandleMenuSelection2 + 465
39 HIToolbox 0x98c81874 _HandleMenuSelection + 53
40 AppKit 0x95a4448a _NSHandleCarbonMenuEvent + 285
41 AppKit 0x95a1903a _DPSNextEvent + 2304
42 AppKit 0x95a182ca -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
43 AppKit 0x959da55b -[NSApplication run] + 821
44 AppKit 0x959d25ed NSApplicationMain + 574
45 TextMate 0x0012bcc9 main + 171
46 TextMate 0x00002e26 _start + 216
47 TextMate 0x00002d4d start + 41
)
2010-09-08 12:09:59.839 TextMate[762:903] -[CWTMSplitView sideView]: unrecognized selector sent to instance 0x67f530
2010-09-08 12:09:59.840 TextMate[762:903] Exception raised during posting of notification. Ignored. exception: '-[CWTMSplitView sideView]: unrecognized selector sent to instance 0x67f530' invoked observer method: '*** -[OakProjectController MD_windowDidResignMain:]' observer: 0x64afa0 notification name: 'NSWindowDidResignMainNotification'
2010-09-08 12:09:59.855 TextMate[762:903] *** -[NSCFArray objectAtIndex:]: index (1) beyond bounds (1)

The plugin isn't working for me

I am running OSX 10.5.8 and Textmate 1.5.9.
When I open textmate I only get the old project drawer. MissingDrawer works for me if I use the 2009-01-27 version but not with the most current. Any thoughts?

Thanks,
Calvin

Add new file types to the "New File" option

I work with ruby and like missingdrawer, but I hate having to save my files to the project and then add exiting files to the missingdrawer because using the New File shortcut only allows addition of:
Applescript
HTML
Objective C
Python
Text
XML

Is there a way to add to the list of available new file templates?

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.