GithubHelp home page GithubHelp logo

Search & Replace? about tabletool HOT 7 OPEN

Robert-M-Muench avatar Robert-M-Muench commented on August 26, 2024 7
Search & Replace?

from tabletool.

Comments (7)

jakob avatar jakob commented on August 26, 2024

Good idea! Would be an awesome feature. Unfortunately I don't have any time right now to implement it myself, but if someone would like to try it, I'd be glad to give a few pointers in the right direction.

from tabletool.

Robert-M-Muench avatar Robert-M-Muench commented on August 26, 2024

Well, I'm not an OSX developer nor am I very good at Obj-C ... However, please let us know your hints. Maybe I try to bite the bullet.

from tabletool.

jakob avatar jakob commented on August 26, 2024

Step 1 would be to evaluate which API to use for displaying the interface for search and replace.

  • We could use the Find Panel, which is the deprecated old interface, but it is more versatile. The find panel opens in a new window and has lots of options for searching. I don't know if it is possible to customise the find panel (eg. restrict search & replace to a single column). Search the docs for the methods -usesFindPanel and -performFindPanelAction:.

  • we could also use the find bar, which is the more modern interface. It has much better documentation. Search docs for NSTextFinder. I also don't know if the find bar interface can be customized.

  • if neither of the two options allows customisation, we might have to come up with our own interface. We'd need to design a custom view with a view controller in Interface Builder. It could be either something similar to the find bar, or it could be something that opens in a new window.

Once that is done, you should start looking at the Document.m, and implement all the methods that actually do the work. Have a look at the other action methods. It's important to make sure that undo/redo is supported for any actions that change the data.

from tabletool.

fulldecent avatar fulldecent commented on August 26, 2024

@Robert-M-Muench Can you please provide a mock up from another modern app that has this feature so we can compare and get closer to a solution?

from tabletool.

Robert-M-Muench avatar Robert-M-Muench commented on August 26, 2024

@fulldecent Well... not a particular one, it's just standard. Just add simple S&R fields in the toolbar would be enough. KISS.

from tabletool.

fulldecent avatar fulldecent commented on August 26, 2024

There is no “just standard”. Computers require specific instructions to work. Programmers require specific designs to implement.

If people here would like to see progress on this issue they are welcome to contribute specific designs and begin discussing ehich is best.

from tabletool.

Jmuccigr avatar Jmuccigr commented on August 26, 2024

Many recent MacOS apps have a drop-down S&R box, like Safari. Matching text in the open window also gets highlighted. I assume this is a standard thing in the OS, though I have no clue about implementing it.
screenshot 2018-08-05 11 46 19

from tabletool.

Related Issues (20)

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.