Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Project title in main window title #2281

Closed
matsen75 opened this issue Dec 5, 2012 · 16 comments
Closed

Project title in main window title #2281

matsen75 opened this issue Dec 5, 2012 · 16 comments

Comments

@matsen75
Copy link

matsen75 commented Dec 5, 2012

It would be nice to have the name of the current project in the title of the main window. I usually have several windows of brackets running and alt-tabbing between. It gets confusing without the title :)

@peterflynn
Copy link
Member

@njx
Copy link
Contributor

njx commented Dec 10, 2012

Reviewed. Move to backlog.

@njx
Copy link
Contributor

njx commented Mar 27, 2013

Will consider this as part of https://trello.com/c/PIwkuyYM

@njx njx closed this as completed Mar 27, 2013
@ghost
Copy link

ghost commented Aug 4, 2013

Will consider this as part of https://trello.com/c/PIwkuyYM

This task is set to Done on Trello (if I'm understanding it correctly), but Brackets still doesn't show the root/project folder name in the window title.

This feature is really useful -- Here's another person's feedback who has asked for it:
"When switching between project windows, for example in the OSX Dock, there is nothing that tells them apart. The title bar currently includes the filename, but not the root folder which is kind of the project name."

The editor I'm using for now (Sublime Text) has this.

Can you create a new task in Trello for adding this? Thank you very much.

@peterflynn
Copy link
Member

@DEVTIME: Hmm... is this a Mac-only thing? When I launch Sublime on Windows, it shows the current filename's absolute path, but it doesn't include any succinct label for the root "project" folder.

@ghost
Copy link

ghost commented Aug 5, 2013

@peterflynn Did you save the file as part of a project? The command for this is: Project | Save Project As...

@peterflynn
Copy link
Member

@DEVTIME Oh, oops. If I use File > Open Folder I see something like this:

() - Sublime Text 2

Is that what you're seeing? I guess one question I have is, how often is the current file's absolute path short enough that the folder name is visible in places like the OS X Dock labels, the Windows Taskbar butons, etc.?

@ghost
Copy link

ghost commented Sep 2, 2013

(Sorry for taking so long to answer... I was on vacation first, and then life got in the way...)

<full absolute path> (<project folder name>) - Sublime Text 2

Is that what you're seeing?

No, in OS X Sublime Text displays: <current file basename> — <project folder basename>

It only displays a longer filename if there are two files with the same basename open in tabs for the current window.

I like this, because it is both short, clear, and useful:

  • Displays the current filename.
  • Displays the project's folder basename always, which allows us to identify the right project window immediately (e.g., from a list of windows).

@peterflynn
Copy link
Member

Reopening -- sorry this stalled.

We'd like to add the project root's folder name to the titlebar, so the overall titlebar string should look like this:

() - Brackets

Whereas currently Brackets shows just this:

- Brackets

@Globegitter
Copy link

@peterflynn Thanks for picking this up again. Really appreciated.

@peterflynn
Copy link
Member

I've marked this a 'starter bug' since it should be an easy fix :-)

@ghost
Copy link

ghost commented Feb 5, 2014

@peterflynn Thank you so much for working on this. :)

@le717
Copy link
Contributor

le717 commented Feb 14, 2014

@peterflynn @DEVTIME I took a whack at this, see #6878.

@peterflynn
Copy link
Member

Assigning to me since I'm reviewing the PR

@le717
Copy link
Contributor

le717 commented Nov 25, 2014

Project name is now displayed, will be present in v1.1. 😃

@peterflynn
Copy link
Member

Closing since the PR has been merged

@peterflynn peterflynn added this to the Release 1.1 milestone Nov 25, 2014
peterflynn added a commit that referenced this issue Nov 26, 2014
…or-logs

* origin/master: (69 commits)
  Issue #2281, display project name in window title
  Remove the negative margin hack which is no longer needed
  Updated by ALF automation.
  Disable Mac-specific `backface-visibility` rules that cause Windows text rendering (on newer Chromiums) to strop doing subpixel antialiasing (aka ClearType) anywhere in the UI.
  Updated by ALF automation.
  JSDoc
  strip dirty dot from file name
  fix style sheet parsing
  remove unused var
  remove unnecessary call to EditorManager.getFocusedEditor()
  Updated by ALF automation.
  Validate maxResults is an integer
  ValidationUtils improvements
  Add new pref maxCodeHints
  Nits and doc.
  Use this.name for toString() instead of this.id.
  * Mark DocumentManager's old events as deprecated *before* extensions have a chance to register for them. Clean up docs. * Fix $() shim warning: it was incorrectly flagging r.js-concatenated extensions as core code, since the whole path prefix is wiped off in that case. Unfortunately the same is true of core code in production builds, making the two indistinguishable. So: only flag as core code when the path indicates a dev build
  Updated by ALF automation.
  Fix bug with detaching one() listeners via off(), spotted thanks to a question from @Mark-Simulacrum. With unit tests.
  - Convert PreferencesSystem & PrefixedPreferencesSystem to use EventDispatcher, while preserving their existing public API with nonstandard on()/off() APIs - Remove long-deprecated ability to create resizable bottom panels via makeResizable() without using createBottomPanel(). (Simplifies code a bit, but leave in a console error log in case anyone hits this in the future). - Fix Editor docs about keyboard events - Docs & error message tweaks from code review - Simplify assert() calls that are meant to force a debugger pause
  ...

Conflicts:
	src/utils/AppInit.js
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants